提交 f2a12320 编写于 作者: J John Ferlan

disk: Resolve issues with disk partition build/start checks

https://bugzilla.redhat.com/show_bug.cgi?id=1439132

Commit id 'a48c674f' added a check for format types "dvh" and "pc98"
to use the parted print processing instead of using blkid processing
in order to validate the label on the disk was what is expected for
disk pool startup. However, commit id 'a4cb4a74' really messed things
up by missing an else condition causing PARTEDFindLabel to always
return DIFFERENT.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 be193c4d
...@@ -3245,7 +3245,7 @@ virStorageBackendPARTEDFindLabel(const char *device, ...@@ -3245,7 +3245,7 @@ virStorageBackendPARTEDFindLabel(const char *device,
/* Does the on disk match what the pool desired? */ /* Does the on disk match what the pool desired? */
if (STREQ(start, format)) if (STREQ(start, format))
ret = VIR_STORAGE_PARTED_MATCH; ret = VIR_STORAGE_PARTED_MATCH;
else
ret = VIR_STORAGE_PARTED_DIFFERENT; ret = VIR_STORAGE_PARTED_DIFFERENT;
cleanup: cleanup:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册