git: Some additions and fixes related to fdatasync(2) and posix_fallocate(2).

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Sep 14 13:14:53 PDT 2021


commit ee5a5918eca0f44cdc7486c325ef082f96aec51b
Author: Sascha Wildner <saw at online.de>
Date:   Tue Sep 14 22:14:14 2021 +0200

    Some additions and fixes related to fdatasync(2) and posix_fallocate(2).
    
    * Fix a small issue in VOP_FDATASYNC()'s definition in <sys/vfsops.h>.
    
    * Mention fdatasync() in fsync.2 (this basically syncs that manual page
      with FreeBSD, with a few adjustments).
    
    * Add a manual page for posix_fallocate() (from FreeBSD, with a few
      adjustments).
    
    * Mention fdatasync() in the list of reentrant functions in sigaction.2.
    
    * In pthread_testcancel.3, mention fdatasync() in the list of functions
      for which a cancellation point will occur.
    
    * Mention VOP_FDATASYNC() in VOP_FSYNC.9 (partly taken from FreeBSD).
    
    * Remove a compatibility define in the fsstress tool.
    
    Thanks to tkusumi for reviewing.

Summary of changes:
 lib/libc/sys/Makefile.inc           |   4 +-
 lib/libc/sys/fsync.2                |  73 ++++++++++++++---
 lib/libc/sys/posix_fallocate.2      | 154 ++++++++++++++++++++++++++++++++++++
 lib/libc/sys/sigaction.2            |   4 +-
 lib/libpthread/pthread_testcancel.3 |   3 +-
 share/man/man9/Makefile             |   1 +
 share/man/man9/VOP_FSYNC.9          |  17 +++-
 sys/sys/vfsops.h                    |   2 +-
 test/stress/fsstress/global.h       |   4 -
 9 files changed, 243 insertions(+), 19 deletions(-)
 create mode 100644 lib/libc/sys/posix_fallocate.2

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ee5a5918eca0f44cdc7486c325ef082f96aec51b


-- 
DragonFly BSD source repository


More information about the Commits mailing list