NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/45301: resize_ffs(8) does



>Number:         45301
>Category:       bin
>Synopsis:       resize_ffs(8) does
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 27 16:00:00 +0000 2011
>Originator:     Julian Fagir
>Release:        NetBSD-current
>Organization:
>Environment:
NetBSD HOSTNAME 5.99.55 NetBSD 5.99.55 (NETRAT1) #6: Thu Jul 28 15:14:56 CEST 
2011  gnrp@BUILDHOST:~/netbsd/sys/arch/sparc64/compile/obj/NETRAT1 sparc64
>Description:
The manpage of resize_ffs(8) is not really clear about the size argument. You 
have to look into the sourcecode to assure that you have disk sectors.
The current site looks as if it has been written for an older version and then 
just the option added.

The other thing in resize_ffs.c is a small typo.
>How-To-Repeat:
`man 8 resize_ffs`
>Fix:
Index: sbin/resize_ffs/resize_ffs.8
===================================================================
RCS file: /cvsroot/src/sbin/resize_ffs/resize_ffs.8,v
retrieving revision 1.10
diff -u -r1.10 resize_ffs.8
--- sbin/resize_ffs/resize_ffs.8        5 Jan 2011 02:18:15 -0000       1.10
+++ sbin/resize_ffs/resize_ffs.8        27 Aug 2011 15:46:22 -0000
@@ -24,8 +24,7 @@
 .Nm
 resizes a file system.
 .Ar special
-is the name of the raw disk device or file where the file system resides;
-(Sectors are almost always 512 bytes, and
+is the name of the raw disk device or file where the file system resides.
 .Nm
 can both grow and shrink file systems.
 When growing, the disk device
@@ -60,6 +59,8 @@
 .It Fl s
 Specify the file system size to which the file system should be
 resized.
+The size is given as the count of disk sectors, usually 512 bytes. To see the 
+exact value, have a look at the disk specification or the disklabel.
 Mostly used to shrink file systems.
 .It Fl y
 Disable sanity questions made by


Index: sbin/resize_ffs/resize_ffs.c
===================================================================
RCS file: /cvsroot/src/sbin/resize_ffs/resize_ffs.c,v
retrieving revision 1.25
diff -u -r1.25 resize_ffs.c
--- sbin/resize_ffs/resize_ffs.c        5 Jan 2011 02:18:15 -0000       1.25
+++ sbin/resize_ffs/resize_ffs.c        27 Aug 2011 15:48:46 -0000
@@ -933,7 +933,7 @@
         * a frag larger than the old size - unlikely, but no excuse to
         * misbehave if it happens.) */
        if (newsb->fs_size == oldsb->fs_size) {
-               printf("New fs size %"PRIu64" = odl fs size %"PRIu64
+               printf("New fs size %"PRIu64" = old fs size %"PRIu64
                    ", not growing.\n", newsb->fs_size, oldsb->fs_size);
                return;
        }



Home | Main Index | Thread Index | Old Index