2020-09-10 19:46:07

by Frank van der Linden

[permalink] [raw]
Subject: [PATCH 2/3] 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 <[email protected]>
---
common/attr | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

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
;;
*)
--
2.16.6