Bug 442937
Summary: | libblkid sees lvm2pv as swap | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jeremy Katz <katzj> | ||||
Component: | e2fsprogs | Assignee: | Eric Sandeen <esandeen> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | kzak, oliver | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-04-18 17:55:20 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 235706 | ||||||
Attachments: |
|
Description
Jeremy Katz
2008-04-17 18:00:32 UTC
Created attachment 302779 [details]
fix
Bleah, what a mess. Neither mkswap nor pvcreate does a great job of zeroing other signatures around the new signature. For some incantations, pvcreate-then-mkswap has an initial 4k on the disk which is *identical* to mkswap-then-pvcreate. :( Sent a patch upstream (and to Jeremy) to check that the swap v1 header has a valid version and page count... "pvcreate" by itself will zero those. (pvcreate -u <blah> will not, unfortunately, so there's still a small hole). But, it fixes Jeremy's case: # blkid -c /dev/null /root/md0-for-esandeen /root/md0-for-esandeen: UUID="kyOPnO-Biwa-PssU-PsXx-kJDW-36Ry-iZvqk5" TYPE="lvm2pv" Patch committed and built and I tested it with my reproducer, so going to close |