From: Hungyu Lin <dennylin0707@gmail.com>
To: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org,
Hungyu Lin <dennylin0707@gmail.com>
Subject: [PATCH] fs/ntfs3: advertise nodump in the statx attributes mask
Date: Tue, 3 Nov 2026 01:04:37 +0000 [thread overview]
Message-ID: <20261103010437.55455-1-dennylin0707@gmail.com> (raw)
ntfs_getattr() reports STATX_ATTR_NODUMP when ni->nodump is set, but
omits the bit from attributes_mask. The returned mask therefore tells
statx callers that the flag is unsupported even when attributes contains
it. Callers that check both fields cannot recognize the nodump state.
Include STATX_ATTR_NODUMP in attributes_mask, whether the flag is set or
clear, to describe the state already reported by ntfs_getattr().
Fixes: 33f29fc7c67e ("fs/ntfs3: add fileattr support")
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
---
fs/ntfs3/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c
index 1624f9b014e0..d5c87d608bd9 100644
--- a/fs/ntfs3/file.c
+++ b/fs/ntfs3/file.c
@@ -295,7 +295,7 @@ int ntfs_getattr(const struct mnt_idmap *idmap, const struct path *path,
stat->attributes |= STATX_ATTR_ENCRYPTED;
stat->attributes_mask |= STATX_ATTR_COMPRESSED | STATX_ATTR_ENCRYPTED |
- STATX_ATTR_IMMUTABLE | STATX_ATTR_APPEND;
+ STATX_ATTR_IMMUTABLE | STATX_ATTR_APPEND | STATX_ATTR_NODUMP;
generic_fillattr(idmap, request_mask, inode, stat);
--
2.43.0
reply other threads:[~2026-11-03 1:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261103010437.55455-1-dennylin0707@gmail.com \
--to=dennylin0707@gmail.com \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ntfs3@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®