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

lvutil: use wipefs not dd to clear existing signatures (xapi-project#624) #50

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

ydirson
Copy link

@ydirson ydirson commented Jan 11, 2024

No description provided.

@@ -881,6 +881,12 @@
<value>460</value>
</code>

<code>
<name>WipeFS</name>
Copy link
Member

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?

Copy link
Author

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>
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pread2(cmd)?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ydirson ydirson merged commit a08ad58 into 3.0.10-8.3 Jan 18, 2024
3 checks passed
@ydirson ydirson deleted the 3.0.10-wipefs branch January 18, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants