--- IO-AIO/Changes 2013/09/07 23:18:23 1.313 +++ IO-AIO/Changes 2022/09/26 10:30:54 1.409 @@ -2,16 +2,11 @@ TODO: scandir - some dirs mostly contain subdirs - invert logic? TODO: aio_cptree/mvtree -TODO: reduce condvar fairness: schedule hot-cache-threads first? TODO: vmsplice? (http://kerneltrap.org/node/6505 http://lwn.net/Articles/178199/) -TODO: aio_fcntl, at least for file-locking -TODO: aio_mincore? -TODO: getxattr etc.? -TODO: F_DUPFD_CLOEXEC +TODO: getxattr, setxattr, listxattr, removexattr etc.? TODO: emulation for splice? -TODO: eio_mmap|mlock|munmap|splice... TODO: syncfs/sync windows: -TODO: F_SETPIPE_SZ, F_GETPIPE_SZ +TODO: posix_fallocate when flags=0 http://stackoverflow.com/questions/65170/how-to-get-name-associated-with-open-handle/5286888#5286888 http://blogs.msdn.com/b/adioltean/archive/2005/04/16/408947.aspx http://msdn.microsoft.com/en-us/library/aa366789%28v=vs.85%29.aspx @@ -20,12 +15,223 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/aa364963%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/aa364996%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/aa364994%28v=vs.85%29.aspx - TODO: extra socket/tcp constants &c? -TODO: take permission denied into account in treescan +TODO: name_to_handle_At + open_by_handle_at = clone fds +TODO: lchown +TODO: ioprio_get/set + +TODO: rewrite rmtree et al. to support working directories (also speed them up) +TODO: maybe IO::AIO leaks fds when requests are cancelled? maybe initialise result to -1? +TODO: aio_wd should use O_PATH on linux, due to lacking O_SEARCH (http://comments.gmane.org/gmane.linux.file-systems/33611) + http://www.openwall.com/lists/musl/2013/02/23/4 +TODO: FIDEDUPERANGE, file_ioctl.c +TODO: mincore +TODO: SOCK_CLOEXEc etc. +TODO: unlinkat flags, linkat flags, statat, renameat2 flags +TODO: https://kernelnewbies.org/Linux_4.11 +TODO: define useful rules for [[$wd, $path], $path] &c and implement them +TODO: https://github.com/coreutils/coreutils/blob/master/src/stat.c maybe IO::AIO::FSID +TODO: mlock2, MLOCK_ONFAULT +TODO: dup3, pipe2, accept4 +TODO: dump config.log when automated testign and configure fails +TODO: ns time resolution in utime +TODO: statx +TODO: aio_fchdir/chdir? emulate chdirat? +TODO: rt-4.0.18-20109-1573826674-1229.126277-5-0@rt.cpan.org +TODO: aio_splice, aio_tee +TODO: copy_file_range +TODO: write more abpout the thread model, maybe bump some defaults? +TODO: io_uring, but it's so broken :/ +TODO: allow import of fds as aio_wd +TODO: close_range +TODO: move_mount, open_tree, fsmount, fspick, fsconfig, fsopen https://lwn.net/Articles/759499/ + + - another workaround for the low-quality musl libc. + - test for umount seperately, as it is more portable. + +4.79 Sun 25 Sep 2022 18:25:53 CEST + - the autoconf result of the mount check was not used, so it failed to + compile on most systems (reported by crackoff@tutanota.com). + - work around fedora not having a working C compiler setup by design + (reported by Paul Howarth). + +4.78 Tue 06 Sep 2022 12:54:43 CEST + - add IO::AIO::mount and IO::AIO::umount. + - add a bunch of symbols from sys/mount.h. + +4.77 Mon 05 Sep 2022 02:03:38 CEST + - add MFD_HUGETLB_2MB and MFD_HUGETLB_1GB constants. + - add fexecve. + - add lots of missing functions to @EXPORT_OK. + +4.76 Tue Jul 27 20:45:01 CEST 2021 + - add autoconf test for siginfo_t, which is, of course, not + available on windows (reported by Peter Petky). + - disable syscalls on solaris, as perl seems to provide an + incompatible syscall prototype that clashes with sys/syscall.h. + - add MAP_FIXED_NOREPLACE, MAP_SHARED_VALIDATE, MAP_SYNC and + MAP_UNINITIALIZED. + +4.75 Wed Dec 30 08:44:55 CET 2020 + - removed leftover debug output from treescan. + - added (but not documented) waitid-P_*, FSPICK_*, FSOPEN_*, + FSCONFIG_*, MOUNT_ATTR_* constants. + +4.74 Tue Dec 29 16:19:28 CET 2020 + - added pidfd_open, pidfd_getfd and pidfd_send_signal functions. + - rework bin/treescan to avoid recursion. This fixes two bugs + where a deep directory traversal or a lot of command line + arguments could cause it to crash. + - added (but not documented) open_tree, AT_* and move_mount flags. + - support defining syscall numbers in gendef0. + +4.73 Fri Dec 4 02:08:37 CET 2020 + - def0.h was not uptodate, running into musl problems + (reported by B Fraser). + - IO::AIO::splice and IO::AIO::tee didn't properly return + 64 bit values. + - added IO::AIO::accept4. + - add various F_SEAL related fcntl constants. + - removed experimental marker for fdlimit functions. + - fiemap now includes the last segment even if it overflows + the end offset, which is arguably the correct behaviour. + +4.72 Wed Apr 3 04:56:03 CEST 2019 + - (libeio) if fd 0 is available do not use it for aio_wd, as it + collides with IO::AIO::CWD. + - added IO::AIO::memfd_create. + - correctly include in the vmsplice test. + - reduce codesize by ~7% on amd64 by declaring more functions + as noinline. + - documentation fixes and updates. + - experimental and undocumented preliminary support for synchronous statx. + +4.71 Sun Mar 10 13:09:26 CET 2019 + - due to an error in the linux manpages, the configure tests + for readahead, sync_file_range, splice etc. failed. This has been fixed. + +4.7 Mon Mar 4 11:28:13 CET 2019 + - majorly speed up scandir for the very special case of a non-POSIX + filesystem that nevertheless reports valid dt_type information. + The only known filesystem of this type is currently btrfs, which + didn't get it's act together to implement POSIX semantics in all + these years, and I am tired of waiting. + - add IO::AIO::MCL_ONFAULT for mlockall, add IO::AIO::mlockall. + - neither sys/mkdev.h nor sys/sysmacros.h were included, even when they + were detected by autoconf. + +4.6 Sat Aug 25 21:58:36 CEST 2018 + - add st_btime, st_btimesec, st_btimensec and st_gen accessors, + mostly for bsds which expose birthtime and st_gen members (netbsd, freebsd + but only st_gen on openbsd because they compiled their perl without support + for birthtimes). + - fix madvise and munlock to properly support negative offsets. + - allocate fd for the aio_close at boot time, to guarantee it working + later, rather than calling abort when it fails. also avoids + close-on-exec race issues after module load. + - #undef utime on win32, maybe this helps some reports of utime hangs. + - minor doc improvements. + - minor configure cleanups. + - use $Config{perllibs} instead of libs for configure. might help people + who didn't install all perl dependencies (might break things as well). + +4.54 Tue Aug 14 13:54:48 CEST 2018 + - include sys/mkdev.h or sys/sysmacros.h if available. + - further tweaks to configure invocation for systems requiring --rpath. + - no longer rely on custom paths on win32 platforms. + - try to work around buggy PAGESIZE macro on solaris. + +4.53 Tue Aug 14 11:27:50 CEST 2018 + - add $Config{libs} to LIBS for configure, to work around systems + with broken library dependencies (... openbsd). + +4.52 Sun Aug 12 08:09:45 CEST 2018 + - config.h.in was missing in distribution. + +4.51 Sun Aug 12 07:24:14 CEST 2018 + - complete rework of the autoconf framework: IO::AIO now uses its own + config.h, separate from libeio, and tries to test the actual perl + environment, not the standard system environment. + - provide nanosecond-accracy stat time accessors for both perl and IO::AIO + stat functions. + - removed non-portable C++ syntax from eio.c. + - try to fix readdir tests on cygwin spuriously failing. + +4.5 Wed Aug 1 00:23:55 CEST 2018 + - aio_mtouch touch all pages as requested, not just the first page in most cases. + - new function: IO::AIO::mremap, linux-specific mremap, with constants MREMAP_MAYMOVE + and MREMAP_FIXED. + - add O_ACCMODE. + - add (undocumented) MSG_CMSG_CLOEXEC and SOCK_CLOEXEC constants. + +4.4 Tue Feb 20 07:54:12 CET 2018 + - new aio_slurp request. + - add (experimental) IO::AIO::eventfd and timerfd* function. + - add (experimental) IO::AIO::get_fdlimit and IO::AIO::min_fdlimit. + - point out that aio_copy overwrites existing files. + - removed filesystem magic number table from aio_statvfs docs as + statvfs doesn't actually return this info at all (statfs does). + - add a bunch of (mostly linux-specific) constants for use in ioctls + (see aio_ioctl docs). + - treescan now has a proper manpage and useful --help output. + - new option --sync in treescan, to sync everything in a subtree. + - changed default for aio_msync flags to MSYNC_SYNC. + - document offset/length behaviour of mprotect/madvise. + - support linux's renameat2 (via aio_rename2). + - add aio_rename2, an aio_rename with flags. + - add F_DUPPFD_CLOEXEC, F_OFD_[SG]ETLKW? constants. + - add FALLOC_FL_INSERT_RANGE, FALLOC_FL_UNSHARE_RANGE. + - (libeio) use posix_close if available. + - (libeio) internal close() calls no longer disturb errno. + - add IO:AIO::FALLOC_FL_UNSHARE. + - update schmorp.h for removal of USE_SOCKETS_AS_HANDLES + and better eventfd detection. + +4.34 Sun May 1 19:18:24 CEST 2016 + - def0.h was not properly generated during previous release, causing + compile errors on various platforms. + - major/minor were accidentally switched (reported by Alexander Lishenyuk). + - removed duplicate definition of MAP_HUGETLB, that was found due to + a bug in Perl::Tidy (testcase by alaska332@gmail.com). + - added (untested!) aio_fcntl, aio_ioctl requests. + - (libeio) names set via prctl are truncated to 15 chars + nul, not 16, + as manpages-dev originally claimed. + +4.33 Mon Jan 18 12:50:10 CET 2016 + - add IO::AIO::pipe2 function. + - added support for FALLOC_FL_COLLAPSE_RANGE and FALLOC_FL_ZERO_RANGE + constants. + - added support for O_TMPFILE and O_PATH constants. + - added support for MAP_FIXED, MAP_GROWSDOWN,MAP_32BIT, MAP_HUGETLB, MAP_STACK + consdtants, whether they can be sensibly used or not. + - use NO_INIT where applicable. + - update libecb. + - added stability canary support. + - updated linux super magic table to 4.3.3. + +4.32 Wed Feb 11 20:32:11 CET 2015 + - replace off_t by STRLEN where appropriate, should not result in + user-visible changes. + - update ecb.h for C11 compatibility. + +4.31 Tue Jun 3 03:29:27 CEST 2014 + - work around more 5.20 bugs. backwards compatibility my ass. + +4.3 Fri Apr 11 06:22:38 CEST 2014 + - perl5porters broke Async::Interrupt, BDB, EV, IO::AIO, OpenCL + without warning by switching the meaning of USE_SOCKETS_AS_HANDLES + in 5.18. What's so attractive about giving a shit about backwards + compatibility - I will never understand. + +4.2 Sat Jan 25 01:13:14 CET 2014 + - aio_group could corrupt memory because it didn't restore + the stack after req_submit. + - be more careful on (e.g. permission) errors in bin/treescan. + - work around changes in ExtUtils::MakeMaker. - (libeio) implement aio_realpath for win32. - (xthread) work around compile time bugs in ptw32. - added IO::AIO::pipesize. + - (libecb) insignificant update. 4.19 Sun Jan 6 12:47:26 CET 2013 - avoid endless loop in fiemap with some XFS files.