mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 19:50:25 +03:00
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 <behlendorf1@llnl.gov> Issue #1498
This commit is contained in:
parent
f9e459d143
commit
abbfdca483
@ -877,7 +877,6 @@ zfs_unshare_proto(zfs_handle_t *zhp, const char *mountpoint,
|
|||||||
char *mntpt = NULL;
|
char *mntpt = NULL;
|
||||||
|
|
||||||
/* check to see if need to unmount the filesystem */
|
/* check to see if need to unmount the filesystem */
|
||||||
rewind(zhp->zfs_hdl->libzfs_mnttab);
|
|
||||||
if (mountpoint != NULL)
|
if (mountpoint != NULL)
|
||||||
mountpoint = mntpt = zfs_strdup(hdl, mountpoint);
|
mountpoint = mntpt = zfs_strdup(hdl, mountpoint);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user