mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-05 10:41:14 +08:00
fix cache non lvm disks (#7459)
This commit is contained in:
@@ -124,7 +124,9 @@ func (d *SKVMGuestDisk) Connect() bool {
|
||||
if pathType == LVM_PATH {
|
||||
d.setupLVMS()
|
||||
} else if pathType == PATH_TYPE_UNKNOWN {
|
||||
if hasLVM, err := d.setupLVMS(); !hasLVM && err == nil {
|
||||
hasLVM, err := d.setupLVMS()
|
||||
// no lvm partition found and has partitions
|
||||
if !hasLVM && err == nil && len(d.partitions) > 0 {
|
||||
d.cacheNonLVMImagePath()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user