Bug 1129923

Summary: wipefs doesn't remove all btrfs superblock signatures
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-14 02:04:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Murphy 2014-08-14 01:59:22 UTC
Description of problem: When issuing a wipefs -a on a btrfs volume, there should be three signatures removed but only one is removed.


Version-Release number of selected component (if applicable):
libblkid-2.25-3.fc21.x86_64


How reproducible:
Always

Steps to Reproduce:
# mkfs.btrfs /dev/sdb
# wipefs -a /dev/sdb
/dev/sdb: 8 bytes were erased at offset 0x00010040 (btrfs): 5f 42 48 52 66 53 5f 4d

Actual results:
Only 8 bytes erased at offset 0x00010040

Expected results:
8 bytes should be additionally erased at offsets 0x04000040 and 0x1000000040.
64KB, 64MB, 256GB.

Additional info:
https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#What_if_I_don.27t_have_wipefs_at_hand.3F

Comment 1 Chris Murphy 2014-08-14 02:04:15 UTC
Sort of a duplicate but I decided to open a new bug against util-linux/libblkid per original bug 889888 comment 28. But then barely 2 minutes later I found this:
https://github.com/karelzak/util-linux/commit/c93c20304ce544d2f8200540ccf25e08900b2e9d

I guess nevermind!