Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/sysvbfs Do set f_namemax at mount, to provide sensibl...
details: https://anonhg.NetBSD.org/src/rev/c67ded4d8bf1
branches: trunk
changeset: 756161:c67ded4d8bf1
user: njoly <njoly%NetBSD.org@localhost>
date: Wed Jul 07 16:19:55 2010 +0000
description:
Do set f_namemax at mount, to provide sensible value for statvfs(2)
calls.
diffstat:
sys/fs/sysvbfs/sysvbfs_vfsops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r eb4775f12549 -r c67ded4d8bf1 sys/fs/sysvbfs/sysvbfs_vfsops.c
--- a/sys/fs/sysvbfs/sysvbfs_vfsops.c Wed Jul 07 16:07:10 2010 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vfsops.c Wed Jul 07 16:19:55 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysvbfs_vfsops.c,v 1.32 2010/06/24 13:03:10 hannken Exp $ */
+/* $NetBSD: sysvbfs_vfsops.c,v 1.33 2010/07/07 16:19:55 njoly Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.32 2010/06/24 13:03:10 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.33 2010/07/07 16:19:55 njoly Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -202,6 +202,7 @@
mp->mnt_stat.f_fsidx.__fsid_val[0] = (long)devvp->v_rdev;
mp->mnt_stat.f_fsidx.__fsid_val[1] = makefstype(MOUNT_SYSVBFS);
mp->mnt_stat.f_fsid = mp->mnt_stat.f_fsidx.__fsid_val[0];
+ mp->mnt_stat.f_namemax = BFS_FILENAME_MAXLEN;
mp->mnt_flag |= MNT_LOCAL;
mp->mnt_dev_bshift = BFS_BSHIFT;
mp->mnt_fs_bshift = BFS_BSHIFT;
Home |
Main Index |
Thread Index |
Old Index