diff options
Diffstat (limited to 'libdiskfs/node-times.c')
-rw-r--r-- | libdiskfs/node-times.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libdiskfs/node-times.c b/libdiskfs/node-times.c index fa3a20a7..c36b0be6 100644 --- a/libdiskfs/node-times.c +++ b/libdiskfs/node-times.c @@ -22,6 +22,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" #include <maptime.h> +/* If disk is not readonly and the noatime option is not enabled, set + NP->dn_set_atime. */ +void +diskfs_set_node_atime (struct node *np) +{ + if (!_disk_noatime && !diskfs_check_readonly ()) + np->dn_set_atime = 1; +} + /* If NP->dn_set_ctime is set, then modify NP->dn_stat.st_ctime appropriately; do the analogous operation for atime and mtime as well. */ void |