From 1e439c8185fd5b601b1d1dc4882a806ff42228cd Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 27 Sep 2011 01:34:41 +0000 Subject: [PATCH] define NILFS_MAXNAMLEN and use it. --- sys/fs/nilfs/nilfs.h | 4 +++- sys/fs/nilfs/nilfs_vnops.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/fs/nilfs/nilfs.h b/sys/fs/nilfs/nilfs.h index 34f8166c353c..7137e9a5553d 100644 --- a/sys/fs/nilfs/nilfs.h +++ b/sys/fs/nilfs/nilfs.h @@ -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_node; struct nilfs_mount; +#define NILFS_MAXNAMLEN 255 + /* structure and derivatives */ struct nilfs_mdt { uint32_t entries_per_block; diff --git a/sys/fs/nilfs/nilfs_vnops.c b/sys/fs/nilfs/nilfs_vnops.c index 0934a3401fec..2696ffb38621 100644 --- a/sys/fs/nilfs/nilfs_vnops.c +++ b/sys/fs/nilfs/nilfs_vnops.c @@ -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 #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 @@ nilfs_pathconf(void *v) *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;