Matthew Dillon
2018-11-21 20:39:35 UTC
commit 688919654f8ccf8bf83a4222fbf2dc99062c6eb0
Author: Matthew Dillon <***@apollo.backplane.com>
Date: Wed Nov 21 12:37:08 2018 -0800
kernel - Add uid, gid, and inum to stat data for pipes
* fstat(pipefd) now populations additional fields. uid, gid,
and inum. In-line with other BSDs and Linux. Not sure why
any program would use the inum field but... now its populated.
* Add an anonymous inode allocator to the pcpu structure. No
atomic ops required. Basically just does:
pipe->inum = gd->gd_anoninum++ * ncpus + gd->gd_cpuid + 2;
* Facility can be used for other things as needed.
Suggested-by: mjg
Summary of changes:
sys/kern/sys_pipe.c | 6 +++++-
sys/sys/globaldata.h | 2 +-
sys/sys/pipe.h | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/688919654f8ccf8bf83a4222fbf2dc99062c6eb0
Author: Matthew Dillon <***@apollo.backplane.com>
Date: Wed Nov 21 12:37:08 2018 -0800
kernel - Add uid, gid, and inum to stat data for pipes
* fstat(pipefd) now populations additional fields. uid, gid,
and inum. In-line with other BSDs and Linux. Not sure why
any program would use the inum field but... now its populated.
* Add an anonymous inode allocator to the pcpu structure. No
atomic ops required. Basically just does:
pipe->inum = gd->gd_anoninum++ * ncpus + gd->gd_cpuid + 2;
* Facility can be used for other things as needed.
Suggested-by: mjg
Summary of changes:
sys/kern/sys_pipe.c | 6 +++++-
sys/sys/globaldata.h | 2 +-
sys/sys/pipe.h | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/688919654f8ccf8bf83a4222fbf2dc99062c6eb0
--
DragonFly BSD source repository
DragonFly BSD source repository