History log of /src/sbin/disklabel/interact.c |
Revision | | Date | Author | Comments |
1.40 |
| 03-Nov-2021 |
nia | disklabel(8): convert malloc(x * y) to reallocarr
|
1.39 |
| 31-Jan-2016 |
christos | PR/50729: Izumi Tsutsui: Add "SMALLPROG"-like options to disklabel(8)
|
1.38 |
| 03-May-2013 |
matt | Make disklabel a MI tool. It will use MACHINE/MACHINE_ARCH to determine the disklabel params as well as allowing command-line options of -M <machine> and -B {le,be} to specify MACHINE and byteorder to be used.
|
1.37 |
| 17-Jan-2013 |
christos | move dk_ioctl to a header file for the benefit of x-building.
|
1.36 |
| 15-Jan-2013 |
christos | - simplify getinput. - add adjust command.
|
1.35 |
| 06-Jan-2011 |
apb | branches: 1.35.6; 1.35.12; Change printf formats to match the data type of the values being printed. There's now a lot of PRIu16 and PRIu32, some PRIu8, some SCNu32, and a few cases where %u and %d were reversed. Multiplication of 32-bit and 8-bit values is cast to uint64_t and printed with PRIu64.
Inspired by a report from Patrick Welche on current-users.
|
1.34 |
| 28-May-2010 |
dholland | Change getnum() to use intmax_t instead of int, so it doesn't overflow between 2^31 and 2^32. Adjust call sites accordingly. PR 43354.
|
1.33 |
| 28-Nov-2009 |
abs | - Display "Enter '?' for help" when starting interactive mode - Use %.40g rather than %g when printing sectors and MB for existing partition size/offset. Changes [1.93802e+06c, 1953525105s, 953870M]: to: [1938021c, 1953525105s, 953869.6875M]:
|
1.32 |
| 21-Oct-2009 |
snj | Remove 3rd and 4th clauses in christos' license. OK christos.
|
1.31 |
| 16-Mar-2009 |
lukem | fix sign-compare issues
|
1.30 |
| 26-Nov-2006 |
jmmv | branches: 1.30.26; 1.30.28; 1.30.32; Add a '-l' flag and a 'L' command to interactive mode to list all known file system types. (Similar to what fdisk does for partition types.)
Closes PR bin/12954.
|
1.29 |
| 18-Mar-2006 |
dsl | Avoid indexing beyond the end of a malloced array. Rework loop to be less confusing. Coverty 519 made me read this code, but this isn't the 'bug' it found.
|
1.28 |
| 17-Mar-2006 |
rumble | Gracefully handle out of memory condition.
|
1.27 |
| 19-Oct-2005 |
dsl | Rototil the way disklabel -r reads and writes labels. In particular the 'read' part plays 'hunt the disklabel' in order to get a label into a local buffer - from where it can be displayed/edited. The 'write' part makes a separate scan of the disk looking for places to write the label. The main changes are: - It can no longer write the first 8k of the mbr to the pbr (or v.v.) - All labels on the disk (that it can find) get updated during a write - With -A all the labels are displayed (inc. those deleted by -D) - Addition of -D which will delete (by one's complimenting dk_magic{2}) and existing labels before writing labels to the expected locations. - -v gives some verbose output to stderr, -vv more etc A better basis for processing incorrect endian labels, or labels from other architectures.
|
1.26 |
| 27-Jun-2005 |
christos | Move WARNS=3 to the Makefile.inc, and add a little const to the remaining programs that did not compile before.
|
1.25 |
| 12-Jun-2005 |
dyoung | Make disklabel(8) into a host-tool, "nbdisklabel." Move disklabel.c to main.c to avoid a name collision with lib/libc/gen/disklabel.c when we build nbdisklabel. Still todo: commit host-tool build infrastructure to src/tools/disklabel/.
|
1.24 |
| 07-Apr-2005 |
christos | Recognize more units and be more helpful when we enter bad units.
|
1.23 |
| 29-Dec-2003 |
jdc | Add missing ' in prompt text. Pointed out by Allen Briggs.
|
1.22 |
| 29-Dec-2003 |
jdc | Add the ability to define a partition as starting after another partition. If chaining is on, display all changed partitions (not just this one).
OK'ed by Christos.
|
1.21 |
| 20-Oct-2003 |
pooka | Handle partition offset and size as unsigned entities.
|
1.20 |
| 29-Jun-2002 |
grant | disallow creation of partitions which start beyond (or extend beyond) the end of the disk.
|
1.19 |
| 19-Oct-2001 |
lukem | branches: 1.19.2; minor WARNS=2 stuff
|
1.18 |
| 26-May-2001 |
christos | - KNF printlabel.c - add a function to print only one partition's info. - print the partition information if it was modified in interactive mode. - improve on the chaining code. [still assumes that partition offsets increase monotonically]. We could check for overlap too.
|
1.17 |
| 24-Dec-2000 |
lukem | move showinfo() and showpartition() into separate file, for use by other programs. slightly change argument signature so that globals aren't depended upon.
|
1.16 |
| 24-Dec-2000 |
lukem | - convert to KNF ANSI style guide - reorder arguments of runcmd(), getnum(), defnum() to be consistent with other functions (pass struct disklabel * first)
|
1.15 |
| 04-Sep-2000 |
lukem | in cmd_name(), put the default prompt into a temporary buffer rather than overwrite the existing d_packname. noted by enami@.
|
1.14 |
| 14-Aug-2000 |
lukem | * use strcasecmp() instead of strcmp() so that filesystem type and disk type searchs (amongst others) are case insensitive. * in interactive mode (-i), when editing entries display supported disk types and filesystem types when given `?' (when ``[?]'' appears in the prompt this feature is supported for the question). * support `m' as a suffix equivalent to `M' * in interactive mode, be a bit more sensible about handling errors and EOF * implement dumpnames(), which takes a char ** and size, and displays as per ls -F (sorted, listed vertically) but indented by one tab * don't assume d_typename and d_packname are NUL terminated * fix up some comments and some warning messages (bad cut & pastos :) * deprecate deffstypename() and getfstypename() * be consistent when using sizeof()
|
1.13 |
| 17-Dec-1999 |
abs | branches: 1.13.4; Use '$' instead of '-' to select remainder of disk interactively
|
1.12 |
| 17-Dec-1999 |
abs | When setting size of partitions interactively allow '-' for remainder of disk
|
1.11 |
| 26-Nov-1999 |
mrg | allow changing partition info from inside the interactive handler.
|
1.10 |
| 05-Sep-1999 |
abs | branches: 1.10.4; Accept 'Y' for label disk as well as 'y'
|
1.9 |
| 03-May-1999 |
christos | Add a 'chain' command in interactive mode that allows you to vary the size of the partitions, while the starting point gets adjusted automagically. This chaining works for partitions that are not 'unused'.
|
1.8 |
| 12-Nov-1998 |
christos | branches: 1.8.2; Adjust for DKTYPENAME changes.
|
1.7 |
| 13-Oct-1997 |
bouyer | The number of fs types is FSMAXTYPES not DKMAXTYPES. Correct read of formatted file (used with -e or -R) so that fstype with spaces will work. Also enlarge the fstype field by 2 chars so that "Linux Ext2" will not be truncated.
|
1.6 |
| 18-Sep-1997 |
enami | Don't pass return value of writelabel() to strerror(), since the value is not a errno but just 0 or 1.
|
1.5 |
| 30-Jun-1997 |
christos | Fix warnings.
|
1.4 |
| 18-Mar-1997 |
christos | Off by one.
|
1.3 |
| 09-Mar-1997 |
christos | fix reversed test for maxpartitions.
|
1.2 |
| 09-Mar-1997 |
christos | Jason says: Use getmaxpartitions(3) to determine the number of partitions allowed in this architecture.
|
1.1 |
| 08-Mar-1997 |
christos | Add -i (interactive mode to create/edit labels) inspired by the SunOS/Solaris format/partition command.
|
1.8.2.2 |
| 17-Dec-1999 |
he | Pull up revisions 1.12-1.13 (requested by abs): When setting size of partitions interactively, allow '$' for the remainder of the disk.
|
1.8.2.1 |
| 10-Sep-1999 |
he | Pull up revision 1.10: 'Label disk?' prompt should check for 'Y' as well as 'y'. (abs)
|
1.10.4.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.13.4.2 |
| 26-Feb-2001 |
he | Pull up revisions 1.16-1.17 (requested by lukem): Several fixes and enhancements: o with ``-I'', initialize the label if it's not there, it's corrupt, or there's no ``fake'' label. o correct partition table header o move some functions into a separate file for other programs to use o fix examples and cross references o various cleanups
|
1.13.4.1 |
| 18-Oct-2000 |
tv | Pullup 1.13-1.15 [christos]: supported disk types printout, sizeof parentheses, better error messages.
|
1.19.2.1 |
| 29-Jun-2002 |
lukem | Pull up revision 1.20 (requested by grant in ticket #402): disallow creation of partitions which start beyond (or extend beyond) the end of the disk.
|
1.30.32.1 |
| 20-May-2011 |
matt | bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).
|
1.30.28.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.30.26.1 |
| 12-Jun-2010 |
riz | Pull up following revision(s) (requested by dholland in ticket #1410): sbin/disklabel/interact.c: revision 1.34 Change getnum() to use intmax_t instead of int, so it doesn't overflow between 2^31 and 2^32. Adjust call sites accordingly. PR 43354.
|
1.35.12.2 |
| 23-Jun-2013 |
tls | resync from head
|
1.35.12.1 |
| 25-Feb-2013 |
tls | resync with head
|
1.35.6.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.35.6.1 |
| 23-Jan-2013 |
yamt | sync with head
|