summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTurbo Fredriksson <[email protected]>2013-06-04 03:56:04 +0200
committerBrian Behlendorf <[email protected]>2013-08-15 10:18:31 -0700
commitabbfdca483897d4406889e3517e77baf07573ecb (patch)
treeaa78132afcc6ed08c72b2264ed427bf6bda87d76
parentf9e459d1435832caa69fdaf236ebaeacd93f1b3e (diff)
No point in rewind() mtab in zfs_unshare_proto(). We're not really
reading the file, but instead use libzfs_mnttab_find() which does the nessesary freopen() for us. Signed-off-by: Brian Behlendorf <[email protected]> Issue #1498
-rw-r--r--lib/libzfs/libzfs_mount.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_mount.c b/lib/libzfs/libzfs_mount.c
index 9a57ad98f..bded1f001 100644
--- a/lib/libzfs/libzfs_mount.c
+++ b/lib/libzfs/libzfs_mount.c
@@ -877,7 +877,6 @@ zfs_unshare_proto(zfs_handle_t *zhp, const char *mountpoint,
char *mntpt = NULL;
/* check to see if need to unmount the filesystem */
- rewind(zhp->zfs_hdl->libzfs_mnttab);
if (mountpoint != NULL)
mountpoint = mntpt = zfs_strdup(hdl, mountpoint);