[Bug 1046665] [NEW] wipefs does not properly clean up vfat signatures
Martin Pitt
martin.pitt at ubuntu.com
Thu Sep 6 05:29:51 UTC 2012
Public bug reported:
With the current version you need to call wipefs three times on vfat
before it succeeds. This is reproduced with the udisks2 test suite, and
with these manual commands:
$ dd if=/dev/zero of=/tmp/img bs=1M count=50 && mkfs.vfat -n txx /tmp/img && wipefs -a /tmp/img && blkid -p /tmp/img
8 bytes were erased at offset 0x36 (vfat)
they were: 46 41 54 31 36 20 20 20
/tmp/img: SEC_TYPE="msdos" LABEL="txx" UUID="3F05-CCD3" VERSION="FAT16" TYPE="vfat" USAGE="filesystem"
After second time:
$ wipefs -a /tmp/img && blkid -p /tmp/img
1 bytes were erased at offset 0x0 (vfat)
they were: eb
/tmp/img: SEC_TYPE="msdos" LABEL="txx" UUID="3F05-CCD3" VERSION="FAT16" TYPE="vfat" USAGE="filesystem"
Third time is the charm:
$ wipefs -a /tmp/img && blkid -p /tmp/img
2 bytes were erased at offset 0x1fe (vfat)
they were: 55 aa
This is fixed in the current upstream version (see bug 1012081), but I'd
like to fix it for Quantal as this makes other test suite regressions in
udisks hard to see (we missed a regression on i386 for weeks due to
this).
** Affects: util-linux (Ubuntu)
Importance: Medium
Assignee: Martin Pitt (pitti)
Status: In Progress
** Affects: util-linux (Ubuntu Quantal)
Importance: Medium
Assignee: Martin Pitt (pitti)
Status: In Progress
** Also affects: util-linux (Ubuntu Quantal)
Importance: Undecided
Status: New
** Changed in: util-linux (Ubuntu Quantal)
Importance: Undecided => Medium
** Changed in: util-linux (Ubuntu Quantal)
Status: New => In Progress
** Changed in: util-linux (Ubuntu Quantal)
Assignee: (unassigned) => Martin Pitt (pitti)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1046665
Title:
wipefs does not properly clean up vfat signatures
Status in “util-linux” package in Ubuntu:
In Progress
Status in “util-linux” source package in Quantal:
In Progress
Bug description:
With the current version you need to call wipefs three times on vfat
before it succeeds. This is reproduced with the udisks2 test suite,
and with these manual commands:
$ dd if=/dev/zero of=/tmp/img bs=1M count=50 && mkfs.vfat -n txx /tmp/img && wipefs -a /tmp/img && blkid -p /tmp/img
8 bytes were erased at offset 0x36 (vfat)
they were: 46 41 54 31 36 20 20 20
/tmp/img: SEC_TYPE="msdos" LABEL="txx" UUID="3F05-CCD3" VERSION="FAT16" TYPE="vfat" USAGE="filesystem"
After second time:
$ wipefs -a /tmp/img && blkid -p /tmp/img
1 bytes were erased at offset 0x0 (vfat)
they were: eb
/tmp/img: SEC_TYPE="msdos" LABEL="txx" UUID="3F05-CCD3" VERSION="FAT16" TYPE="vfat" USAGE="filesystem"
Third time is the charm:
$ wipefs -a /tmp/img && blkid -p /tmp/img
2 bytes were erased at offset 0x1fe (vfat)
they were: 55 aa
This is fixed in the current upstream version (see bug 1012081), but
I'd like to fix it for Quantal as this makes other test suite
regressions in udisks hard to see (we missed a regression on i386 for
weeks due to this).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1046665/+subscriptions
More information about the foundations-bugs
mailing list