This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 5f5ffce36c619cf5efca04714696e7c67ba409c7
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Oct 19 17:39:28 2026 +0200

    fs/v9fs: Send the ATIME and MTIME bits in Tsetattr.
    
    In Tsetattr, P9_SETATTR_ATIME and P9_SETATTR_MTIME tell the server to
    change the time.  P9_SETATTR_ATIME_SET and P9_SETATTR_MTIME_SET only
    tell it to use the time in the request instead of the current time.
    V9FS sent only the *_SET bits, so the server did not change the times:
    utimens(), futimens() and utimensat() returned 0, but the access and
    modification times stayed as they were.
    
    Send both bits for CH_STAT_ATIME and CH_STAT_MTIME.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 fs/v9fs/client.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/v9fs/client.c b/fs/v9fs/client.c
index bc2d5fbdaa2..21b37ea6238 100644
--- a/fs/v9fs/client.c
+++ b/fs/v9fs/client.c
@@ -482,8 +482,8 @@ static uint32_t v9fs_map_setattr_flags(int flags)
       { CH_STAT_UID,   V9FS_SETATTR_UID },
       { CH_STAT_GID,   V9FS_SETATTR_GID },
       { CH_STAT_SIZE,  V9FS_SETATTR_SIZE },
-      { CH_STAT_ATIME, V9FS_SETATTR_ATIMESET },
-      { CH_STAT_MTIME, V9FS_SETATTR_MTIMESET },
+      { CH_STAT_ATIME, V9FS_SETATTR_ATIME | V9FS_SETATTR_ATIMESET },
+      { CH_STAT_MTIME, V9FS_SETATTR_MTIME | V9FS_SETATTR_MTIMESET },
     };
 
   for (i = 0; i < nitems(flags_map); i++)

Reply via email to