提交 104650db 编写于 作者: O Osier Yang

storage: Improve virStorageBackendFileSystemStop

It's actually not used for DIR pool. So removing the checking.
上级 f4ac0656
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册