]> git.proxmox.com Git - mirror_zfs.git/commit
libzfs: get rid of libzfs_handle::libzfs_mnttab
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 8 Apr 2021 22:44:23 +0000 (00:44 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Apr 2021 21:14:44 +0000 (14:14 -0700)
commit533527725bf3fa72b8feb61993d1ed0d6e5672dc
tree3255d96e5f8570d66c0d9212af724f407220243c
parent74e48f470e8190ed64bbea020e6535f69e17c1a8
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 <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11868
cmd/zfs/zfs_main.c
include/libzfs_impl.h
lib/libspl/os/linux/getmntany.c
lib/libzfs/libzfs.abi
lib/libzfs/libzfs_dataset.c
lib/libzfs/libzfs_mount.c
lib/libzfs/libzfs_util.c