Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/smbfs set 'frag' size to the same value as the file s...



details:   https://anonhg.NetBSD.org/src/rev/ed58c7cc2972
branches:  trunk
changeset: 567205:ed58c7cc2972
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 05 06:28:11 2004 +0000

description:
set 'frag' size to the same value as the file system block size, so
that userland would pick up correct size of unit (it uses lower of
these values as the size of one 'block' for f_blocks et.al.)
fixes PR bin/25319 by Juan RP

diffstat:

 sys/fs/smbfs/smbfs_smb.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r b44eeff98963 -r ed58c7cc2972 sys/fs/smbfs/smbfs_smb.c
--- a/sys/fs/smbfs/smbfs_smb.c  Sat Jun 05 05:07:02 2004 +0000
+++ b/sys/fs/smbfs/smbfs_smb.c  Sat Jun 05 06:28:11 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_smb.c,v 1.22 2004/05/23 11:18:28 jdolecek Exp $  */
+/*     $NetBSD: smbfs_smb.c,v 1.23 2004/06/05 06:28:11 jdolecek Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.22 2004/05/23 11:18:28 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.23 2004/06/05 06:28:11 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -215,8 +215,8 @@
        smb_t2_done(t2p);
 
        sbp->f_bsize = bpu * bsize;     /* fundamental file system block size */
-       sbp->f_frsize = bsize;          /* fundamental file system frag size */
-       sbp->f_iosize = bsize;          /* I/O size */
+       sbp->f_frsize = bpu * bsize;    /* fundamental file system frag size */
+       sbp->f_iosize = bpu * bsize;    /* I/O size */
        sbp->f_blocks= units;           /* total data blocks in file system */
        sbp->f_bfree = funits;          /* free blocks in fs */
        sbp->f_bresvd = 0;              /* reserved blocks in fs */
@@ -257,8 +257,8 @@
        smb_rq_done(rqp);
 
        sbp->f_bsize = bpu * bsize;     /* fundamental file system block size */
-       sbp->f_frsize = bsize;          /* fundamental file system frag size */
-       sbp->f_iosize = bsize;          /* I/O size */
+       sbp->f_frsize = bpu * bsize;    /* fundamental file system frag size */
+       sbp->f_iosize = bpu * bsize;    /* I/O size */
        sbp->f_blocks= units;           /* total data blocks in file system */
        sbp->f_bfree = funits;          /* free blocks in fs */
        sbp->f_bavail= funits;          /* free blocks avail to non-superuser */



Home | Main Index | Thread Index | Old Index