Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/smbfs fill namemax
details: https://anonhg.NetBSD.org/src/rev/e0e2344b5d79
branches: trunk
changeset: 566054:e0e2344b5d79
user: christos <christos%NetBSD.org@localhost>
date: Mon Apr 26 17:08:34 2004 +0000
description:
fill namemax
diffstat:
sys/fs/smbfs/smbfs_vfsops.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r cda918c7e4d3 -r e0e2344b5d79 sys/fs/smbfs/smbfs_vfsops.c
--- a/sys/fs/smbfs/smbfs_vfsops.c Mon Apr 26 14:00:31 2004 +0000
+++ b/sys/fs/smbfs/smbfs_vfsops.c Mon Apr 26 17:08:34 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbfs_vfsops.c,v 1.36 2004/04/25 16:42:41 simonb Exp $ */
+/* $NetBSD: smbfs_vfsops.c,v 1.37 2004/04/26 17:08:34 christos Exp $ */
/*
* Copyright (c) 2000-2001, Boris Popov
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.36 2004/04/25 16:42:41 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.37 2004/04/26 17:08:34 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_quota.h"
@@ -46,6 +46,7 @@
#include <sys/proc.h>
#include <sys/buf.h>
#include <sys/kernel.h>
+#include <sys/dirent.h>
#include <sys/sysctl.h>
#include <sys/vnode.h>
#include <sys/mount.h>
@@ -199,6 +200,7 @@
mp, p);
if (error)
goto bad;
+ sbp->mnt_stat.f_namemax = MAXNAMLEN;
memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN);
snprintf(mp->mnt_stat.f_mntfromname, MNAMELEN,
"//%s@%s/%s", vcp->vc_username, vcp->vc_srvname, ssp->ss_name);
@@ -413,6 +415,7 @@
return error;
sbp->f_flag = 0; /* copy of mount exported flags */
sbp->f_owner = mp->mnt_stat.f_owner; /* user that mounted the filesystem */
+ sbp->f_namemax = MAXNAMLEN;
copy_statvfs_info(sbp, mp);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index