Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs define RUMPFS_MAXNAMLEN and use it.
details: https://anonhg.NetBSD.org/src/rev/a1a8c2dee895
branches: trunk
changeset: 769934:a1a8c2dee895
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 01:25:32 2011 +0000
description:
define RUMPFS_MAXNAMLEN and use it.
diffstat:
sys/rump/librump/rumpvfs/rump_vfs_private.h | 4 +++-
sys/rump/librump/rumpvfs/rumpfs.c | 12 ++++++------
2 files changed, 9 insertions(+), 7 deletions(-)
diffs (72 lines):
diff -r 289d3b1726dd -r a1a8c2dee895 sys/rump/librump/rumpvfs/rump_vfs_private.h
--- a/sys/rump/librump/rumpvfs/rump_vfs_private.h Tue Sep 27 01:23:59 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rump_vfs_private.h Tue Sep 27 01:25:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_vfs_private.h,v 1.14 2010/09/07 21:11:10 pooka Exp $ */
+/* $NetBSD: rump_vfs_private.h,v 1.15 2011/09/27 01:25:32 christos Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -57,6 +57,8 @@
#include <sys/vnode.h>
#include <rump/rump.h>
+#define RUMPFS_MAXNAMLEN 255
+
#include "rumpvfs_if_priv.h"
#endif /* _SYS_RUMP_VFS_PRIVATE_H_ */
diff -r 289d3b1726dd -r a1a8c2dee895 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Tue Sep 27 01:23:59 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Tue Sep 27 01:25:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.99 2011/08/23 07:40:32 hannken Exp $ */
+/* $NetBSD: rumpfs.c,v 1.100 2011/09/27 01:25:32 christos Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.99 2011/08/23 07:40:32 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.100 2011/09/27 01:25:32 christos Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -229,7 +229,7 @@
*/
struct etfs {
- char et_key[MAXPATHLEN];
+ char et_key[RUMPFS_MAXPATHLEN];
size_t et_keylen;
bool et_prefixkey;
bool et_removing;
@@ -1076,7 +1076,7 @@
int rv;
linklen = strlen(target);
- KASSERT(linklen < MAXPATHLEN);
+ KASSERT(linklen < RUMPFS_MAXPATHLEN);
rn = makeprivate(VLNK, NODEV, linklen, false);
if ((cnp->cn_flags & ISWHITEOUT) != 0)
rn->rn_va.va_flags |= UF_OPAQUE;
@@ -1086,7 +1086,7 @@
makedir(rnd, cnp, rn);
- KASSERT(linklen < MAXPATHLEN);
+ KASSERT(linklen < RUMPFS_MAXPATHLEN);
rn->rn_linktarg = PNBUF_GET();
rn->rn_linklen = linklen;
strcpy(rn->rn_linktarg, target);
@@ -1500,7 +1500,7 @@
*retval = 43; /* this one goes to 11 */
return 0;
case _PC_SYMLINK_MAX:
- *retval = MAXPATHLEN;
+ *retval = RUMPFS_MAXPATHLEN;
return 0;
case _PC_2_SYMLINKS:
*retval = 1;
Home |
Main Index |
Thread Index |
Old Index