]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nfsd: add missing FATTR4_WORD2_CLONE_BLKSIZE from supported attributes
authorOlga Kornievskaia <okorniev@redhat.com>
Thu, 9 Oct 2025 20:37:59 +0000 (16:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 09:37:41 +0000 (10:37 +0100)
commit 4d3dbc2386fe051e44efad663e0ec828b98ab53f upstream.

RFC 7862 Section 4.1.2 says that if the server supports CLONE it MUST
support clone_blksize attribute.

Fixes: d6ca7d2643ee ("NFSD: Implement FATTR4_CLONE_BLKSIZE attribute")
Cc: stable@vger.kernel.org
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfsd.h

index ab22a4cef621cd85b1859d97488ada91a5ced8f2..5b8e1189f0db1c09d99910673bac19fe40b4f453 100644 (file)
@@ -455,6 +455,7 @@ enum {
 #define NFSD4_2_SUPPORTED_ATTRS_WORD2 \
        (NFSD4_1_SUPPORTED_ATTRS_WORD2 | \
        FATTR4_WORD2_MODE_UMASK | \
+       FATTR4_WORD2_CLONE_BLKSIZE | \
        NFSD4_2_SECURITY_ATTRS | \
        FATTR4_WORD2_XATTR_SUPPORT | \
        FATTR4_WORD2_TIME_DELEG_ACCESS | \