[21.04 regression] formatting vfat times out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udisks2 (Ubuntu) |
Fix Released
|
High
|
Sebastien Bacher | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
Formatting devices to vfat fails in some cases due to an incompatibility with the new dosfstools version
* Test case
see comment #5
or
- $ sudo modprobe scsi_debug
- check what device is assigned
- $ sudo busctl call org.freedesktop
(replace DEVNAME by the actual device name, 'sdc' for example)
the formatting should work which you can verify by
- $ blkid -p /dev/DEVNAME
* Regression potential
The changes is specific to vfat handling so that's the feature to focus on while testing, make sure than creating, deleting, renaming vfat partitions from gnome-disks is working.
[racb] An upstream "precautionary" partprobe is being added following the mkfs for vfat, when it didn't do this before. This is a change in behaviour that might expose a problem elsewhere.
-------
There is a regression somewhere between udisks, udev, and dosfstools. Formatting a device with vfat hangs and fails:
# blkid -p /dev/sda
(nothing)
# busctl call org.freedesktop
(long pause)
Call failed: Error synchronizing after formatting with type `vfat': Timed out waiting for object
# blkid -p /dev/sda
/dev/sda: PTUUID="3690494f" PTTYPE="dos"
OTOH, formatting as ext4 works fine:
# wipefs -a /dev/sda; wipefs -a /dev/sda
# busctl call org.freedesktop
(immediately succeeds)
# blkid -p /dev/sda
/dev/sda: UUID="8bea7475-
I tested this to a QEMU emulated disk, but it reproduces equally well against a `modprobe scsi_debug` device.
Package: udisks2 2.9.2-1
DistroRelease: Ubuntu 21.04
Changed in udisks2 (Ubuntu): | |
status: | Confirmed → Fix Committed |
Forgot to mention, there is nothing useful in the journal. The only message is this when the timeout happens:
Apr 23 15:12:35 ubuntu udisksd[3116]: Error synchronizing after formatting with type `vfat': Timed out waiting for object