]> 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:35:59 +0000 (10:35 +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 ae435444e8b3b193597d05cac4828aba6e3cf6d2..df5f633cc14b29c0ca75d8098ec925bf07fefc57 100644 (file)
@@ -458,6 +458,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)