The NetBSD Project

CVS log for src/sbin/disklabel/interact.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / disklabel

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 3 14:25:39 2021 UTC (15 months ago) by nia
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.39: +5 -5 lines
Diff to previous 1.39 (colored)

disklabel(8): convert malloc(x * y) to reallocarr

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jan 31 18:57:29 2016 UTC (7 years ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.38: +6 -2 lines
Diff to previous 1.38 (colored)

PR/50729: Izumi Tsutsui: Add "SMALLPROG"-like options to disklabel(8)

Revision 1.35.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:37:27 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.35.6.1: +3 -3 lines
Diff to previous 1.35.6.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

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")

Revision 1.35.12.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:50 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.35.12.1: +3 -3 lines
Diff to previous 1.35.12.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

resync from head

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 3 16:05:12 2013 UTC (9 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

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.

Revision 1.35.12.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:04 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.35: +81 -57 lines
Diff to previous 1.35 (colored)

resync with head

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:28 2013 UTC (10 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.35: +81 -57 lines
Diff to previous 1.35 (colored)

sync with head

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jan 17 18:33:58 2013 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

move dk_ioctl to a header file for the benefit of x-building.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 15 23:52:48 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.35: +81 -57 lines
Diff to previous 1.35 (colored)

- simplify getinput.
- add adjust command.

Revision 1.30.32.1 / (download) - annotate - [select for diffs], Fri May 20 08:11:18 2011 UTC (11 years, 8 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.30: +23 -21 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jan 6 21:39:01 2011 UTC (12 years, 1 month ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.34: +27 -27 lines
Diff to previous 1.34 (colored)

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.

Revision 1.30.26.1 / (download) - annotate - [select for diffs], Sat Jun 12 01:11:42 2010 UTC (12 years, 7 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.30: +23 -21 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

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.

Revision 1.34 / (download) - annotate - [select for diffs], Fri May 28 07:40:53 2010 UTC (12 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.33: +23 -21 lines
Diff to previous 1.33 (colored)

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.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Nov 28 10:52:10 2009 UTC (13 years, 2 months ago) by abs
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

- 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]:

Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 21 01:07:46 2009 UTC (13 years, 3 months ago) by snj
Branch: MAIN
Changes since 1.31: +2 -7 lines
Diff to previous 1.31 (colored)

Remove 3rd and 4th clauses in christos' license.  OK christos.

Revision 1.30.28.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:00 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.30: +8 -8 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 16 13:33:36 2009 UTC (13 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.30: +8 -8 lines
Diff to previous 1.30 (colored)

fix sign-compare issues

Revision 1.30 / (download) - annotate - [select for diffs], Sun Nov 26 16:16:31 2006 UTC (16 years, 2 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.29: +12 -2 lines
Diff to previous 1.29 (colored)

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.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 18 12:48:35 2006 UTC (16 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.28: +14 -14 lines
Diff to previous 1.28 (colored)

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.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Mar 17 14:50:44 2006 UTC (16 years, 10 months ago) by rumble
Branch: MAIN
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored)

Gracefully handle out of memory condition.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 19 21:22:21 2005 UTC (17 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

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.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 27 01:00:05 2005 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jun 12 19:18:34 2005 UTC (17 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.24: +13 -3 lines
Diff to previous 1.24 (colored)

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/.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Apr 7 21:27:44 2005 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.23: +23 -2 lines
Diff to previous 1.23 (colored)

Recognize more units and be more helpful when we enter bad units.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 29 21:21:25 2003 UTC (19 years, 1 month ago) by jdc
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Add missing ' in prompt text.
Pointed out by Allen Briggs.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 29 19:12:29 2003 UTC (19 years, 1 month ago) by jdc
Branch: MAIN
Changes since 1.21: +31 -13 lines
Diff to previous 1.21 (colored)

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.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 20 13:20:20 2003 UTC (19 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Handle partition offset and size as unsigned entities.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat Jun 29 23:13:52 2002 UTC (20 years, 7 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.19: +9 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

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.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jun 29 15:24:03 2002 UTC (20 years, 7 months ago) by grant
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.19: +9 -2 lines
Diff to previous 1.19 (colored)

disallow creation of partitions which start beyond (or extend beyond)
the end of the disk.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 19 01:16:38 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

minor WARNS=2 stuff

Revision 1.18 / (download) - annotate - [select for diffs], Sat May 26 19:48:32 2001 UTC (21 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.17: +14 -10 lines
Diff to previous 1.17 (colored)

- 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.

Revision 1.13.4.2 / (download) - annotate - [select for diffs], Mon Feb 26 22:27:45 2001 UTC (21 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.13.4.1: +84 -119 lines
Diff to previous 1.13.4.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 24 07:08:03 2000 UTC (22 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

move showinfo() and showpartition() into separate file, for use by
other programs.  slightly change argument signature so that globals
aren't depended upon.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 24 05:59:11 2000 UTC (22 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.15: +81 -116 lines
Diff to previous 1.15 (colored)

- convert to KNF ANSI style guide
- reorder arguments of runcmd(), getnum(), defnum() to be consistent
  with other functions (pass struct disklabel * first)

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Oct 18 02:53:09 2000 UTC (22 years, 3 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.13: +191 -91 lines
Diff to previous 1.13 (colored)

Pullup 1.13-1.15 [christos]:
supported disk types printout, sizeof parentheses, better error messages.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Sep 4 02:09:26 2000 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)

in cmd_name(), put the default prompt into a temporary buffer rather
than overwrite the existing d_packname.  noted by enami@.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Aug 14 22:37:08 2000 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.13: +190 -91 lines
Diff to previous 1.13 (colored)

* 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()

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:21 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.10: +251 -15 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up to last week's -current.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Fri Dec 17 23:07:32 1999 UTC (23 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.8.2.1: +16 -9 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Pull up revisions 1.12-1.13 (requested by abs):
  When setting size of partitions interactively, allow '$'
  for the remainder of the disk.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 17 13:06:49 1999 UTC (23 years, 1 month ago) by abs
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Use '$' instead of '-' to select remainder of disk interactively

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 17 12:30:02 1999 UTC (23 years, 1 month ago) by abs
Branch: MAIN
Changes since 1.11: +16 -9 lines
Diff to previous 1.11 (colored)

When setting size of partitions interactively allow '-' for remainder of disk

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 26 06:03:10 1999 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.10: +237 -8 lines
Diff to previous 1.10 (colored)

allow changing partition info from inside the interactive handler.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Fri Sep 10 22:37:10 1999 UTC (23 years, 4 months ago) by he
Branch: netbsd-1-4
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Pull up revision 1.10:
  'Label disk?' prompt should check for 'Y' as well as 'y'.  (abs)

Revision 1.10 / (download) - annotate - [select for diffs], Sun Sep 5 07:27:55 1999 UTC (23 years, 5 months ago) by abs
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Accept 'Y' for label disk as well as 'y'

Revision 1.9 / (download) - annotate - [select for diffs], Mon May 3 09:45:01 1999 UTC (23 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.8: +46 -3 lines
Diff to previous 1.8 (colored)

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'.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Nov 12 16:19:48 1998 UTC (24 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Adjust for DKTYPENAME changes.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 13 09:53:29 1997 UTC (25 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

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.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 18 22:20:36 1997 UTC (25 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

Don't pass return value of writelabel() to strerror(), since
the value is not a errno but just 0 or 1.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 30 22:51:34 1997 UTC (25 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.4: +7 -5 lines
Diff to previous 1.4 (colored)

Fix warnings.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 18 21:26:44 1997 UTC (25 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Off by one.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 9 00:35:44 1997 UTC (25 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

fix reversed test for maxpartitions.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 9 00:14:18 1997 UTC (25 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.1: +18 -15 lines
Diff to previous 1.1 (colored)

Jason says: Use getmaxpartitions(3) to determine the number of partitions
allowed in this architecture.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 8 23:46:12 1997 UTC (25 years, 11 months ago) by christos
Branch: MAIN

Add -i (interactive mode to create/edit labels) inspired by the SunOS/Solaris
format/partition command.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>