btrfs-progs: fixup is_mounted checks
authorChris Mason <chris.mason@oracle.com>
Thu, 27 Oct 2011 20:23:14 +0000 (16:23 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 27 Oct 2011 20:23:14 +0000 (16:23 -0400)
commitba1aa28496cf2a2c7ffff0521c6c858a0505d4c2
treeafb36912305ae49312eb50aa25434499a57e64ee
parentbe826706b5c0fcca3bdeff6934cd8d46d046ddfe
btrfs-progs: fixup is_mounted checks

/proc/mounts contains device names that don't exist,
we end up erroring out because we're not able to stat
the device (that doesn't exist).

Fix this by allowing the mkfs when the target device doesn't exist.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
utils.c