libvirt/src/storage
Martin Kletzander 3401e208ab qemu: Don't mangle the storage format for type='dir'
Our backing probing code handles directory file types properly in
virStorageFileGetMetadataRecurse(), by that I mean it leaves them
alone.  However its caller, the virStorageFileGetMetadata() resets the
type to raw before probing, without even checking the type.  We need
to special-case TYPE_DIR in order to achieve desired results.

Also, in order to properly test this, we need to stop resetting format
of volumes in tests for TYPE_DIR (probably the reason why we didn't
catch that and why the test data didn't need to be modified).

Partially-resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1443434

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2017-08-29 16:30:04 +02:00
..
parthelper.c storage: Fix virStorageBackendDiskDeleteVol for device mapper 2016-05-11 09:23:31 -04:00
storage_backend_disk.c disk: Use virStorageBackendZeroPartitionTable 2017-04-26 07:28:08 -04:00
storage_backend_disk.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_fs.c storage: Make virStorageFileReadHeader more universal 2017-07-11 17:07:04 +02:00
storage_backend_fs.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_gluster.c virStorageNetHostDef: Turn @port into integer 2017-07-24 10:55:44 +02:00
storage_backend_gluster.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_iscsi.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_iscsi.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_logical.c storage: Fix return value checks for virAsprintf 2017-07-21 14:51:47 -04:00
storage_backend_logical.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_mpath.c mpath: Fix memory leak in virStorageBackendCreateVols 2017-07-19 16:47:10 +02:00
storage_backend_mpath.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_rbd.c storage: Fix return value checks for virAsprintf 2017-07-21 14:51:47 -04:00
storage_backend_rbd.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_scsi.c storage: Disallow usage of the HBA for a fc_host backing 2017-07-26 15:28:06 -04:00
storage_backend_scsi.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_sheepdog_priv.h storage: sheepdog: Split out functions required for tests 2017-01-19 09:25:51 +01:00
storage_backend_sheepdog.c storage: Fix return value checks for virAsprintf 2017-07-21 14:51:47 -04:00
storage_backend_sheepdog.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_vstorage.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_vstorage.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_zfs.c storage: Fix return value checks for virAsprintf 2017-07-21 14:51:47 -04:00
storage_backend_zfs.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend.c make: Drop building without driver modules 2017-07-27 12:00:35 +02:00
storage_backend.h storage: Make virStorageFileReadHeader more universal 2017-07-11 17:07:04 +02:00
storage_driver.c virStorageNetHostDef: Turn @port into integer 2017-07-24 10:55:44 +02:00
storage_driver.h storage: Use consistent variable names for driver 2017-07-21 14:51:47 -04:00
storage_source.c qemu: Don't mangle the storage format for type='dir' 2017-08-29 16:30:04 +02:00
storage_source.h storage: Make virStorageFileReadHeader more universal 2017-07-11 17:07:04 +02:00
storage_util.c storage: Fix return value checks for virAsprintf 2017-07-21 14:51:47 -04:00
storage_util.h storage: use 0711 as the default perms for dirs 2017-05-15 12:09:24 +01:00