aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs/libzfs_diff.c
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-02-28 14:54:14 -0800
committerGitHub <[email protected]>2020-02-28 14:54:14 -0800
commitd32eff3a27d2a57fa280b7e461883fed2a4cec16 (patch)
tree23a4b1be2b5cc07d0826aa6b10bbd17bc57b78cc /lib/libzfs/libzfs_diff.c
parentcf118ae8dc149c5c9fd9b70e89790c38824b85de (diff)
Don't open zfs control device exclusively
With the FreeBSD platform changes that were made for #10073 it is no longer necessary on FreeBSD to open the control device exclusively to get onexit callbacks invoked. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10076
Diffstat (limited to 'lib/libzfs/libzfs_diff.c')
-rw-r--r--lib/libzfs/libzfs_diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_diff.c b/lib/libzfs/libzfs_diff.c
index 6cadd7e81..7941a5883 100644
--- a/lib/libzfs/libzfs_diff.c
+++ b/lib/libzfs/libzfs_diff.c
@@ -697,7 +697,7 @@ setup_differ_info(zfs_handle_t *zhp, const char *fromsnap,
{
di->zhp = zhp;
- di->cleanupfd = open(ZFS_DEV, O_RDWR|O_EXCL);
+ di->cleanupfd = open(ZFS_DEV, O_RDWR);
VERIFY(di->cleanupfd >= 0);
if (get_snapshot_names(di, fromsnap, tosnap) != 0)