-
Notifications
You must be signed in to change notification settings - Fork 664
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
show-regs has excess dependencies #2048
Comments
That does seem excessive just to get some registers. I think part of this might be trying to establish what transport the device is since there are different ways to access the registers depending on the interface. For pci, though, we don't even really need a device handle, which I suspect is the transport you're interested in. Since it's possible a device handle doesn't even exist for a failed controller, we could add a toggle parameter to the |
Thanks Keith, the change ended up being pretty trivial and I just needed a dummy root object. if (!cfg.no_scan)
r = nvme_scan(NULL);
else
r = nvme_create_root(NULL, DEFAULT_LOGLEVEL); I can get a PR prepared. Is using |
That will still scan the controller and/or namespace in |
I checked via strace and no ioctls were observed with the added Lines 5469 to 5483 in 9e532bb
|
The This means command still scans the hierarchy scanned. Let's see if we can cut down some more of the overhead. |
This should be fixed with #2251. |
The show-regs command has some additional dependencies that the drive is operational and responding to an Identify admin command. For a drive that is truly unresponsive, say in a
Controller Fatal Status = True
state, this means one cannot inspect the controller registers.Call stack:
Doing a namespace scan seems unnecessary for the show-regs command, and I'm wondering if this can somehow be removed so the show-regs is still functional in fatal situations. That would likely include an enhancement to libnvme.
If someone can provide guidance on the necessary code changes, I can either work on the PR or help with validation.
Thanks
The text was updated successfully, but these errors were encountered: