| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
Our variants print stack traces on failures. This will make locating
errors much easier.
|
|
|
|
|
|
|
|
|
|
| |
vm_offset_t (used by pager_memcpy) is not 64bit-ready yet. Reject requests
which go further than this.
* libdiskfs/io-seek.c (diskfs_S_io_seek): Return EFBIG when requested offset
is beyond limits of vm_offset_t.
* libdiskfs/rdwr-internal.c (_diskfs_rdwr_internal): Return EFBIG when
request goes beyond limits of vm_offset_t.
|
|
|
|
|
| |
* rdwr-internal.c (_diskfs_rdwr_internal): Short-circuit return for
zero-length transfer to avoid side effects, as POSIX requires.
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
| |
* io-map-segment.c: New file. Guts from io-map.c.
* io-map.c (diskfs_S_io_map): Just call diskfs_S_io_map_segment.
* diskfs.h (diskfs_get_filemap): New parameter `index'.
* rdwr-internal.c (_diskfs_rdwr_internal): Pass additional
parameter to diskfs_get_filemap.
* Makefile (IOSRCS): Add io-map-segment.c.
|
|
|
|
|
|
|
|
| |
* diskfs.h: Doc fix.
* io-map.c (diskfs_S_io_map): Cope with error return from
diskfs_get_filemap.
* rdwr-internal.c (_diskfs_rdwr_internal): Likewise.
|
| |
|
|
|
|
| |
Fix types of args: OFFSET to off_t, make AMT read/write size_t *.
|
| |
|
|
|
|
|
| |
Pass the second protection arg to diskfs_get_filemap.
Only map our i/o region with as much permission as we need.
|
| |
|
|
|
|
| |
appropriate.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|