Bug 26996 — wrongly detects partition on unpartitioned VFAT device
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 11 Mar 2010 06:58:34 +0000 (07:58 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 11 Mar 2010 06:58:34 +0000 (07:58 +0100)
commitcfc669846a53815517d32d0b7b96cbc4935cea7a
tree5f2e381782b08f40eab4200fb176018efd5b17e7
parent47ac2676ca6d209705f9f814cded2daf19f24e76
Bug 26996 — wrongly detects partition on unpartitioned VFAT device

A standard VFAT header matches the signature of an MBR, so we detected
VFAT file systems on raw unpartitioned devices as both VFAT and MBR partition
table. This confuses gnome-disk-utility/gvfs, and causes them to be ignored in
GNOME.

The standard approach in the kernel/blkid is to only detect an MBR if it does
not have a valid VFAT signature. Since blkid already does that for us, just
skip the udisks-part-id invocation completely if we already know that we have a
valid ID_FS_TYPE.
data/80-udisks.rules