common/attr: set MAX_ATTR values correctly for NFS

Now that NFS can handle user xattrs, set the MAX_ATTR
and MAX_ATTRVAL_SIZE to reflect the applicable limits
for that filesystem.

Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Frank van der Linden
2020-09-10 19:43:54 +00:00
committed by Eryu Guan
parent 94dcbd03b4
commit da3cdb3b91
+2 -2
View File
@@ -250,7 +250,7 @@ _getfattr()
# set maximum total attr space based on fs type
case "$FSTYP" in
xfs|udf|pvfs2|9p|ceph)
xfs|udf|pvfs2|9p|ceph|nfs)
MAX_ATTRS=1000
;;
*)
@@ -270,7 +270,7 @@ xfs|udf|btrfs)
pvfs2)
MAX_ATTRVAL_SIZE=8192
;;
9p|ceph)
9p|ceph|nfs)
MAX_ATTRVAL_SIZE=65536
;;
*)