nfsd: add missing FATTR4_WORD2_CLONE_BLKSIZE from supported attributes
Subsystems (2)
Olga Kornievskaia
reviewerPATCH 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
@@ -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
Quoted 1 line · Olga Kornievskaia
RFC 7862 says that if the server supports CLONE it must support
MUST << BCP14
Quoted 1 line
clone_blksizeattribute.
Quoted 19 lines
Signed-off-by Olga Kornievskaia <[email protected]>--- fs/nfsd/nfsd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)fs/nfsd/nfsd.h +2
-1@@ -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
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_blksizeattribute.Fixes d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")
I will add a Cc: stable here.
Quoted 5 lines
Quoted 5 lines
Signed-off-by Olga Kornievskaia <[email protected]>--- 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@@ -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
-0extern const u32 nfsd_suppattrs[3 ][3 ];
Signature · 1 line
Chuck Lever
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_blksizeattribute.Fixes d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")I will add a Cc: stable here.
Quoted 5 lines
Quoted 5 lines
Signed-off-by Olga Kornievskaia <[email protected]>--- 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@@ -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_BLKSIZEshould be added beforeXATTR_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
-0extern const u32 nfsd_suppattrs[3 ][3 ];--
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_blksizeattribute.Fixes d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")I will add a Cc: stable here.
Quoted 5 lines
Quoted 5 lines
Signed-off-by Olga Kornievskaia <[email protected]>--- 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@@ -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_BLKSIZEshould be added beforeXATTR_SUPPORT.
Please do.
Quoted 7 lines
Quoted 6 lines
fs/nfsd/nfsd.h enum { · line 466
Quoted 4 lines
fs/nfsd/nfsd.h +0
-0extern const u32 nfsd_suppattrs[3 ][3 ];
Patch looks good.