Does mkfs perform validation ?

James Cameron quozl at
Wed Feb 10 14:54:23 EST 2010

On Wed, Feb 10, 2010 at 11:53:42AM -0600, Mikus Grinbergs wrote:
> The description in ticket 10019 could be the result of an user doing
> 'mkfs.ext3' and 'mkfs.ext2' against a partition of type 'b' (FAT32).

I don't see how the sugar datastore service would fail purely on the
basis of the partition type flag, since it would never have access to

> Does 'mkfs' NOT check the filesystem type against the partition type ?

Correct.  No good reason for it to do so, and given only the partition
address it has no reliable way to determine the partition type in the
enclosing structure.

(e.g. /dev/sda1 would imply /dev/sda, /dev/mmcblk0p1 would imply
/dev/mmcblk0, and /tmp/blocks would not have any relevant enclosing

I'll respond on the ticket.

James Cameron

More information about the Devel mailing list