mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-25 19:01:58 +08:00
- instance snapshot
- instance clone - create form snapshot don't reset passwd
This commit is contained in:
@@ -103,6 +103,7 @@ func (p *SKVMGuestDiskPartition) MountPartReadOnly() bool {
|
||||
|
||||
func (p *SKVMGuestDiskPartition) Mount() bool {
|
||||
if len(p.fs) == 0 || utils.IsInStringArray(p.fs, []string{"swap", "btrfs"}) {
|
||||
log.Errorf("Mount fs failed: %s", p.fs)
|
||||
return false
|
||||
}
|
||||
err := p.fsck()
|
||||
|
||||
@@ -1183,6 +1183,7 @@ func (s *SKVMGuestInstance) streamDisksComplete(ctx context.Context) {
|
||||
diskpath, _ := disk.GetString("path")
|
||||
d := storageman.GetManager().GetDiskByPath(diskpath)
|
||||
if d != nil {
|
||||
log.Infof("Disk %s do post create from fuse", d.GetId())
|
||||
d.PostCreateFromImageFuse()
|
||||
}
|
||||
if jsonutils.QueryBoolean(disk, "merge_snapshot", false) {
|
||||
|
||||
Reference in New Issue
Block a user