]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Adjust how to refresh extended partition disk data
authorJohn Ferlan <jferlan@redhat.com>
Thu, 22 Jan 2015 14:12:04 +0000 (09:12 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 28 Jan 2015 22:28:03 +0000 (17:28 -0500)
commitbce671b731cede997b94ebe8d76aa07d903c05a0
tree0325371c3b916bb75c4606385d89ecc3bce5f86e
parenta0d88ed4e70a034dfcf7201bff8692af5b4effad
storage: Adjust how to refresh extended partition disk data

During virStorageBackendDiskMakeDataVol processing, if we find an extended
partition, then handle it specially when updating the capacity/allocation
rather than calling virStorageBackendUpdateVolInfo.

As it turns out, once a logical partition exists, any attempt to refresh
the pool or after libvirtd restart/reload will result in a failure to open
the extended partition device resulting in the inability to start the pool.
The downside to this is we will lose the <permissions> and <timestamps> for
the extended partition upon subsequent restart, refresh, reload since the
stat() in virStorageBackendUpdateVolTargetInfoFD will not be called. However,
since it's really only a container and shouldn't directly be used for
storage that seems reasonable.

Therefore, only use the existing code that already had a comment about
getting the allocation wrong for extended partitions for just the setting
of the extended partition data.
src/storage/storage_backend.c
src/storage/storage_backend_disk.c