define NILFS_MAXNAMLEN and use it.

This commit is contained in:
christos 2011-09-27 01:34:41 +00:00
parent 2fcd0204c6
commit 1e439c8185
2 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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 @@ 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;