aboutsummaryrefslogtreecommitdiffstats
path: root/include/libzfs.h
diff options
context:
space:
mode:
authorKyle Evans <[email protected]>2020-01-14 10:49:54 -0600
committerBrian Behlendorf <[email protected]>2020-01-14 08:49:54 -0800
commit68a192e4b7627f8f00d412ba68c291fcc90d3de9 (patch)
tree054fb7431ef982e15d01c53c9ab1a73afe54e590 /include/libzfs.h
parente458fcca7516a0ceac7aaecc4aacfef1114eb216 (diff)
libzfs: add zfs_mount_at() function
zfs_mount_at() mounts a dataset at an arbitrary mountpoint rather than at the configured mountpoint. This may be used by consumers that wish to temporarily expose a dataset at another mountpoint without altering dataset/pool properties. This will be used by FreeBSD's libbe be_mount(), which mounts a boot environment at an arbitrary mountpoint. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Kyle Evans <[email protected]> Closes #9833
Diffstat (limited to 'include/libzfs.h')
-rw-r--r--include/libzfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h
index 8069d4cd4..05abfdf89 100644
--- a/include/libzfs.h
+++ b/include/libzfs.h
@@ -788,6 +788,7 @@ extern boolean_t zfs_bookmark_exists(const char *path);
extern boolean_t is_mounted(libzfs_handle_t *, const char *special, char **);
extern boolean_t zfs_is_mounted(zfs_handle_t *, char **);
extern int zfs_mount(zfs_handle_t *, const char *, int);
+extern int zfs_mount_at(zfs_handle_t *, const char *, int, const char *);
extern int zfs_unmount(zfs_handle_t *, const char *, int);
extern int zfs_unmountall(zfs_handle_t *, int);