Skip to content

Commit

Permalink
No point in rewind() mtab in zfs_unshare_proto(). We're not really
Browse files Browse the repository at this point in the history
reading the file, but instead use libzfs_mnttab_find() which does
the nessesary freopen() for us.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1498
  • Loading branch information
FransUrbo authored and behlendorf committed Aug 15, 2013
1 parent f9e459d commit abbfdca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/libzfs/libzfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit abbfdca

Please sign in to comment.