diff options
author | наб <[email protected]> | 2021-04-09 00:44:23 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-04-13 14:14:44 -0700 |
commit | 533527725bf3fa72b8feb61993d1ed0d6e5672dc (patch) | |
tree | 3255d96e5f8570d66c0d9212af724f407220243c /include | |
parent | 74e48f470e8190ed64bbea020e6535f69e17c1a8 (diff) |
libzfs: get rid of libzfs_handle::libzfs_mnttab
All users did a freopen() on it. Even some non-users did!
This is point-less ‒ just open the mtab when needed
If I understand Solaris' getextmntent(3C) correctly, the non-user
freopen()s are very likely an odd, twisted vestigial tail of that ‒
but it's got a completely different calling convention and caching
semantics than any platform we support
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #11868
Diffstat (limited to 'include')
-rw-r--r-- | include/libzfs_impl.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/libzfs_impl.h b/include/libzfs_impl.h index dfb63285c..d138a829a 100644 --- a/include/libzfs_impl.h +++ b/include/libzfs_impl.h @@ -48,7 +48,6 @@ extern "C" { struct libzfs_handle { int libzfs_error; int libzfs_fd; - FILE *libzfs_mnttab; zpool_handle_t *libzfs_pool_handles; uu_avl_pool_t *libzfs_ns_avlpool; uu_avl_t *libzfs_ns_avl; |