Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/kernfs define KERNFS_MAXNAMLEN and use it.`
details: https://anonhg.NetBSD.org/src/rev/68501edf706e
branches: trunk
changeset: 769932:68501edf706e
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 01:23:05 2011 +0000
description:
define KERNFS_MAXNAMLEN and use it.`
diffstat:
sys/miscfs/kernfs/kernfs.h | 4 +++-
sys/miscfs/kernfs/kernfs_vfsops.c | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 237acd5ddb25 -r 68501edf706e sys/miscfs/kernfs/kernfs.h
--- a/sys/miscfs/kernfs/kernfs.h Tue Sep 27 01:22:12 2011 +0000
+++ b/sys/miscfs/kernfs/kernfs.h Tue Sep 27 01:23:05 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs.h,v 1.35 2009/01/11 02:45:53 christos Exp $ */
+/* $NetBSD: kernfs.h,v 1.36 2011/09/27 01:23:05 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -119,6 +119,8 @@
#define VTOKERN(vp) ((struct kernfs_node *)(vp)->v_data)
#define KERNFSTOV(kfs) ((kfs)->kfs_vnode)
+#define KERNFS_MAXNAMLEN 255
+
extern const struct kern_target kern_targets[];
extern int nkern_targets;
extern const int static_nkern_targets;
diff -r 237acd5ddb25 -r 68501edf706e sys/miscfs/kernfs/kernfs_vfsops.c
--- a/sys/miscfs/kernfs/kernfs_vfsops.c Tue Sep 27 01:22:12 2011 +0000
+++ b/sys/miscfs/kernfs/kernfs_vfsops.c Tue Sep 27 01:23:05 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vfsops.c,v 1.90 2009/11/30 10:59:20 pooka Exp $ */
+/* $NetBSD: kernfs_vfsops.c,v 1.91 2011/09/27 01:23:05 christos Exp $ */
/*
* Copyright (c) 1992, 1993, 1995
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vfsops.c,v 1.90 2009/11/30 10:59:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vfsops.c,v 1.91 2011/09/27 01:23:05 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -145,7 +145,7 @@
fmp = malloc(sizeof(struct kernfs_mount), M_KERNFSMNT, M_WAITOK|M_ZERO);
TAILQ_INIT(&fmp->nodelist);
- mp->mnt_stat.f_namemax = MAXNAMLEN;
+ mp->mnt_stat.f_namemax = KERNFS_MAXNAMLEN;
mp->mnt_flag |= MNT_LOCAL;
mp->mnt_data = fmp;
vfs_getnewfsid(mp);
Home |
Main Index |
Thread Index |
Old Index