mirror_zfs/cmd
Chunwei Chen 478754a8f5 Fix zdb -ed on objset for exported pool
zdb -ed on objset for exported pool would failed with:
  failed to own dataset 'qq/fs0': No such file or directory

The reason is that zdb pass objset name to spa_import, it uses that
name to create a spa. Later, when dmu_objset_own tries to lookup the spa
using real pool name, it can't find one.

We fix this by make sure we pass pool name rather than objset name to
spa_import.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #7099
Closes #6464
2018-03-14 16:10:37 -07:00
..
arc_summary Handle broken pipes in arc_summary 2018-01-30 10:27:31 -06:00
arcstat arcstat: flush stdout / outfile after each line 2017-11-20 16:19:23 -06:00
dbufstat Correct arc_summary and dbufstat python style 2017-03-09 10:21:59 -08:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Add MS_MANDLOCK mount failure message 2017-06-07 10:59:44 -07:00
raidz_test Add missing *_destroy/*_fini calls 2017-05-04 19:26:28 -04:00
vdev_id vdev_id: implement slot numbering by port id 2017-08-21 16:41:22 -07:00
zdb Fix zdb -ed on objset for exported pool 2018-03-14 16:10:37 -07:00
zed Fix shellcheck v0.4.6 warnings 2018-01-30 10:27:31 -06:00
zfs Add missing \n for "invalid optionusage" output 2017-06-09 09:51:13 -07:00
zgenhostid Add zgenhostid utility script 2017-07-25 13:22:03 -04:00
zhack zhack: fix getopt return type 2018-01-30 10:27:31 -06:00
zinject Inject zinject(8) a percentage amount of dev errs 2017-06-16 17:21:11 -07:00
zpios Fix spelling 2017-01-03 11:31:18 -06:00
zpool Fix 'zpool add' handling of nested interior VDEVs 2018-01-30 10:27:31 -06:00
zstreamdump Some additional send stream validity checking 2017-07-25 18:52:40 -07:00
ztest Fix ZTS MMP tests and ztest -M behavior 2017-12-18 10:14:39 -08:00
zvol_id OpenZFS 6314 - buffer overflow in dsl_dataset_name 2016-06-28 13:47:03 -07:00
Makefile.am Add zgenhostid utility script 2017-07-25 13:22:03 -04:00