| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
| |
* diskfs.h: Instead of `st_?time', talk about `st_?tim'.
* node-times.c: Likewise.
* priv.h: Likewise.
|
|
|
|
|
| |
* node-times.c (diskfs_set_node_times): Adapt to ``struct stat''
changes.
|
|
|
|
| |
* node-times.c (diskfs_set_node_atime): Fix typo from last commit.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* node-times.c (diskfs_set_node_times): Make individual flag checks
race-proof so we don't lose any flag settings.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|