Subject: bin/15742: mount_lfs does not recognize -b option
To: None <gnats-bugs@gnats.netbsd.org>
From: DHOYASHIKI Shinichi <clare@znet.or.jp>
List: netbsd-bugs
Date: 02/27/2002 00:44:49
>Number:         15742
>Category:       bin
>Synopsis:       mount_lfs does not recognize -b option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 26 07:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     clare@znet.or.jp
>Release:        NetBSD 1.5ZA (Feb. 2002)
>Organization:
at home
>Environment:
System: NetBSD minako 1.5ZA NetBSD 1.5ZA (MINAKO2) #0: Mon Feb 25 13:36:56 JST 2002 clare@minako:/export/tnf-work/sys/arch/i386/compile/MINAKO2 i386
Architecture: i386
Machine: i386

>Description:
	mount_lfs has implementation of option "-b" that described in mount_lfs(8)
	manual page, but mount_lfs rejects that option.

>How-To-Repeat:
	run mount_lfs with -b option.
	# mount_lfs -b /dev/wd0i /cvs

>Fix:
Index: mount_lfs.c
===================================================================
RCS file: /cvs/tnf-cvs/basesrc/sbin/mount_lfs/mount_lfs.c,v
retrieving revision 1.12
diff -u -t -r1.12 mount_lfs.c
--- mount_lfs.c	2000/11/13 22:12:49	1.12
+++ mount_lfs.c	2002/02/26 14:56:05
@@ -107,7 +107,7 @@
         nsegs = "4";
         mntflags = noclean = 0;
         cleaner_bytes = 1;
-        while ((ch = getopt(argc, argv, "dN:no:s")) != -1)
+        while ((ch = getopt(argc, argv, "bdN:no:s?")) != -1)
                 switch (ch) {
                 case 'b':
                         cleaner_bytes = !cleaner_bytes;
>Release-Note:
>Audit-Trail:
>Unformatted: