Module Name: src
Committed By: pooka
Date: Thu Jul 15 21:55:05 UTC 2010
Modified Files:
src/sys/fs/puffs: puffs_vfsops.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/fs/puffs/puffs_vfsops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/puffs/puffs_vfsops.c
diff -u src/sys/fs/puffs/puffs_vfsops.c:1.93 src/sys/fs/puffs/puffs_vfsops.c:1.94
--- src/sys/fs/puffs/puffs_vfsops.c:1.93 Tue Jul 6 13:47:47 2010
+++ src/sys/fs/puffs/puffs_vfsops.c Thu Jul 15 21:55:05 2010
@@ -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