diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-08-29 23:45:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-08-29 23:45:45 -0400 |
commit | 57eeb5374fc6468846683576c9c81859367bbf8a (patch) | |
tree | 9e6f1a849dc4d1fbf5a93f8b2d83fb8fddd19d1e /stat.c | |
parent | a30b3f503bede87043262343ed26d6995b0a85d9 (diff) |
stat: New BFS_STAT_NOSYNC flag
Diffstat (limited to 'stat.c')
-rw-r--r-- | stat.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -300,6 +300,9 @@ int bfs_stat(int at_fd, const char *at_path, enum bfs_stat_flag flags, struct bf if (flags & BFS_STAT_NOFOLLOW) { at_flags |= AT_SYMLINK_NOFOLLOW; } + if (flags & BFS_STAT_NOSYNC) { + at_flags |= AT_STATX_DONT_SYNC; + } if (at_path) { return bfs_stat_explicit(at_fd, at_path, at_flags, flags, buf); |