FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] common/attr: reduce MAX_ATTRVAL_SIZE for NFS
@ 2022-04-08 19:19 David Disseldorp
  2022-04-11  5:47 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: David Disseldorp @ 2022-04-08 19:19 UTC (permalink / raw)
  To: fstests; +Cc: David Disseldorp

When testing against an NFS export backed by a Btrfs filesystem,
generic/020 may fail, e.g.

  --- /xfstests/tests/generic/020.out
  +++ /xfstests/results/generic/020.out.bad
  @@ -47,9 +47,13 @@
   user.snrub="fish2\012"

   *** really long value
  -0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  -*
  -ATTRSIZE
  +attr_set: No space left on device
  +Could not set "long_attr" for <TESTFILE>
  +attr_get: No data available
  +Could not get "long_attr" for <TESTFILE>
  +0000000
  +attr_remove: No data available
  +Could not remove "long_attr" for <TESTFILE>

This is due to the MAX_ATTRVAL_SIZE=65536 setting for NFS, which exceeds
the Btrfs (and XFS) limit of MAX_ATTRVAL_SIZE=64. Change NFS to use this
lower bound value.

Signed-off-by: David Disseldorp <ddiss@suse.de>
---
 common/attr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/attr b/common/attr
index dae8a1bb..1778e8b2 100644
--- a/common/attr
+++ b/common/attr
@@ -319,13 +319,13 @@ export MAX_ATTRS
 
 # Set max attr value size based on fs type
 case "$FSTYP" in
-xfs|udf|btrfs)
+xfs|udf|btrfs|nfs)
 	MAX_ATTRVAL_SIZE=64
 	;;
 pvfs2)
 	MAX_ATTRVAL_SIZE=8192
 	;;
-9p|ceph|nfs)
+9p|ceph)
 	MAX_ATTRVAL_SIZE=65536
 	;;
 bcachefs)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-11 22:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-08 19:19 [PATCH] common/attr: reduce MAX_ATTRVAL_SIZE for NFS David Disseldorp
2022-04-11  5:47 ` Dave Chinner
2022-04-11  8:57   ` David Disseldorp
2022-04-11 22:29     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox