git: sys/kern: Add posix_fallocate(2)

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Sep 8 09:30:19 PDT 2021


commit 09d96b9c7c1b6575f2ca53ae7c03876bdfa2413b
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Wed Sep 8 23:09:44 2021 +0900

    sys/kern: Add posix_fallocate(2)
    
    Based on the initial posix_fallocate(2) implementation in FreeBSD
    from d91f88f7f38078ac6dd4b0f0e77470d605d1518e in 2011.
    
    There is nothing special or efficient about the default behavior.
    VFS has no knowledge of fs details.

Summary of changes:
 lib/libc/sys/Symbol.map  |   3 ++
 sys/kern/init_sysent.c   |   1 +
 sys/kern/syscalls.c      |   1 +
 sys/kern/syscalls.master |   1 +
 sys/kern/vfs_default.c   | 113 +++++++++++++++++++++++++++++++++++++++++++++++
 sys/kern/vfs_syscalls.c  |  55 +++++++++++++++++++++++
 sys/kern/vfs_vopops.c    |  33 ++++++++++++++
 sys/sys/fcntl.h          |   2 -
 sys/sys/kern_syscall.h   |   1 +
 sys/sys/param.h          |   3 +-
 sys/sys/syscall.h        |   3 +-
 sys/sys/syscall.mk       |   3 +-
 sys/sys/sysproto.h       |   6 +++
 sys/sys/sysunion.h       |   1 +
 sys/sys/vfsops.h         |  17 +++++++
 sys/sys/vnode.h          |   1 +
 16 files changed, 239 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/09d96b9c7c1b6575f2ca53ae7c03876bdfa2413b


-- 
DragonFly BSD source repository



More information about the Commits mailing list