]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: disk: Default to 'ext2' for new volumes.
authorCole Robinson <crobinso@redhat.com>
Fri, 10 Jul 2009 13:02:30 +0000 (09:02 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 16 Jul 2009 16:52:52 +0000 (12:52 -0400)
Currently, if no format is specified for a new disk volume, we pass the
invalid value "none" as the FS type to 'parted mkpart'.

There doesn't seem to be a way to have parted not format the drive, so
just default to using 'ext2' in this case: this shouldn't cause any harm,
since we are creating a new partition in the first place.

src/storage_conf.c

index fe1dc902889f1e417eacff7c0118ca20b2c5b509..075279cc0a7639b269620abce933cebf345f2218 100644 (file)
@@ -95,7 +95,7 @@ VIR_ENUM_IMPL(virStorageVolFormatFileSystem,
 
 VIR_ENUM_IMPL(virStoragePartedFsType,
               VIR_STORAGE_PARTED_FS_TYPE_LAST,
-              "none", "ext2", "fat16",
+              "ext2", "ext2", "fat16",
               "fat32", "linux-swap",
               "ext2", "ext2",
               "extended")