Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/puffs f_namemax is one of the static fields overridde...
details: https://anonhg.NetBSD.org/src/rev/4987cf09ddf5
branches: trunk
changeset: 756388:4987cf09ddf5
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jul 15 21:55:05 2010 +0000
description:
f_namemax is one of the static fields overridden by copy_statvfs_info(),
so be sure to set it to the value coming from the file server as
part of mount args.
exposed, like so many other problems, by njoly's tests
diffstat:
sys/fs/puffs/puffs_vfsops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 9c867ed271bd -r 4987cf09ddf5 sys/fs/puffs/puffs_vfsops.c
--- a/sys/fs/puffs/puffs_vfsops.c Thu Jul 15 21:53:10 2010 +0000
+++ b/sys/fs/puffs/puffs_vfsops.c Thu Jul 15 21:55:05 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: puffs_vfsops.c,v 1.93 2010/07/06 13:47:47 pooka Exp $ */
+/* $NetBSD: puffs_vfsops.c,v 1.94 2010/07/15 21:55:05 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.93 2010/07/06 13:47:47 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.94 2010/07/15 21:55:05 pooka Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -223,6 +223,7 @@
if (error)
goto out;
mp->mnt_stat.f_iosize = DEV_BSIZE;
+ mp->mnt_stat.f_namemax = args->pa_svfsb.f_namemax;
/*
* We can't handle the VFS_STATVFS() mount_domount() does
Home |
Main Index |
Thread Index |
Old Index