diff mbox series

[2/3] common/attr: set MAX_ATTR values correctly for NFS

Message ID 20200910194355.5977-2-fllinden@amazon.com
State New
Headers show
Series [1/3] common/attr: make _require_attrs more fine-grained | expand

Commit Message

Frank van der Linden Sept. 10, 2020, 7:43 p.m. UTC
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>
---
 common/attr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/common/attr b/common/attr
index c60cb6ed..fb856449 100644
--- a/common/attr
+++ b/common/attr
@@ -251,7 +251,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
 	;;
 *)
@@ -271,7 +271,7 @@  xfs|udf|btrfs)
 pvfs2)
 	MAX_ATTRVAL_SIZE=8192
 	;;
-9p|ceph)
+9p|ceph|nfs)
 	MAX_ATTRVAL_SIZE=65536
 	;;
 *)