Chunwei Chen eb9c4532dd 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-02-09 10:11:34 -08:00
..
2013-01-09 16:54:58 -08:00
2017-12-20 09:42:07 -08:00
2018-01-17 10:17:16 -08:00
2017-07-25 13:22:03 -04:00
2018-01-09 11:14:45 -08:00
2018-02-08 15:28:18 -08:00
2018-02-05 12:00:26 -08:00
2017-08-15 17:26:38 -07:00