aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/node-times.c
Commit message (Collapse)AuthorAgeFilesLines
* libdiskfs: Make relatime also update atime when equal to mtime/ctimeSamuel Thibault2020-10-031-2/+2
| | | | | | | Some tests (such as glibc's tst-atime) require it for instance. * libdiskfs/node-times.c (atime_should_update): Also return 1 when atime is equal to mtime or ctime.
* libdiskfs: Add relatime supportRyan Jeffrey2020-09-301-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | * doc/hurd.texi (diskfs_set_node_atime): Document relatime behavior. * libdiskfs/diskfs.h (diskfs_set_node_atime): Likewise. * libdiskfs/init-init.c (_diskfs_relatime): Add variable. * libdiskfs/file-statfs.c (ST_RELATIME): Define if not defined already. (diskfs_S_file_statfs): Report ST_RELATIME when _diskfs_relatime is set. * libdiskfs/node-times.c (atime_should_update): New function. (diskfs_set_node_atime): Document relatime behavior. Call atime_should_update instead of reading _diskfs_noatime. * libdiskfs/opts-common.c (diskfs_common_options): Add --strictatime and -R/--relatime options. * libdiskfs/opts-std-runtime.c (struct parse_hook): Add relatime field. (set_opts): Set _diskfs_relatime from relatime field. (parse_opt): Parse -R option. * libdiskfs/opts-std-startup.c (parse_startup_opt): Parse -R option. * libdiskfs/priv.h (_diskfs_relatime): Declare variable. (atime_should_update): Declare function. * libdiskfs/opts-append-std.c (diskfs_append_std_options): Add reporting --relatime option. * libdiskfs/conch-fetch.c (iohelp_fetch_shared_data): Call atime_should_update instead of reading _diskfs_noatime. * libdiskfs/rdwr-internal.c (_diskfs_rdwr_internal): Likewise.
* Fix space styleSamuel Thibault2015-03-051-12/+12
|
* 2009-02-16 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2009-02-161-3/+4
| | | | | | * diskfs.h: Instead of `st_?time', talk about `st_?tim'. * node-times.c: Likewise. * priv.h: Likewise.
* 2007-11-13 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2007-11-131-21/+6
| | | | | * node-times.c (diskfs_set_node_times): Adapt to ``struct stat'' changes.
* 2007-10-05 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2007-10-051-1/+1
| | | | * node-times.c (diskfs_set_node_atime): Fix typo from last commit.
* Update copyright years.Thomas Schwinge2007-10-051-1/+2
|
* [doc/ChangeLog]Samuel Thibault2007-08-201-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * hurd.texi: Document diskfs_set_node_atime. [ext2fs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. [fatfs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. [libdiskfs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * diskfs.h (diskfs_set_node_atime): New declaration. * node-times.c (diskfs_set_node_atime): New function. [ufs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. * inode.c (read_symlink_hook): Likewise.
* 2000-12-02 Roland McGrath <roland@frob.com>Roland McGrath2000-12-031-6/+13
| | | | | * node-times.c (diskfs_set_node_times): Make individual flag checks race-proof so we don't lose any flag settings.
* 1999-09-20 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-201-5/+0
| | | | | | | | * node-times.c (diskfs_set_node_times): Don't implement _diskfs_noatime here. * conch-fetch.c (iohelp_fetch_shared_data): Don't update dn_set_atime on affected node if _diskfs_noatime. * rdwr-internal.c (_diskfs_rdwr_internal): Likewise.
* 1999-09-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-09-191-7/+15
| | | | | | | | | | | | | | | | | | | | | | | * node-times.c (diskfs_set_node_times): If _diskfs_noatime is set and neither NP->dn_set_mtime nor NP->dn_set_ctime is set, clear NP->dn_set_atime. Short-circuit return if none of dn_set_?time set. * opts-common.c (diskfs_common_options): Include "priv.h". Add aliases --ro/--rw for -r/-w. Add alias --nosuid for --no-suid, --noexec for --no-exec. Move --suid-ok, --exec-ok here from ... * opts-std-runtime.c (std_runtime_options): ... here. (struct parse_hook): New member `noatime'. (set_opts): Use H->noatime to set _diskfs_noatime. (parse_opt): Grok -A and OPT_ATIME to set/clear H->noatime. (OPT_ATIME): New macro. (OPT_SUID_OK, OPT_EXEC_OK): Moved to ... * priv.h: ... here. (diskfs_common_options): Add const to decl. * opts-std-startup.c (parse_startup_opt): Grok OPT_SUID_OK, OPT_EXEC_OK, -A, and OPT_ATIME. * init-init.c (_diskfs_noatime): New variable. (_diskfs_nosuid, _diskfs_noexec): Use uninitialized defns. * opts-append-std.c (diskfs_append_std_options): Add --no-atime if _diskfs_noatime is set.
* (diskfs_set_node_times): Use maptime_read.Miles Bader1996-02-201-22/+18
|
* entered into RCSMichael I. Bushnell1994-07-181-0/+15
|
* Formerly node-times.c.~5~Michael I. Bushnell1994-07-141-6/+6
|
* Formerly node-times.c.~4~Michael I. Bushnell1994-02-111-1/+3
|
* Formerly node-times.c.~3~Michael I. Bushnell1994-02-081-3/+3
|
* Formerly node-times.c.~2~Michael I. Bushnell1994-02-051-7/+25
|
* Initial revisionMichael I. Bushnell1994-02-041-0/+37