mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
storage: Improve virStorageBackendFileSystemStop
It's actually not used for DIR pool. So removing the checking.
This commit is contained in:
parent
f4ac06569a
commit
104650db3e
@ -930,7 +930,7 @@ no_memory:
|
||||
* @conn connection to report errors against
|
||||
* @pool storage pool to start
|
||||
*
|
||||
* Stops a directory or FS based storage pool.
|
||||
* Stops a FS based storage pool.
|
||||
*
|
||||
* - If it is a FS based pool, unmounts the unlying source device on the pool
|
||||
* - Releases all cached data about volumes
|
||||
@ -940,8 +940,7 @@ static int
|
||||
virStorageBackendFileSystemStop(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
virStoragePoolObjPtr pool)
|
||||
{
|
||||
if (pool->def->type != VIR_STORAGE_POOL_DIR &&
|
||||
virStorageBackendFileSystemUnmount(pool) < 0)
|
||||
if (virStorageBackendFileSystemUnmount(pool) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user