Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop the no_memory() call from zpool_in_use() when reading the label fails and instead return the error to the caller. This prevents a misleading "internal error: out of memory" error when the label can't be read. This will result in is_spare() returning B_FALSE instead of aborting, which is already safely handled. Furthermore, on Linux it's possible for EREMOTEIO to returned by an NVMVe device if the device has been low-level formatted and not rescanned. In this case we want to fallback to the legacy scanning method and read any of the labels we can. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#13538
- Loading branch information