Module Name: src Committed By: pooka Date: Thu Jul 15 21:53:10 UTC 2010
Modified Files: src/lib/libpuffs: subr.c Log Message: Default f_namemax to MAXNAMLEN, mostly for initial statvfs struct passed to kernel in mount. XXX: there's currently no way for a file server to override the one passed in mount. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libpuffs/subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libpuffs/subr.c diff -u src/lib/libpuffs/subr.c:1.24 src/lib/libpuffs/subr.c:1.25 --- src/lib/libpuffs/subr.c:1.24 Sun Dec 28 22:45:05 2008 +++ src/lib/libpuffs/subr.c Thu Jul 15 21:53:10 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: subr.c,v 1.24 2008/12/28 22:45:05 christos Exp $ */ +/* $NetBSD: subr.c,v 1.25 2010/07/15 21:53:10 pooka Exp $ */ /* * Copyright (c) 2006 Antti Kantee. All Rights Reserved. @@ -27,7 +27,7 @@ #include <sys/cdefs.h> #if !defined(lint) -__RCSID("$NetBSD: subr.c,v 1.24 2008/12/28 22:45:05 christos Exp $"); +__RCSID("$NetBSD: subr.c,v 1.25 2010/07/15 21:53:10 pooka Exp $"); #endif /* !lint */ #include <sys/types.h> @@ -102,11 +102,13 @@ puffs_fsnop_statvfs(struct puffs_usermount *dontuse1, struct statvfs *sbp) { - sbp->f_bsize = sbp->f_frsize = sbp->f_iosize = 512; + sbp->f_bsize = sbp->f_frsize = sbp->f_iosize = DEV_BSIZE; sbp->f_bfree=sbp->f_bavail=sbp->f_bresvd=sbp->f_blocks = (fsblkcnt_t)0; sbp->f_ffree=sbp->f_favail=sbp->f_fresvd=sbp->f_files = (fsfilcnt_t)0; + sbp->f_namemax = MAXNAMLEN; + return 0; }