aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-12-07 15:17:29 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-12-07 15:17:29 +0000
commitd1fd400a8048db0a958b0f441ae542fb5e9e16e7 (patch)
tree1a5af3dd642ba46c0e6de52d6d890c2cd80f1cfc /sys/sys/mount.h
parentb1fbffe73cd7dca2c79e31bfc48a242b41d1020b (diff)
downloadsrc-d1fd400a8048db0a958b0f441ae542fb5e9e16e7.tar.gz
src-d1fd400a8048db0a958b0f441ae542fb5e9e16e7.zip
Add new file handle system calls.
Namely, getfhat(2), fhlink(2), fhlinkat(2), fhreadlink(2). The syscalls are provided for a NFS userspace server (nfs-ganesha). Submitted by: Jack Halford <jack@gandi.net> Sponsored by: Gandi.net Tested by: pho Feedback from: brooks, markj MFC after: 1 week Differential revision: https://reviews.freebsd.org/D18359
Notes
Notes: svn path=/head/; revision=341689
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index ac1c215b9a83..2a5d4cff2a8b 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -932,11 +932,15 @@ void syncer_resume(void);
struct stat;
__BEGIN_DECLS
+int fhlink(struct fhandle *, const char *);
+int fhlinkat(struct fhandle *, int, const char *);
int fhopen(const struct fhandle *, int);
+int fhreadlink(struct fhandle *, char *, size_t);
int fhstat(const struct fhandle *, struct stat *);
int fhstatfs(const struct fhandle *, struct statfs *);
int fstatfs(int, struct statfs *);
int getfh(const char *, fhandle_t *);
+int getfhat(int, char *, struct fhandle *, int);
int getfsstat(struct statfs *, long, int);
int getmntinfo(struct statfs **, int);
int lgetfh(const char *, fhandle_t *);