Skip to content

Commit

Permalink
[LibOS] Don't skip time attributes in struct stat on file status query
Browse files Browse the repository at this point in the history
Signed-off-by: Sonali Saha <sonali.saha@intel.com>
  • Loading branch information
sahason authored and dimakuv committed Sep 7, 2023
1 parent 94123cb commit b9aea0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libos/src/fs/libos_fs_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ static int generic_istat(struct libos_inode* inode, struct stat* buf) {
buf->st_size = inode->size;
buf->st_uid = inode->uid;
buf->st_gid = inode->gid;
buf->st_atime = inode->atime;
buf->st_mtime = inode->mtime;
buf->st_ctime = inode->ctime;

/* Some programs (e.g. some tests from LTP) require this value. We've picked some random,
* pretty looking constant - exact value should not affect anything (perhaps except
Expand Down

0 comments on commit b9aea0a

Please sign in to comment.