Skip to contentSkip to conversation

generic/020: add ceph-fuse support

PATCH In review [email protected] 2 participants 3 messages May 30, 2023 – Jun 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/020: add ceph-fuse support

From: Xiubo Li <[email protected]>

For ceph fuse client the fs type will be "ceph-fuse".

---
 tests/generic/020 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/020 +1 -1
index e00365a9..da258aa5 100755
@@ -56,7 +56,7 @@ _attr_get_max()
 {
 	# set maximum total attr space based on fs type
 	case "$FSTYP" in
-	xfs|udf|pvfs2|9p|ceph|fuse|nfs)
+	xfs|udf|pvfs2|9p|ceph|fuse|nfs|ceph-fuse)
 		max_attrs=1000
 		;;
 	ext2|ext3|ext4)
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

tests/generic/020 _attr_get_max()

Quoted 15 lines · On Tue, May 30, 2023 at 03:15:52PM +0800, [email protected] wrote:

From: Xiubo Li <[email protected]>

For ceph fuse client the fs type will be "ceph-fuse".

---
 tests/generic/020 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/020 +0 -0
index e00365a9..da258aa5 100755
@@ -56,7 +56,7 @@ _attr_get_max()

Hmm... generic/020 is a very old test case, I think this _attr_get_max might can be a common helper in common/attr.

tests/generic/020 _attr_get_max() · line 59

Quoted 5 lines
tests/generic/020 +1 -1
 {
 	# set maximum total attr space based on fs type
 	case "$FSTYP" in
-	xfs|udf|pvfs2|9p|ceph|fuse|nfs)
+	xfs|udf|pvfs2|9p|ceph|fuse|nfs|ceph-fuse)

Anyway, that's another story, for the purpose of this patch:

Quoted 6 lines
tests/generic/020 +0 -0
 		max_attrs=1000
 		;;
 	ext2|ext3|ext4)
Signature · 1 line
2.40.1
author
#2 lore raw
Quoted 11 lines · Zorro Lang
Quoted 10 lines · On Tue, May 30, 2023 at 03:15:52PM +0800, [email protected] wrote:

From: Xiubo Li <[email protected]>

For ceph fuse client the fs type will be "ceph-fuse".

---
  tests/generic/020 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines

tests/generic/020 _attr_get_max()

Quoted 5 lines
tests/generic/020 +0 -0
index e00365a9..da258aa5 100755
@@ -56,7 +56,7 @@ _attr_get_max()

Hmm... generic/020 is a very old test case, I think this _attr_get_max might can be a common helper in common/attr.

Yeah, sounds reasonable.

Quoted 9 lines

tests/generic/020 _attr_get_max() · line 59

Quoted 5 lines
tests/generic/020 +1 -1
  {
  	# set maximum total attr space based on fs type
  	case "$FSTYP" in
-	xfs|udf|pvfs2|9p|ceph|fuse|nfs)
+	xfs|udf|pvfs2|9p|ceph|fuse|nfs|ceph-fuse)

Anyway, that's another story, for the purpose of this patch:

Thanks

- Xiubo

Quoted 6 lines
Quoted 6 lines
tests/generic/020 +0 -0
  		max_attrs=1000
  		;;
  	ext2|ext3|ext4)
Signature · 1 line
2.40.1