mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
zdb: detect cachefile automatically otherwise force import
If a pool is created with the cache file located in a non-default path /etc/default/zpool.cache, removed, or the cachefile property is set to none, zdb fails to show the pool unless we specify the cache file or use the -e option. This PR automates this process. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Akash B <akash-b@hpe.com> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes #16071
This commit is contained in:
@@ -77,6 +77,7 @@ _LIBZFS_CORE_H int lzc_snaprange_space(const char *, const char *, uint64_t *);
|
||||
_LIBZFS_CORE_H int lzc_hold(nvlist_t *, int, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_release(nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_get_holds(const char *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_get_props(const char *, nvlist_t **);
|
||||
|
||||
enum lzc_send_flags {
|
||||
LZC_SEND_FLAG_EMBED_DATA = 1 << 0,
|
||||
|
||||
Reference in New Issue
Block a user