-
Notifications
You must be signed in to change notification settings - Fork 6
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
lvutil: use wipefs not dd to clear existing signatures (xapi-project#624) #50
Conversation
drivers/XE_SR_ERRORCODES.xml
Outdated
@@ -881,6 +881,12 @@ | |||
<value>460</value> | |||
</code> | |||
|
|||
<code> | |||
<name>WipeFS</name> |
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.
WipefsFailure
maybe like other errors?
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.
done
@@ -881,6 +881,12 @@ | |||
<value>460</value> | |||
</code> | |||
|
|||
<code> | |||
<name>WipeFS</name> | |||
<description>Failed to wipe pre-existing filesystem signature.</description> |
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.
A lot of descriptions don't have a period at the end. Maybe we need to add a contribution in the upstream repository to standardize this situation.
drivers/util.py
Outdated
"Wipe filesystem signatures from `blockdev`" | ||
cmdlist = ["/usr/sbin/wipefs", "-a", blockdev] | ||
SMlog("Running command: %s" % cmdlist) | ||
(rc, stdout, stderr) = doexec(cmdlist) |
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.
pread2(cmd)
?
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.
done
) Signed-off-by: Yann Dirson <[email protected]>
09aa30e
to
a08ad58
Compare
No description provided.