summaryrefslogtreecommitdiff
path: root/libdiskfs/rdwr-internal.c
AgeCommit message (Collapse)Author
2023-05-10libdiskfs: Port to x86_64Sergey Bugaev
Message-Id: <20230508213136.608575-9-bugaevc@gmail.com>
2020-09-30libdiskfs: Add relatime supportv0.9.git20200930Ryan Jeffrey
* 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.
2017-08-05Use our own variant of 'assert' and 'assert_perror'.Justus Winter
Our variants print stack traces on failures. This will make locating errors much easier.
2016-04-26libdiskfs: Reject LFS seeks and read/writesSamuel Thibault
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-242000-01-24 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* rdwr-internal.c (_diskfs_rdwr_internal): Short-circuit return for zero-length transfer to avoid side effects, as POSIX requires.
1999-09-201999-09-20 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* 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-13Reverted changes related to io_map_segment.Roland McGrath
1999-09-081999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* 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.
1997-08-20Wed Aug 20 14:03:41 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* 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.
1996-06-24(_diskfs_rdwr_internal): Use diskfs_check_readonly instead of diskfs_readonly.Michael I. Bushnell
1996-01-04(_diskfs_rdwr_internal): Rewritten using pager_memcpy.Roland McGrath
Fix types of args: OFFSET to off_t, make AMT read/write size_t *.
1995-11-21(_diskfs_rdwr_internal): Declare PROT volatile.Michael I. Bushnell
1995-10-19(_diskfs_rdwr_internal):Miles Bader
Pass the second protection arg to diskfs_get_filemap. Only map our i/o region with as much permission as we need.
1995-06-09(_diskfs_rdwr_internal): Cast __VM_PAGE_SIZE in comparisen.Michael I. Bushnell
1995-03-07(_diskfs_rdwr_internal): Use assert_perror instead of assert whereMichael I. Bushnell
appropriate.
1994-07-13entered into RCSMichael I. Bushnell
1994-02-16Formerly rdwr-internal.c.~6~Michael I. Bushnell
1994-02-11Formerly rdwr-internal.c.~5~Michael I. Bushnell
1994-02-10Formerly rdwr-internal.c.~4~Michael I. Bushnell
1994-02-04Formerly rdwr-internal.c.~3~Michael I. Bushnell
1994-02-03Formerly rdwr-internal.c.~2~Michael I. Bushnell
1994-02-03Initial revisionMichael I. Bushnell