Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs use FFS_MAXNAMLEN instead of NAME_MAX, making su...
details: https://anonhg.NetBSD.org/src/rev/77faa82069ab
branches: trunk
changeset: 769936:77faa82069ab
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 27 01:30:54 2011 +0000
description:
use FFS_MAXNAMLEN instead of NAME_MAX, making sure that it matches with
EXT2FS_MAXNAMLEN and LFS_MAXNAMLEN.
diffstat:
sys/ufs/ufs/ufs_vnops.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 73474d973320 -r 77faa82069ab sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c Tue Sep 27 01:27:44 2011 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c Tue Sep 27 01:30:54 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_vnops.c,v 1.202 2011/08/03 10:03:51 hannken Exp $ */
+/* $NetBSD: ufs_vnops.c,v 1.203 2011/09/27 01:30:54 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.202 2011/08/03 10:03:51 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.203 2011/09/27 01:30:54 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -108,6 +108,8 @@
#include <ufs/ffs/ffs_extern.h>
#include <ufs/lfs/lfs_extern.h>
+CTASSERT(EXT2FS_MAXNAMLEN == FFS_MAXNAMLEN);
+CTASSERT(LFS_MAXNAMLEN == FFS_MAXNAMLEN);
#include <uvm/uvm.h>
static int ufs_chmod(struct vnode *, int, kauth_cred_t, struct lwp *);
@@ -2706,7 +2708,7 @@
*ap->a_retval = LINK_MAX;
return (0);
case _PC_NAME_MAX:
- *ap->a_retval = NAME_MAX;
+ *ap->a_retval = FFS_MAXNAMLEN;
return (0);
case _PC_PATH_MAX:
*ap->a_retval = PATH_MAX;
Home |
Main Index |
Thread Index |
Old Index