common/attr: set MAX_ATTR values correctly for NFS
authorFrank van der Linden <fllinden@amazon.com>
Thu, 10 Sep 2020 19:43:54 +0000 (19:43 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Sep 2020 16:25:59 +0000 (00:25 +0800)
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>
common/attr

index 894fe07ae945bdf26e0c76e3681a8ec28dad6594..669909d6007233df73517ba8da1d5ee776373f63 100644 (file)
@@ -250,7 +250,7 @@ _getfattr()
 
 # set maximum total attr space based on fs type
 case "$FSTYP" in
 
 # 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
        ;;
 *)
        MAX_ATTRS=1000
        ;;
 *)
@@ -270,7 +270,7 @@ xfs|udf|btrfs)
 pvfs2)
        MAX_ATTRVAL_SIZE=8192
        ;;
 pvfs2)
        MAX_ATTRVAL_SIZE=8192
        ;;
-9p|ceph)
+9p|ceph|nfs)
        MAX_ATTRVAL_SIZE=65536
        ;;
 *)
        MAX_ATTRVAL_SIZE=65536
        ;;
 *)