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

CA-181447: Fix checking of node minor #272

Closed
wants to merge 1 commit into from

Conversation

germanop
Copy link
Contributor

@germanop germanop commented Sep 3, 2015

stat --format=%T returns minor device type in hex and this value is compared
against ROOT_DISK_MINOR which is decimal. Convert value returned by stat %T
to decimal, before doing the comparison.

Signed-off-by: Anoob Soman anoob.soman@citrix.com
Reviewed-by: Germano Percossi germano.percossi@citrix.com

stat --format=%T returns minor device type in hex and this value is compared
against ROOT_DISK_MINOR which is decimal. Convert value returned by stat %T
to decimal, before doing the comparison.

Signed-off-by: Anoob Soman <anoob.soman@citrix.com>
Reviewed-by: Germano Percossi <germano.percossi@citrix.com>
@germanop
Copy link
Contributor Author

germanop commented Sep 3, 2015

OK

@germanop germanop closed this in ed5ea62 Sep 25, 2015
andrey-podko pushed a commit to andrey-podko/sm that referenced this pull request Aug 16, 2022
stat --format=%T returns minor device type in hex and this value is compared
against ROOT_DISK_MINOR which is decimal. Convert value returned by stat %T
to decimal, before doing the comparison.

Reviewed-by: Germano Percossi <germano.percossi@citrix.com>

GitHub: closes xapi-project#272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants