summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWill Andrews <[email protected]>2013-06-11 09:13:43 -0800
committerBrian Behlendorf <[email protected]>2013-11-04 10:55:25 -0800
commitd09f25dc66774959499a89bf3680d09c6e541ce8 (patch)
tree572924cf4a1727f24854aa0b5ba8d9f9e60ded45 /include
parent3a84951d7dfb5357509a1ed1699f80b71f87982a (diff)
Illumos #3744
3744 zfs shouldn't ignore errors unmounting snapshots Reviewed by: Matthew Ahrens <[email protected]> Approved by: Christopher Siden <[email protected]> References: https://www.illumos.org/issues/3744 illumos/illumos-gate@fc7a6e3fefc649cb65c8e2a35d194781445008b0 Ported-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #1775 Porting notes: 1. There is no clear way to distinguish between a failure when we tried to unmount the snapdir of a zvol (which does not exist) and the failure when we try to unmount a snapdir of a dataset, so the changes to zfs_unmount_snap() were dropped in favor of an altered Linux function that unconditionally returns 0.
Diffstat (limited to 'include')
-rw-r--r--include/sys/zfs_ioctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zfs_ioctl.h b/include/sys/zfs_ioctl.h
index 0ee6cc1cd..4a717b7d1 100644
--- a/include/sys/zfs_ioctl.h
+++ b/include/sys/zfs_ioctl.h
@@ -356,7 +356,7 @@ extern int zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr);
extern int zfs_secpolicy_rename_perms(const char *from,
const char *to, cred_t *cr);
extern int zfs_secpolicy_destroy_perms(const char *name, cred_t *cr);
-extern void zfs_unmount_snap(const char *);
+extern int zfs_unmount_snap(const char *);
extern void zfs_destroy_unmount_origin(const char *);
enum zfsdev_state_type {