Skip to content

Commit cded49b

Browse files
jtlaytonTrond Myklebust
authored andcommitted
nfs: don't report STATX_BTIME in ->getattr
NFS doesn't properly support reporting the btime in getattr (yet), but 61a968b mistakenly added it to the request_mask. This causes statx for STATX_BTIME to report a zeroed out btime instead of properly clearing the flag. Cc: [email protected] # v6.3+ Fixes: 61a968b ("nfs: report the inode version in getattr if requested") Signed-off-by: Jeff Layton <[email protected]> Link: https://bugzilla.redhat.com/show_bug.cgi?id=2214134 Reported-by: Boyang Xue <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent c907e72 commit cded49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ int nfs_getattr(struct mnt_idmap *idmap, const struct path *path,
845845

846846
request_mask &= STATX_TYPE | STATX_MODE | STATX_NLINK | STATX_UID |
847847
STATX_GID | STATX_ATIME | STATX_MTIME | STATX_CTIME |
848-
STATX_INO | STATX_SIZE | STATX_BLOCKS | STATX_BTIME |
848+
STATX_INO | STATX_SIZE | STATX_BLOCKS |
849849
STATX_CHANGE_COOKIE;
850850

851851
if ((query_flags & AT_STATX_DONT_SYNC) && !force_sync) {

0 commit comments

Comments
 (0)