Nils Goroll
2009-Sep-11 16:12 UTC
[zfs-code] pathconf values on ZFS (PATH_MAX, NAME_MAX in particular)
Hi All, running pathconf(path, PATH_MAX) on a ZFS file system made me wonder if zfs_pathconf should return higher values for PATH_MAX, NAME_MAX, SYMLINK_MAX etc. rather than falling though to fs_pathconf, which just returns the constants? Or is there a good reason for this behavior that I am not aware of? Thanks, Nils Ref http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/zfs_vnops.c#4435 slink at c0:~$ ./pathconf / {ACL_ENABLED} : 2 {FILESIZEBITS} : 64 {LINK_MAX} : -1 {MAX_CANON} : 256 {MAX_INPUT} : 512 {MIN_HOLE_SIZE} : 512 {NAME_MAX} : 255 {PATH_MAX} : 1024 {PIPE_BUF} : 5120 {POSIX_ALLOC_SIZE_MIN} : 131072 {POSIX_REC_INCR_XFER_SIZE} : 131072 {POSIX_REC_MAX_XFER_SIZE} : 1048576 {POSIX_REC_MIN_XFER_SIZE} : 131072 {POSIX_REC_XFER_ALIGN} : 131072 {SYMLINK_MAX} : 1024 {XATTR_ENABLED} : 1 {XATTR_EXISTS} : 0 _POSIX_CHOWN_RESTRICTED : 1 _POSIX_NO_TRUNC : 1 _POSIX_VDISABLE : 0 _POSIX_ASYNC_IO : 1 _POSIX_PRIO_IO : -1 Invalid argument _POSIX_SYNC_IO : 1 Invalid argument