--- IO-AIO/Changes 2011/07/18 02:59:58 1.270 +++ IO-AIO/Changes 2018/02/17 15:31:33 1.349 @@ -1,20 +1,178 @@ Revision history for IO::AIO -TODO: better autoconf.pm that can return LIBS etc. +TODO: scandir - some dirs mostly contain subdirs - invert logic? TODO: aio_cptree/mvtree -TODO: reduce condvar fairness: schedule hot-cache-threads first? -TODO: splice/tee/vmsplice? (http://kerneltrap.org/node/6505 http://lwn.net/Articles/178199/) -TODO: aio_fcntl, at least for file-locking -TODO: fallocate, if it wouldn't be so useless. -TODO: aio_mincore? -TODO: getxattr etc.? -TODO: MS_xxx, posix_fadvise, posix_madvise -TODO: realpath +TODO: vmsplice? (http://kerneltrap.org/node/6505 http://lwn.net/Articles/178199/) +TODO: getxattr, setxattr, listxattr, removexattr etc.? +TODO: emulation for splice? +TODO: syncfs/sync windows: +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 +http://msdn.microsoft.com/en-us/library/windows/desktop/aa366789%28v=vs.85%29.aspx +http://msdn.microsoft.com/en-us/library/windows/desktop/aa364425%28v=vs.85%29.aspx +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: http://lwn.net/Articles/593918/ SHMEM_SET_SEALS, SHMEM_GET_SEALS, SEAL_SHRINK, SEAL_GROW, SEAL_WRITE, int memfd_create(const char *name, u64 size, u64 flags);, MFD_CLOEXEC, int fd = open("/tmp", O_RDWR | O_TMPFILE | O_EXCL, S_IRWXU); +TODO: name_to_handle_At + open_by_handle_at = clone fds +TODO: lchown +TODO: mount/umount2/MS_* flags -4.0 +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: copy_file_range, copy_file_range +TODO: FIDEDUPERANGE, file_ioctl.c +TODO: mincore +TODO: SOCK_CLOEXEc etc. +TODO: unlinkat flags, linkat flags, statat flags +TODO: https://kernelnewbies.org/Linux_4.11 +TODO: define useful rules for [[$wd, $path], $path] &c and implement them + + - new aio_slurp request. + - 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. + - add (experimental) IO::AIO::get_fdlimit and IO::AIO::min_fdlimit. + - point out that aio_copy overwrites existing files. + - (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. + +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. + - in aio_rename and aio_rmdir, specialcase the case of [$wd, "."] + and call rename/rmdir instead of renameat/unlinkat. + +4.18 Thu Oct 11 07:01:26 CEST 2012 + - fix unintended xthread_create by intentionalising it :) + +4.17 Thu Oct 11 05:19:47 CEST 2012 + - rename aio_fallocate to aio_allocate, to match documentation. + - add list of linux fsid values to aio_statvfs docs. + - work around a bug in btrfs' FIEMAP ioctl implementation. + - work around AIX bug: statvfs.f_fsid is a struct, not unsigned long + as per unix spec. + +4.16 Tue Aug 14 05:39:03 CEST 2012 + - aio_statvfs was wromgly marked for wd emulation, causing + it to malfunction for paths. + - fix a crash in aio_fiemap, when used on ranges without any + extents. + - work around linux kernel bug (at least in 3.2): kernel might + trash fiemap input arguments. + - work around linux kernel bug (at least in 3.2): kernel does not + set FIEMAP_EXTENT_LAST on last segment. + - work around linux kernel bug (at least in 3.2): kernel silently + truncates segment count if a file. + - make fh argument of IO::AIO::mmap optional, also add mmap/munmap + to quick overview. + - splice can corrupt data. + - (libeio) remove pread/pwrite emulation. + - do not grow mmaped scalars in aio_read. + - add FALLOC_FL_PUNCH_HOLE and document fallocate. + - provide pread/pwrite for win32, making it link again on native win32. + +4.15 Tue Apr 10 06:59:00 CEST 2012 + - always include linux/types.h for fiemap, for compatibility to + ancient systems (Paul Howarth). + - experimental support for IO::AIO::splice and ::tee (no aio_...). + - provide SEEK_HOLE and SEEK_DATA, if available. + - work around (again!) an immensely stupid bug in RHEL, defining + autoconf macros in linux system headers (analysed by Paul Howarth). + +4.14 Sat Apr 7 02:45:18 CEST 2012 + - fix stat structure usage on windows, which caused bogus stat results. + - (libeio) make readahead emulation behave more like actual readahead by never failing. + - new request aio_seek. + - new request aio_fiemap. + - autogenerate the #ifdef/#define 0 blocks for symbols we export. + +4.12 Fri Dec 30 08:51:25 CET 2011 + - realpath would return a random value if the name was too long, + instead of -1. + - port to c89. + +4.11 Mon Oct 10 00:24:11 CEST 2011 + - libeio didn't compile on !linux (Paul Howarth). + +4.1 Sun Oct 9 10:24:11 CEST 2011 + - IO::AIO did access uninitialised memory on unsuccessful stats. + - (libeio) added syncfs syscall wrapper. + - (libeio) set thread name on linux (ps -L/Hcx, top, gdb). + - (libeio) support multiple indepenent working directories. + - applied speling corrections by Nicholas Bamber. + - tune treescan #threads and #outstanding requests a bit. + - reduce the number of file descriptors in use at any one time + in treescan, to avoid running out of them (and using too much ram). + - take advantage of working directoriy abstractions + in aio_scandir and treescan. + - reduce compiled size by ~10% by not inlining some key functionality. + - added --progress switch to treescan. + +4.0 Mon Jul 18 05:01:10 CEST 2011 - INCOMPATIBLE CHANGE: fork is no longer supported (indeed, it never was), see FORK BEHAVIOUR in manpage for details. - - passes testsuite on win32 now (activetstate 5.10.1, YMMV). + - passes testsuite on win32 now and may actually work + (activestate 5.10.1 / MSVC6, YMMV). - (libeio) fix a deadlock where a wakeup signal could be missed when a timeout occured at the same time. - (libeio) added realpath.