Skip to contentSkip to conversation

nfsd: add missing FATTR4_WORD2_CLONE_BLKSIZE from supported attributes

PATCH Superseded Olga Kornievskaia 4 participants 5 messages Oct 9, 2025

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Olga Kornievskaia

author reviewer
#0 lore raw

PATCH 1/1 nfsd: add missing FATTR4_WORD2_CLONE_BLKSIZE from supported attributes

RFC 7862 says that if the server supports CLONE it must support clone_blksize attribute.

---
 fs/nfsd/nfsd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/nfsd/nfsd.h +2 -1
index ea87b42894dd..8cda8cd0f723 100644
@@ -459,7 +459,8 @@ enum {
 	FATTR4_WORD2_XATTR_SUPPORT | \
 	FATTR4_WORD2_TIME_DELEG_ACCESS | \
 	FATTR4_WORD2_TIME_DELEG_MODIFY | \
-	FATTR4_WORD2_OPEN_ARGUMENTS)
+	FATTR4_WORD2_OPEN_ARGUMENTS | \
+	FATTR4_WORD2_CLONE_BLKSIZE)
 
 extern const u32 nfsd_suppattrs[3][3];
 
Signature · 1 line
2.47.3
#1 lore raw
Quoted 1 line · Olga Kornievskaia

RFC 7862 says that if the server supports CLONE it must support

MUST << BCP14

Quoted 1 line

clone_blksize attribute.

Fixes d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")
Quoted 19 lines
---
 fs/nfsd/nfsd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/nfsd/nfsd.h +2 -1
index ea87b42894dd..8cda8cd0f723 100644
@@ -459,7 +459,8 @@ enum {
 	FATTR4_WORD2_XATTR_SUPPORT | \
 	FATTR4_WORD2_TIME_DELEG_ACCESS | \
 	FATTR4_WORD2_TIME_DELEG_MODIFY | \
-	FATTR4_WORD2_OPEN_ARGUMENTS)
+	FATTR4_WORD2_OPEN_ARGUMENTS | \
+	FATTR4_WORD2_CLONE_BLKSIZE)
 
 extern const u32 nfsd_suppattrs[3][3];
 
Signature · 1 line
Chuck Lever
#2 lore raw
Quoted 2 lines · Chuck Lever
Quoted 1 line · Olga Kornievskaia

RFC 7862

And, let's add Section 4.1.2 here.

Quoted 8 lines

says that if the server supports CLONE it must support

MUST << BCP14

Quoted 1 line

clone_blksize attribute.

Fixes d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")

I will add a Cc: stable here.

Quoted 5 lines
Quoted 5 lines
---
 fs/nfsd/nfsd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 11 lines

fs/nfsd/nfsd.h enum { · line 463

Quoted 11 lines
fs/nfsd/nfsd.h +2 -1
index ea87b42894dd..8cda8cd0f723 100644
@@ -459,7 +459,8 @@ enum {
 	FATTR4_WORD2_XATTR_SUPPORT | \
 	FATTR4_WORD2_TIME_DELEG_ACCESS | \
 	FATTR4_WORD2_TIME_DELEG_MODIFY | \
-	FATTR4_WORD2_OPEN_ARGUMENTS)
+	FATTR4_WORD2_OPEN_ARGUMENTS | \
+	FATTR4_WORD2_CLONE_BLKSIZE)

Nit: shall we keep these in numeric order? CLONE_BLKSIZE should be added before XATTR_SUPPORT.

Quoted 5 lines
Quoted 3 lines
fs/nfsd/nfsd.h +0 -0
 extern const u32 nfsd_suppattrs[3][3];
 
Signature · 1 line
Chuck Lever
#3 lore raw
Quoted 25 lines · Chuck Lever
Quoted 2 lines · Chuck Lever
Quoted 1 line · Olga Kornievskaia

RFC 7862

And, let's add Section 4.1.2 here.

Quoted 8 lines

says that if the server supports CLONE it must support

MUST << BCP14

Quoted 1 line

clone_blksize attribute.

Fixes d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")

I will add a Cc: stable here.

Quoted 5 lines
Quoted 5 lines
---
 fs/nfsd/nfsd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 14 lines
Quoted 11 lines

fs/nfsd/nfsd.h enum { · line 463

Quoted 11 lines
fs/nfsd/nfsd.h +2 -1
index ea87b42894dd..8cda8cd0f723 100644
@@ -459,7 +459,8 @@ enum {
     FATTR4_WORD2_XATTR_SUPPORT | \
     FATTR4_WORD2_TIME_DELEG_ACCESS | \
     FATTR4_WORD2_TIME_DELEG_MODIFY | \
-    FATTR4_WORD2_OPEN_ARGUMENTS)
+    FATTR4_WORD2_OPEN_ARGUMENTS | \
+    FATTR4_WORD2_CLONE_BLKSIZE)

Nit: shall we keep these in numeric order? CLONE_BLKSIZE should be added before XATTR_SUPPORT.

Thank you Chuck. I'll send a v2.

Quoted 12 lines
Quoted 7 lines

fs/nfsd/nfsd.h enum { · line 466

Quoted 5 lines
fs/nfsd/nfsd.h +0 -0
 extern const u32 nfsd_suppattrs[3][3];
 

--
Chuck Lever

maintainer Reviewed-by
#4 lore raw
In reply to Chuck Lever
Quoted 24 lines · Chuck Lever
Quoted 2 lines · Chuck Lever
Quoted 1 line · Olga Kornievskaia

RFC 7862

And, let's add Section 4.1.2 here.

Quoted 8 lines

says that if the server supports CLONE it must support

MUST << BCP14

Quoted 1 line

clone_blksize attribute.

Fixes d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")

I will add a Cc: stable here.

Quoted 5 lines
Quoted 5 lines
---
 fs/nfsd/nfsd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 15 lines
Quoted 11 lines

fs/nfsd/nfsd.h enum { · line 463

Quoted 11 lines
fs/nfsd/nfsd.h +2 -1
index ea87b42894dd..8cda8cd0f723 100644
@@ -459,7 +459,8 @@ enum {
 	FATTR4_WORD2_XATTR_SUPPORT | \
 	FATTR4_WORD2_TIME_DELEG_ACCESS | \
 	FATTR4_WORD2_TIME_DELEG_MODIFY | \
-	FATTR4_WORD2_OPEN_ARGUMENTS)
+	FATTR4_WORD2_OPEN_ARGUMENTS | \
+	FATTR4_WORD2_CLONE_BLKSIZE)

Nit: shall we keep these in numeric order? CLONE_BLKSIZE should be added before XATTR_SUPPORT.

Please do.

Quoted 7 lines
Quoted 6 lines

fs/nfsd/nfsd.h enum { · line 466

Quoted 4 lines
fs/nfsd/nfsd.h +0 -0
 extern const u32 nfsd_suppattrs[3][3];
 

Patch looks good.