Source-Changes-HG archive

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

[src/trunk]: src/bin/df PR/50422: Robert Elz: df -G prints the wrong value fo...



details:   https://anonhg.NetBSD.org/src/rev/1c32c6c7070b
branches:  trunk
changeset: 341591:1c32c6c7070b
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 12 17:59:21 2015 +0000

description:
PR/50422: Robert Elz: df -G prints the wrong value for fragsize (+FIX)
For df -G, print the block and fragment size instead of the iosize
and the blocksize. If we need to print the iosize, it should be done
in a different field. Nevertheless printing the blocksize in the fragment
size field is just wrong.
XXX: pullup-6, pullup-7

diffstat:

 bin/df/df.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 708933b887a0 -r 1c32c6c7070b bin/df/df.c
--- a/bin/df/df.c       Thu Nov 12 17:51:05 2015 +0000
+++ b/bin/df/df.c       Thu Nov 12 17:59:21 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: df.c,v 1.90 2012/01/07 18:45:13 christos Exp $ */
+/*     $NetBSD: df.c,v 1.91 2015/11/12 17:59:21 christos Exp $ */
 
 /*
  * Copyright (c) 1980, 1990, 1993, 1994
@@ -45,7 +45,7 @@
 #if 0
 static char sccsid[] = "@(#)df.c       8.7 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: df.c,v 1.90 2012/01/07 18:45:13 christos Exp $");
+__RCSID("$NetBSD: df.c,v 1.91 2015/11/12 17:59:21 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -379,13 +379,13 @@
                 */
                (void)printf("%10s (%-12s): %7ld block size %12ld frag size\n",
                    sfsp->f_mntonname, sfsp->f_mntfromname,
-                   sfsp->f_iosize,     /* On UFS/FFS systems this is
+                   sfsp->f_bsize,      /* On UFS/FFS systems this is
                                         * also called the "optimal
                                         * transfer block size" but it
                                         * is of course the file
                                         * system's block size too.
                                         */
-                   sfsp->f_bsize);     /* not so surprisingly the
+                   sfsp->f_frsize);    /* not so surprisingly the
                                         * "fundamental file system
                                         * block size" is the frag
                                         * size.



Home | Main Index | Thread Index | Old Index