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 use RUMPFS_MAXNAMLEN consistently.
details: https://anonhg.NetBSD.org/src/rev/b90eab4aff5c
branches: trunk
changeset: 769943:b90eab4aff5c
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 01:45:04 2011 +0000
description:
use RUMPFS_MAXNAMLEN consistently.
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 8f4b087a71ac -r b90eab4aff5c sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Tue Sep 27 01:43:39 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Tue Sep 27 01:45:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.100 2011/09/27 01:25:32 christos Exp $ */
+/* $NetBSD: rumpfs.c,v 1.101 2011/09/27 01:45:04 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.100 2011/09/27 01:25:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.101 2011/09/27 01:45:04 christos Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -1479,7 +1479,7 @@
*retval = LINK_MAX;
return 0;
case _PC_NAME_MAX:
- *retval = NAME_MAX;
+ *retval = RUMPFS_MAXNAMLEN;
return 0;
case _PC_PATH_MAX:
*retval = PATH_MAX;
@@ -1661,7 +1661,7 @@
VOP_UNLOCK(rfsmp->rfsmp_rvp);
mp->mnt_data = rfsmp;
- mp->mnt_stat.f_namemax = MAXNAMLEN;
+ mp->mnt_stat.f_namemax = RUMPFS_MAXNAMLEN;
mp->mnt_stat.f_iosize = 512;
mp->mnt_flag |= MNT_LOCAL;
mp->mnt_iflag |= IMNT_MPSAFE | IMNT_CAN_RWTORO;
Home |
Main Index |
Thread Index |
Old Index