-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[disk][linux] fix readlink error which system boot by nfs mount #1291
Conversation
According to the psutil implementation, there are other ways, but they are more complicated. Could you show us following ?
|
Hi @shirou , because we compiled the(kernel-2.6.32) on an old system(centos 5(kernel-2.6.18)), so there is no dirs
|
Thank you for the report. It seems we can not get a root device from those files. According to this psutil code, use So, how about change error handling on here like this?
|
Thanks @shirou , we should follow the psutil principles, and I test ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your update!
Some host maybe boot the linux os with nfs mount, such as:
and the device
0:14
can not found at this host:so we'll get the following error:
this commit ignore the nfs type so that we can skip this error.