aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/rdwr-internal.c
Commit message (Collapse)AuthorAgeFilesLines
* libdiskfs: Add relatime supportRyan Jeffrey2020-09-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Use our own variant of 'assert' and 'assert_perror'.Justus Winter2017-08-051-1/+1
| | | | | Our variants print stack traces on failures. This will make locating errors much easier.
* libdiskfs: Reject LFS seeks and read/writesSamuel Thibault2016-04-261-1/+6
| | | | | | | | | | 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.
* 2000-01-24 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-01-241-1/+5
| | | | | * rdwr-internal.c (_diskfs_rdwr_internal): Short-circuit return for zero-length transfer to avoid side effects, as POSIX requires.
* 1999-09-20 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-201-3/+3
| | | | | | | | * 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.
* Reverted changes related to io_map_segment.Roland McGrath1999-09-131-2/+2
|
* 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-081-2/+2
| | | | | | | | | * 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.
* Wed Aug 20 14:03:41 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-08-201-1/+4
| | | | | | | | * 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.
* (_diskfs_rdwr_internal): Use diskfs_check_readonly instead of diskfs_readonly.Michael I. Bushnell1996-06-241-2/+2
|
* (_diskfs_rdwr_internal): Rewritten using pager_memcpy.Roland McGrath1996-01-041-49/+11
| | | | Fix types of args: OFFSET to off_t, make AMT read/write size_t *.
* (_diskfs_rdwr_internal): Declare PROT volatile.Michael I. Bushnell1995-11-211-1/+2
|
* (_diskfs_rdwr_internal):Miles Bader1995-10-191-4/+5
| | | | | Pass the second protection arg to diskfs_get_filemap. Only map our i/o region with as much permission as we need.
* (_diskfs_rdwr_internal): Cast __VM_PAGE_SIZE in comparisen.Michael I. Bushnell1995-06-091-1/+1
|
* (_diskfs_rdwr_internal): Use assert_perror instead of assert whereMichael I. Bushnell1995-03-071-2/+2
| | | | appropriate.
* entered into RCSMichael I. Bushnell1994-07-131-4/+5
|
* Formerly rdwr-internal.c.~6~Michael I. Bushnell1994-02-161-0/+8
|
* Formerly rdwr-internal.c.~5~Michael I. Bushnell1994-02-111-2/+0
|
* Formerly rdwr-internal.c.~4~Michael I. Bushnell1994-02-101-9/+9
|
* Formerly rdwr-internal.c.~3~Michael I. Bushnell1994-02-041-2/+3
|
* Formerly rdwr-internal.c.~2~Michael I. Bushnell1994-02-031-20/+12
|
* Initial revisionMichael I. Bushnell1994-02-031-0/+103