Bug 823883

Summary: virt-make-fs -t fat fails with an obscure error message
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dyasny, mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-24 11:33:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2012-05-22 11:29:31 UTC
Description of problem:

I thought that 'fat' would be a valid filesystem type, but
apparently it's not:

$ virt-make-fs -t fat --partition=mbr libguestfs-1.18.0.tar.gz disk.img
Formatting 'disk.img', fmt=raw size=44308070 
mkfs: fat: /dev/vda1: mkfs.fat: No such file or directory at /usr/bin/virt-make-fs line 459.

(-t vfat works).  I think the error message could be improved.
Could we also have a way to detect what filesystems are supported
by various operations (eg. mount, mkfs, etc?)

Version-Release number of selected component (if applicable):

1.18.0.

How reproducible:

100%

Steps to Reproduce:
1. As above.

Comment 1 Richard W.M. Jones 2012-05-24 11:31:34 UTC
Fixed upstream in commit 975a41db20eff2b5edf510f8a65005c915b21f27.