The NetBSD Project

CVS log for src/distrib/utils/sysinst/Attic/label.c

[BACK] Up to [cvs.NetBSD.org] / src / distrib / utils / sysinst

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.62.2.1, Tue Aug 19 23:45:46 2014 UTC (3 months ago) by tls
Branch: tls-maxphys
Changes since 1.62: +2 -2 lines
FILE REMOVED

Rebase to HEAD as of a few days ago.

Revision 1.62.10.1, Sun Aug 10 06:48:49 2014 UTC (3 months, 1 week ago) by tls
Branch: tls-earlyentropy
Changes since 1.62: +2 -2 lines
FILE REMOVED

Rebase.

Revision 1.63, Sat Jul 26 19:30:39 2014 UTC (3 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, HEAD
Changes since 1.62: +2 -2 lines
FILE REMOVED

Move sysinst sources to usr.sbin.

This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:48:52 2012 UTC (2 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.57.2.1: +19 -4 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

sync with head

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Thu Jul 5 17:38:27 2012 UTC (2 years, 4 months ago) by riz
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.61: +19 -4 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #396):
	sbin/newfs/newfs.8: revision 1.83
	sbin/newfs/newfs.c: revision 1.111
	distrib/utils/sysinst/label.c: revision 1.62
Use 32KB/4KB for default block/fragment size on >= 128 GB partitions
for modern AFT disks.  No particular comments against PR install/46629.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Jun 30 15:34:01 2012 UTC (2 years, 4 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, 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, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.61: +19 -4 lines
Diff to previous 1.61 (colored)

Use 32KB/4KB for default block/fragment size on >= 128 GB partitions
for modern AFT disks.  No particular comments against PR install/46629.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:02:49 2012 UTC (2 years, 7 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored)

sync with head

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jan 5 22:18:36 2012 UTC (2 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base
Branch point for: netbsd-6
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored)

we want the label name not the fstype name.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Jan 5 20:22:33 2012 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.59: +2 -3 lines
Diff to previous 1.59 (colored)

kill unused variable

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 5 20:21:35 2012 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.58: +4 -6 lines
Diff to previous 1.58 (colored)

use getfstypename from libutil.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jan 5 19:43:59 2012 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.57: +7 -4 lines
Diff to previous 1.57 (colored)

- avoid dereferencing junk if fstype is out of bounds.
- kill mountnames since it is not used.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jul 6 01:20:03 2011 UTC (3 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

avoid a "multi-level non-const cast" warning from GCC 4.5.

Revision 1.56 / (download) - annotate - [select for diffs], Mon May 30 14:20:48 2011 UTC (3 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Use proper format strings.

Revision 1.55 / (download) - annotate - [select for diffs], Mon May 3 23:04:12 2010 UTC (4 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.54: +8 -2 lines
Diff to previous 1.54 (colored)

Prevent a -ve int -> uint32 underflow, noticed by joerg.
If a partition ends up 0-sized, set it to FS_UNUSED to avoid later warnings.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jan 2 21:16:46 2010 UTC (4 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.53: +47 -47 lines
Diff to previous 1.53 (colored)

Change most of the variables that hold disk sector number to be (at least)
uint32_t. Might make sysinst work on disks between 1TB and 2TB.
Not actually tested because I don't have a big disk.
Hopefully I haven't broken the small disk case!
Set WARNS= 4 so that comparisons of signed and unsigned block numbers
are trapped.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Wed May 13 19:17:55 2009 UTC (5 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.52: +2 -4 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Sync with HEAD.

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

Revision 1.53 / (download) - annotate - [select for diffs], Sun Feb 22 11:21:56 2009 UTC (5 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.52: +2 -4 lines
Diff to previous 1.52 (colored)

Remove softdep menu item.

Revision 1.51.18.2, Sun Oct 5 20:11:09 2008 UTC (6 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.18.1: +2 -2 lines
FILE REMOVED

Sync with HEAD.

Revision 1.51.18.1 / (download) - annotate - [select for diffs], Sun Sep 28 11:09:22 2008 UTC (6 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

Sync with HEAD.

Revision 1.51.22.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:41:22 2008 UTC (6 years, 2 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Aug 8 02:54:06 2008 UTC (6 years, 3 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, 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-RC2, netbsd-5-1-RC1, 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, 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-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, 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-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

Allow the "log" option to be chosen for filesystems.  Move "log"
and "softdep" to top of menu to chose filesystem options.

Revision 1.51.24.1 / (download) - annotate - [select for diffs], Tue Jun 10 14:51:21 2008 UTC (6 years, 5 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.51: +68 -8 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Initial commit of Wasabi System's WAPBL (Write Ahead Physical Block
Logging) journaling code.  Originally written by Darrin B. Jewell
while at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.

Still a number of issues - look in doc/BRANCHES for "simonb-wapbl"
for more info.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Oct 23 19:44:57 2006 UTC (8 years, 1 month ago) by he
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-wapbl-nbase, simonb-wapbl-base, pc532-eol-2008, 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-devfs-base, mjf-devfs, 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: wrstuden-revivesa, simonb-wapbl, mjf-devfs2
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Correctly order "static" relative to "const" and "volatile", i.e.
at the front (at least that's what gcc thinks...).

Revision 1.50 / (download) - annotate - [select for diffs], Thu Oct 5 16:25:38 2006 UTC (8 years, 1 month ago) by he
Branch: MAIN
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored)

We now need <sys/param.h> to bring roundup() into scope.

Revision 1.47.4.2 / (download) - annotate - [select for diffs], Sat Aug 12 19:20:41 2006 UTC (8 years, 3 months ago) by riz
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE
Changes since 1.47.4.1: +27 -18 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Pull up following revision(s) (requested by dsl in ticket #1463):
	distrib/utils/sysinst/mbr.c: revision 1.75
	distrib/utils/sysinst/label.c: revision 1.49
	distrib/utils/sysinst/defs.h: revision 1.130
When we read 'last mounted' from an FFSv2 superblock set the flag to
default the partition to FFSv2 (instead of FFSv1).
This makes update installs add the correct bootstrap code.
Fixes PR/33682 and PR/32636 (and 33228 which has alrady been closed
as a duplicate of 32636).

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Sat Aug 12 19:20:36 2006 UTC (8 years, 3 months ago) by riz
Branch: netbsd-3
CVS Tags: 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
Changes since 1.47.2.1: +27 -18 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Pull up following revision(s) (requested by dsl in ticket #1463):
	distrib/utils/sysinst/mbr.c: revision 1.75
	distrib/utils/sysinst/label.c: revision 1.49
	distrib/utils/sysinst/defs.h: revision 1.130
When we read 'last mounted' from an FFSv2 superblock set the flag to
default the partition to FFSv2 (instead of FFSv1).
This makes update installs add the correct bootstrap code.
Fixes PR/33682 and PR/32636 (and 33228 which has alrady been closed
as a duplicate of 32636).

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Sat Aug 12 19:17:42 2006 UTC (8 years, 3 months ago) by riz
Branch: netbsd-3-0
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Pull up following revision(s) (requested by dsl in ticket #1462):
	distrib/utils/sysinst/label.c: revision 1.48
pointer signedness comparison fixes

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sat Aug 12 19:17:36 2006 UTC (8 years, 3 months ago) by riz
Branch: netbsd-3
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Pull up following revision(s) (requested by dsl in ticket #1462):
	distrib/utils/sysinst/label.c: revision 1.48
pointer signedness comparison fixes

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jun 10 14:48:46 2006 UTC (8 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.48: +27 -18 lines
Diff to previous 1.48 (colored)

When we read 'last mounted' from an FFSv2 superblock set the flag to
default the partition to FFSv2 (instead of FFSv1).
This makes update installs add the correct bootstrap code.
Fixes PR/33682 and PR/32636 (and 33228 which has alrady been closed
as a duplicate of 32636).

Revision 1.48 / (download) - annotate - [select for diffs], Tue May 16 00:16:59 2006 UTC (8 years, 6 months ago) by dogcow
Branch: MAIN
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

pointer signedness comparison fixes

Revision 1.43.4.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:25:24 2005 UTC (9 years, 4 months ago) by snj
Branch: netbsd-2
CVS Tags: 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
Changes since 1.43: +19 -8 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Apply patch (requested by riz in ticket #5523):
Sync sysinst with HEAD of 2005-07-23.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Mar 14 21:37:43 2005 UTC (9 years, 8 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, 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-1-RELEASE
Branch point for: netbsd-3-0, netbsd-3
Changes since 1.46: +3 -4 lines
Diff to previous 1.46 (colored)

Allow the user to change the partition type from FFSv1 to FFSv2
Should fix install/29693

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jan 20 21:59:36 2005 UTC (9 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.45: +19 -6 lines
Diff to previous 1.45 (colored)

Default to using 2k fragments (16k blocks) on filesystems that are >1GB.
Matches the defaults advertised in the newfs(8).
Perry keeps on asking me to do this :-)

Revision 1.45 / (download) - annotate - [select for diffs], Sat Oct 16 13:20:11 2004 UTC (10 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.44: +2 -3 lines
Diff to previous 1.44 (colored)

Make compile with WARNS=3

Revision 1.44 / (download) - annotate - [select for diffs], Sat Aug 14 16:06:36 2004 UTC (10 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Default to input in MB for all architectures (MB are cylinder aligned).
Move info about cylinders to the 'ask for units' menu.
  (translations need checking, done by cutting sentences)
Stop i386 always asking for units.
Use BIOS cylinders for MBR and disk cylinders for the disklabel.
  (code intended to do this, but got it wrong...)
Mark some menus as 'sub menu' or MC_SUBMENU so that the screen underneath
  is saved.
Add GENERIC.MPACPI to i386 menu.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Mar 26 19:55:13 2004 UTC (10 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2
Changes since 1.42: +16 -16 lines
Diff to previous 1.42 (colored)

Kill emptylabel() is doesn't DTRT since it doesn't know the size of the array.
Fixes breakage caused by copying oldlabel to bsdlabel for update.
Don't look for 'last mounted' in first alternate superblock.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Nov 30 14:36:43 2003 UTC (10 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.41: +71 -42 lines
Diff to previous 1.41 (colored)

- Change enum for partition numbers from [A..Z] to PART_[A..P] (16 is enough)
- Rename run_prog() to run_program() and remove the 'errmsg' argument (almost
  never used).
- Be consistent about #define<space> in defs.h
- Allow BSDFFS partitions to be FFSv1 or FFSv2 (fixes PR install/23547)
- i386: install correct bootblocks for root filesystem type.
- Do 'fsck -p' before all mounts (but never a full fsck), rename fsck_xxx()
  to mount_xxx() and remove some wrapper functions.
- Allow root to be an APPLEUFS partition - and allow them to be newfsed,
  should fix PR install/23198
- Redo fstab processing for upgrade to avoid large static data items and
  memory leaks.  Change walk() to abort on user defined error.
  (the fstab stuff really needs more work though...)
- i386: 'Warp' cursor to alternate option when selecting console/bootblocks,
  should fix PR port-i386/23546.
- Allow MENU_ok and MENU_yesno to take user defined title.
- Ensure that mountpoint not defined for swap (and similar issues) when
  editing netbsd label.
- Tweaks to error handling in run_program(), allow user to say that errors
  are expected or that the display shouldn't be cleared before returning.
- Remove some old code that has been festering under #if 0

Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 19 20:17:31 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.40: +61 -48 lines
Diff to previous 1.40 (colored)

Checkpoint a load of changes - seems to work ok still.
- rework run_prog() so that the program name (etc) is usually displayed if
  the program generates any output, or terminates with an error.
  Allow arguments to included in single quotes.
  Try to collect console output so it doesn't interfere with curses.
- Add a '*' to the cylinder count if non-integral number of cylinders
  (on disklabel editor)
- Only show partition type for unused partitions.
- Show size including unused space on '+' partition, remove a..z since
  the don't relate to partition IDs (netbsd partition sizes)
- Fix deleting of 'user' partitions - killed size of next ptn.
- Don't default a swap partition is the disk already has one.
- Fix deleting of extended MBR partitions - changed size of ptn 2.
- Show error message if user tries something illegal in mbr editor.
- Default to old diskname (actually disk type - dunno why!)
- Use MI enable_rc_conf() to set RC_CONFIGURED=YES, use a single sed
  command instead of a raft of code playing with files etc.
- Float some menus to just below header text, saves counting and lets
  language variants have different height headers (use y=-1)
- Track whether anything is mounted on /mnt2 better.
- Put more texts into message file.
- Change english prose texts to be more correct.
- Stop french and polish versions core dumping if ptn start/size changed.
- Fix processing logic for saving /etc (action is still borked)
- Do tail-end setup if any sets (eg X) can't be found (but not if you give
  in (yet)).

Revision 1.40 / (download) - annotate - [select for diffs], Sun Aug 10 14:51:49 2003 UTC (11 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.39: +8 -2 lines
Diff to previous 1.39 (colored)

Let noexec, nodev and nosuid be written to /ets fstab entries
Always use 1023 cylinders in mbr for large disks

Revision 1.39 / (download) - annotate - [select for diffs], Sat Aug 9 21:36:27 2003 UTC (11 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.38: +32 -10 lines
Diff to previous 1.38 (colored)

Allow user to shoot themselves in the foot by specifing a non-standard
'average bytes per inode' for each partition.
Fixes PR install/8509

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 5 13:35:27 2003 UTC (11 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.37: +54 -22 lines
Diff to previous 1.37 (colored)

When writing /etc/fstab:
add support for setting mount options of async, noatime, nodevmtine and softdep.
add noauto if 'mount' was not requested.
add entry for /proc (with noauto)
Display fragment size and block size on the correct line.
Ask for numeric fragment size (not # fragments/block).
Show one unused partition when editing disklabel.
Zap all fields when a partition is made FS_UNSED.
Tweak some menu texts (a space at the end of a line causes a line break!).
Simplify code that displays output from commands - curses is requied to not DTRT
with CR/LF sequences, I need to revert libcurses :-(

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jul 27 07:45:08 2003 UTC (11 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.36: +47 -51 lines
Diff to previous 1.36 (colored)

Remove 'menu_ent' parameter from action routines.
Add menu for all disklabel partition types.
Default 'partition type' and 'sizechoice' menus to current value.
Change 'standard/use existing' to 'set sizes/use existing'.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 25 08:26:21 2003 UTC (11 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Sprinkle a load of consts, and change a few variable names.
Now compiles with WARNS=3.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jul 8 17:38:56 2003 UTC (11 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.34: +36 -10 lines
Diff to previous 1.34 (colored)

Sort out (and remember) the disk partition we will install into.
This should stop the i386 code splatting all over the start of the disk
during upgrade.
Upgrade will still use partition 'a' (unless you loop through the install
far enough first!)

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jul 7 12:30:20 2003 UTC (11 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.33: +228 -114 lines
Diff to previous 1.33 (colored)

Another pass of the rototiller. Mainly:
1) New MBR editor
2) Hierarchic timezone menu

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 27 13:36:04 2003 UTC (11 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Pull texts from MI menus into language dependant text files.
Minor change to name of some strings (eg: MSG_yes -> MSG_Yes == "Yes")

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 16 20:11:40 2003 UTC (11 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored)

Fix some typos

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jun 16 19:42:14 2003 UTC (11 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.30: +14 -36 lines
Diff to previous 1.30 (colored)

A load of KNF changes, plus a couple of strnxxx => strlxxx my fingers did
on the way through.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jun 11 21:35:35 2003 UTC (11 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

rototil of the set selection menu
I've also made the set selection happen first.  This lets me test it!
also measn the selected sets could be used in the disk partition code.
Removed the 'with X' disk layout question (now too late to change the sets).

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jun 10 17:47:15 2003 UTC (11 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.28: +215 -40 lines
Diff to previous 1.28 (colored)

Use dynamic menu for final editing of partition stable

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jun 9 19:06:48 2003 UTC (11 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.27: +114 -12 lines
Diff to previous 1.27 (colored)

Use dynamic menu to select partition to edit

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 3 11:54:48 2003 UTC (11 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

Add NULL to all process_menu() calls - value is passed through to the
action routine.
Make the french and polish versions compile.
NB needs a new version of menuc - so need 'build.sh tools'

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 21 10:05:20 2003 UTC (11 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.25: +8 -8 lines
Diff to previous 1.25 (colored)

Reduce the number of global variables slightly, use the ones that are
left consistently.
Make the i386 install let you partition a disk beyond the CHS limit if the
system bios doesn't support LBA reads (the checks aren't ideal yet).
Make the bsddislabel.c code usable onan i386 system - but don't use it yet.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jan 11 19:44:04 2003 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.24: +2 -57 lines
Diff to previous 1.24 (colored)

Make everything compile again. All platforms compile on i386 now.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 10 20:00:28 2003 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.23: +8 -5 lines
Diff to previous 1.23 (colored)

pass lint[pass1]

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 23 10:29:57 2002 UTC (11 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

make the description text for special label offset a bit more explicit
adresses install/13026 by John P. Refling

Revision 1.22 / (download) - annotate - [select for diffs], Thu Dec 5 01:17:16 2002 UTC (11 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.21: +5 -4 lines
Diff to previous 1.21 (colored)

FILE *log -> FILE *logfp, to avoid warnings about gcc-current's
builtin log() function.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 29 01:30:25 2002 UTC (12 years, 3 months ago) by grant
Branch: MAIN
Changes since 1.20: +24 -24 lines
Diff to previous 1.20 (colored)

whitespace and comment cleanup.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 26 01:00:41 2002 UTC (12 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

enouth -> enough.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jan 14 02:38:14 2001 UTC (13 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-6-base, 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, netbsd-1-6
Changes since 1.18: +16 -39 lines
Diff to previous 1.18 (colored)

extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes.  details:

- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap.  a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing.  this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'.  create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.


[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB.  as
such, my guesses might be wrong so port maintainers should look at these.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Dec 22 10:12:12 2000 UTC (13 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.17: +7 -7 lines
Diff to previous 1.17 (colored)

de-__P()-ify

Revision 1.14.8.1 / (download) - annotate - [select for diffs], Wed Oct 18 17:51:14 2000 UTC (14 years, 1 month ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.14: +32 -10 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pullup (sync with HEAD not including xmisc set changes) [fvdl]:
==
Don't call test(1) to determine the existence/type of files, that's
rather over the top. Not doing this also means that test(1) can
be omitted from the ramdisks (for scripts it's not needed, because it
is built in to sh(1)).
==
On the i386, enable swapspace as soon as the disklabel has been written,
to play nice with low-memory systems.

Add a md_pre_update() hook, to do MD things before an upgrade operation.
On the i386, use it to enable swap.
==
Remove outdated comment.
==
Add a definition for md_init(), an MD function to initialize whatever
needs to be initialized before sysinst starts processing menus.
Call it from main().
==
[i386 only]
* In md_init, determine what kind of bootfloppy we are (either
  by checking uname, or the BOOTMODEL environment var), and set
  the kernel setname accordingly for some bootmodels (tiny and laptop),
  to install GENERIC_TINY and GENERIC_LAPTOP respectively. There's
  no sense in installing plain GENERIC, especially on "tiny" systems;
  it may not even make it far enough to add swapspace on 4M machines.
* Make sure to always install bootcode into the MBR (unless the user
  explicitly tells us not to). Should fix PR#8887, PR#9093, PR#9999
==
[non-i386 md.c files]
Add empty stubs for md_init().
==
[i386]
Fix compare logic error in check for installation of seperate kernel
sets.

Add code to deal with moving a.out libraries to /emul/aout for
upgrading.
==
[i386]
Add 2 defines for a.out library move code.
==
Externalize concat_paths, it is used by arch/i386/md.c now. Add
target_realpath prototype.
==
Add message for a.out library move failure case.
==
Add target_realpath(), a function that expands a pathname on the
"target" filesystem, i.e. a filesystem that will probably be
mounted on /mnt during install/upgrade, but will be / when
the system is booted. Needed to deal with absolute symbolic links.
This function is (unfortunately) a verbatim copy of realpath() from libc,
with prefix handling added.
==
Don't abort when trying to remove a directory marked as obsolete that does
not exist.
==
Create the disktab file directly, no need to waste precious inodes/space
in ramdisks with disktab.preinstall.
==
* Change the interface of run_prog: use a flags argument instead of
  seperate booleans. Add flags to run as a plain 'system()' command,
  fullscreen (but on a pty), and chrooted, and implement their
  functionality. Add a bit of TIOCPKT handling code to handle
  programs messing with term settings better.
* Ask to set the root password at the end of an install.
* Remove a few unneeded comments.
* Sprinkle some touchwin() calls here and there to make the output
cleaner.
  They shouldn't really be needed, but even normal usage (no syslog
  messages) even left the screen messy sometimes.
* Change some messages around that were apparently swapped by accident and
  thus caused confusion.
==
Improve labelling a bit, by allowing some shortcuts to start partitions
where another one ends, and ending partitions where another one start,
or at the start of the disk / until the end of the disk.
==
Stress that if a match is found between a disk device and a BIOS disk,
you really should not be changing the geometry values, unless they
look totally ridiculous due to some BIOS bug.

Disable manual entering of initial partition label values when doing
a custom label. The step was redundant. Just go to the label edit
directly, leaving everything but the c and d partitions empty.
==
Adapt for format change in mbr editing header; it now always displays
the whole partition, and the total disksize.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 17 19:44:28 2000 UTC (14 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.16: +29 -6 lines
Diff to previous 1.16 (colored)

Improve labelling a bit, by allowing some shortcuts to start partitions
where another one ends, and ending partitions where another one start,
or at the start of the disk / until the end of the disk.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:56 2000 UTC (14 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.15: +1 -0 lines
Diff to previous 1.15 (colored)

* Change the interface of run_prog: use a flags argument instead of
  seperate booleans. Add flags to run as a plain 'system()' command,
  fullscreen (but on a pty), and chrooted, and implement their
  functionality. Add a bit of TIOCPKT handling code to handle
  programs messing with term settings better.
* Ask to set the root password at the end of an install.
* Remove a few unneeded comments.
* Sprinkle some touchwin() calls here and there to make the output cleaner.
  They shouldn't really be needed, but even normal usage (no syslog
  messages) even left the screen messy sometimes.
* Change some messages around that were apparently swapped by accident and
  thus caused confusion.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 11 22:58:17 2000 UTC (14 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.14: +3 -5 lines
Diff to previous 1.14 (colored)

Create the disktab file directly, no need to waste precious inodes/space
in ramdisks with disktab.preinstall.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 21 19:19:23 1999 UTC (15 years, 3 months ago) by jdc
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Support ports which don't have 8 partitions/disk.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 4 21:32:48 1999 UTC (15 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

message const poisoning, and conversion from integers to an opaque
message type.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Thu Jun 24 22:58:28 1999 UTC (15 years, 5 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.9.2.1: +3 -4 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

pull up rev(s) 1.12 from trunk. (cgd)

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:14 1999 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: dynamic-messages-base, dynamic-messages
Changes since 1.11: +3 -4 lines
Diff to previous 1.11 (colored)

copyright notice typo fixups, as noticed in PR#7248.  This software
was developed, not develooped.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:27 1999 UTC (15 years, 7 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Changes since 1.9: +132 -3 lines
Diff to previous 1.9 (colored)

sync with head. yes, this is an unorthodox pullup.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Apr 11 22:40:20 1999 UTC (15 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.10: +131 -2 lines
Diff to previous 1.10 (colored)

- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
  enter partitions offet and size. The user can chose unit independantly of
  the unit used for display ('M'/'c'/'s'). These functions do the proper
  bound checks and alignement/roudups. Used in the edfspart menu and
  i386 md_make_bsd_partitions() (other ports should do the change as
  well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
  buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
  the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
  reset. sysinst created me a MBR with 2 active partition. The boot code
  doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run  the commands in a
  subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
  display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
  press enter.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Apr 9 10:24:38 1999 UTC (15 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Some fixes for the do_install() function:
- Make all the functions called from do_install() return an error code,
  so that we can abort install if something went wrong.
- Add a 'errstr' argument to run_prog(), which if not NULL is displayed
  with msg_printf() and followed by process_menu(MENU_ok) if the command fail.
  Used to warn the user that the current action is aborted.
- in a few places use msg_display() or msg_printf() rather than printf.
  It seems that stdout/stderr are not always pointing to the active curses
  window.
- garbage-collecd unused messages, add a few new one (error handling).
XXX only tested on i386. Other md parts should be tested as well.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 31 00:44:48 1999 UTC (15 years, 7 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.8: +38 -38 lines
Diff to previous 1.8 (colored)

Rework the MBR code, and some of the labelling code.

	* Use structures, not 2-dimensional arrays..
	* Use the DIOCGDEFLABEL ioctl to get the disk information,
	  to avoid confusion with (older) labels.
	* Don't ever call fdisk for partitioning. This was the
	  source of much confusion.
	* For the i386, use the BIOS geometry information passed by
	  the bootblocks.

Lots of things left to do, but it's a start.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 21 08:02:18 1999 UTC (15 years, 10 months ago) by garbled
Branch: MAIN
Changes since 1.7: +37 -6 lines
Diff to previous 1.7 (colored)

This change includes the following:
Scripting and logging functionality for sysinst.
Child programs are run in a "display window" so you can actually see what
	they did before the screen flashes back and you loose it all.
Lots of curses fixups.  Removed nasty endwins that mangled the tty upon
	rentry.
Change the yes/no box to accept Y or N, and not require cursor motion to
	decide one or the other.
Perform curses redraws when doing things that could cause the kernel to
	spew printfs onto your screen.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 8 02:56:27 1998 UTC (16 years ago) by jonathan
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Fix sneezo during commit.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 8 02:06:27 1998 UTC (16 years ago) by jonathan
Branch: MAIN
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (colored)

Pull up change from arm32 version: only copy disktab.preinstall if  not DEBUG.
Pull up rev 1.3 from arch/sparc/md.c version:
    add a "ta=4.2BSD" to disktab. fixing choosing X sets to install.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:49 1998 UTC (16 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.4: +54 -30 lines
Diff to previous 1.4 (colored)

KNF.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Thu Dec 18 20:27:57 1997 UTC (16 years, 11 months ago) by perry
Branch: netbsd-1-3
CVS Tags: 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
Changes since 1.1.2.3: +3 -3 lines
Diff to previous 1.1.2.3 (colored) next main 1.2 (colored)

pullup a fix to a critical typo (requested by fvdl)

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 18 11:54:11 1997 UTC (16 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Fix typo that made label overlap check unreliable.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Dec 5 14:46:57 1997 UTC (16 years, 11 months ago) by simonb
Branch: netbsd-1-3
Changes since 1.1.2.2: +3 -3 lines
Diff to previous 1.1.2.2 (colored)

Sync w/ trunc;  typo fix in partition overlap checking.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 5 14:46:01 1997 UTC (16 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Fix typo in partition overlap checking - the inner loop check for
boringpart used the outer loop variable.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Fri Dec 5 14:12:42 1997 UTC (16 years, 11 months ago) by jonathan
Branch: netbsd-1-3
Changes since 1.1.2.1: +292 -0 lines
Diff to previous 1.1.2.1 (colored)

Pull up changes with commit message starting
  >* Add main menu option to reinstall sets or install additional sets.
  >  (like upgrade but without trying to save etc.
to 1.3 release branch:
    defs.h:1.25
    disks.c:1.16
    label.c:1.2
    menus.mi.eng:1.17
    msg.mi.eng:1.24
    net.c:1.24
    target.c:1.14
    upgrade.c:1.12
    util.c:1.22

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 5 14:01:02 1997 UTC (16 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.1: +118 -7 lines
Diff to previous 1.1 (colored)

* Add main menu option to reinstall sets or install additional sets.
  (like upgrade but without trying to save etc.

* Add option to setls0urce menu to look in an already-mounted (local)
  directory.  Change `local fs' option to say umounted local fs.

* Change extract_file() to check that a tarball actually exists
  and give an explicit non-curses warning if it doesn't. (see above.)

* GNU tar returns a successful status if its gunzip child dies.
  Add short sleep() after tar commands in case of undetected errors.

* Change set-source selection code (except FTP, floppy) to check
  that the mandatory set files (base.tgz, etc.tgz) exist
  in the selected directory.  If they don't, warn the user and
  prompt the user to  change the selected directory.
  Give the user the option to explicitly continue even if
  base.tgz or etc.tgz not found, just in case.

* Change extract_file() to keep count of set unpacks that succeeded
  or failed. (Unreliable, given the broken return status of gnu tar.)
  Warn the user if there are errors and abort the installation/upgrade
  if we find any.  Does at least catch Ctrl-C interrupts of unpacking.

* Make unwind_mounts() signal-safe.

* Sense of target_verify_* is broken. Replace with predicates that
  return 1 iff the file or directory exists.

* Fix upgrade tests for existing etc.old (see above) before saving
  target /etc as /etc.old.

* Other detail fixes.

Revision 1.1.2.1, Thu Dec 4 11:33:44 1997 UTC (16 years, 11 months ago) by jonathan
Branch: netbsd-1-3
Changes since 1.1: +0 -181 lines
FILE REMOVED

file label.c was added on branch netbsd-1-3 on 1997-12-05 14:12:42 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 4 11:33:44 1997 UTC (16 years, 11 months ago) by jonathan
Branch: MAIN
Branch point for: netbsd-1-3

Add check for overlapping partitions:
 * Add `partinfo' type, for description of a single partition,
   so we can pass labels by reference..
 * Add label.c with label initialization, naive overlap-check code,
   and a UI entrypoint edit_and_check_label() which iterates through
   checking a label for overlaps, and if any, giving the user the choice of
   fixing them or punting back to the main menu.
 * Change return type of md_make_bsd_partitions from void to int.
   Return 0 if the partition has problems (or the user gave up on it)
   and 1 if the partition is completed and looks OK.
 * Change install() to check return value of md_make_bsd_partitions().
   If it returns zero,  print an `abort' message and return to main menu.
 * Add label.c to all ports' Makefile.

MD code tested on pmax and cut-and-pasted to other ports.

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>