git://git.camperquake.de
/
zfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e459d
)
No point in rewind() mtab in zfs_unshare_proto(). We're not really
author
Turbo Fredriksson
<turbo@bayour.com>
Tue, 4 Jun 2013 01:56:04 +0000
(
03:56
+0200)
committer
Brian Behlendorf
<behlendorf1@llnl.gov>
Thu, 15 Aug 2013 17:18:31 +0000
(10:18 -0700)
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
lib/libzfs/libzfs_mount.c
patch
|
blob
|
history
diff --git
a/lib/libzfs/libzfs_mount.c
b/lib/libzfs/libzfs_mount.c
index
9a57ad9
..
bded1f0
100644
(file)
--- 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);