mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
When reading a vdev label skip libzfs_core_init()
There's no need to call libzfs_core_init() when `zdb -l` is used to read a vdev label. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: tiehexue <[email protected]> Closes #18606
This commit is contained in:
1 parent
bfe4a8bb9d
commit
ef6f261454
1 file changed
+1
-1
+1
-1
@@ -10230,7 +10230,7 @@ main(int argc, char **argv)
|
||||
* Automate cachefile
|
||||
*/
|
||||
if (!spa_config_path_env && !config_path_console && target &&
|
||||
libzfs_core_init() == 0) {
|
||||
!dump_opt['l'] && libzfs_core_init() == 0) {
|
||||
char *pname = strdup(target);
|
||||
const char *value;
|
||||
nvlist_t *pnvl = NULL;
|
||||
|
||||
Reference in new issue
Block a user