Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zdb: Fix zdb '-O|-r' options with -e/exported zpool #15532

Merged
merged 1 commit into from
Nov 27, 2023

Commits on Nov 16, 2023

  1. zdb: Fix zdb '-O|-r' options with -e/exported zpool

    zdb with '-e' or exported zpool doesn't work along with
    '-O' and '-r' options as we process them before '-e' has
    been processed.
    
    Below errors are seen:
    
    ~> zdb -e pool-mds65/mdt65 -O oi.9/0x200000009:0x0:0x0
    failed to hold dataset 'pool-mds65/mdt65': No such file or directory
    
    ~> zdb -e pool-oss0/ost0 -r file1 /tmp/filecopy1 -p.
    failed to hold dataset 'pool-oss0/ost0': No such file or directory
    zdb: internal error: No such file or directory
    
    We need to make sure to process '-O|-r' options after the
    '-e' option has been processed, which imports the pool to
    the namespace if it's not in the cachefile.
    
    Signed-off-by: Akash B <akash-b@hpe.com>
    akashb-22 committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    ca40a60 View commit details
    Browse the repository at this point in the history