Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/nilfs define NILFS_MAXNAMLEN and use it.



details:   https://anonhg.NetBSD.org/src/rev/01f40673589c
branches:  trunk
changeset: 769939:01f40673589c
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 27 01:34:41 2011 +0000

description:
define NILFS_MAXNAMLEN and use it.

diffstat:

 sys/fs/nilfs/nilfs.h       |  4 +++-
 sys/fs/nilfs/nilfs_vnops.c |  6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 97e53dd6d48a -r 01f40673589c sys/fs/nilfs/nilfs.h
--- a/sys/fs/nilfs/nilfs.h      Tue Sep 27 01:33:30 2011 +0000
+++ b/sys/fs/nilfs/nilfs.h      Tue Sep 27 01:34:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nilfs.h,v 1.1 2009/07/18 16:31:42 reinoud Exp $ */
+/* $NetBSD: nilfs.h,v 1.2 2011/09/27 01:34:41 christos Exp $ */
 
 /*
  * Copyright (c) 2008, 2009 Reinoud Zandijk
@@ -106,6 +106,8 @@
 struct nilfs_mount;
 
 
+#define NILFS_MAXNAMLEN        255
+
 /* structure and derivatives */
 struct nilfs_mdt {
        uint32_t  entries_per_block;
diff -r 97e53dd6d48a -r 01f40673589c sys/fs/nilfs/nilfs_vnops.c
--- a/sys/fs/nilfs/nilfs_vnops.c        Tue Sep 27 01:33:30 2011 +0000
+++ b/sys/fs/nilfs/nilfs_vnops.c        Tue Sep 27 01:34:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nilfs_vnops.c,v 1.13 2011/06/19 02:42:53 rmind Exp $ */
+/* $NetBSD: nilfs_vnops.c,v 1.14 2011/09/27 01:34:41 christos Exp $ */
 
 /*
  * Copyright (c) 2008, 2009 Reinoud Zandijk
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: nilfs_vnops.c,v 1.13 2011/06/19 02:42:53 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nilfs_vnops.c,v 1.14 2011/09/27 01:34:41 christos Exp $");
 #endif /* not lint */
 
 
@@ -902,7 +902,7 @@
                *ap->a_retval = (1<<16)-1;      /* 16 bits */
                return 0;
        case _PC_NAME_MAX:
-               *ap->a_retval = NAME_MAX;
+               *ap->a_retval = NILFS_MAXNAMLEN;
                return 0;
        case _PC_PATH_MAX:
                *ap->a_retval = PATH_MAX;



Home | Main Index | Thread Index | Old Index