Update link count handling in fuse for post-ino64.
Set FUSE_LINK_MAX to UINT32_MAX instead of LINK_MAX to match the maximum link count possible in the 'nlink' field of 'struct fuse_attr'. Sponsored by: Chelsio Communications
This commit is contained in:
parent
d17aef79bb
commit
f83f3d7986
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327006
@ -77,6 +77,6 @@
|
||||
|
||||
#endif
|
||||
|
||||
#define FUSE_LINK_MAX LINK_MAX
|
||||
#define FUSE_LINK_MAX UINT32_MAX
|
||||
|
||||
#endif /* _FUSE_PARAM_H_ */
|
||||
|
@ -1188,7 +1188,7 @@ fuse_vnop_pathconf(struct vop_pathconf_args *ap)
|
||||
*ap->a_retval = NAME_MAX;
|
||||
return (0);
|
||||
case _PC_LINK_MAX:
|
||||
*ap->a_retval = FUSE_LINK_MAX;
|
||||
*ap->a_retval = MIN(LONG_MAX, FUSE_LINK_MAX);
|
||||
return (0);
|
||||
case _PC_SYMLINK_MAX:
|
||||
*ap->a_retval = MAXPATHLEN;
|
||||
|
Loading…
Reference in New Issue
Block a user