- instance snapshot

- instance clone

- create form snapshot don't reset passwd
This commit is contained in:
wanyaoqi
2019-10-14 21:36:58 +08:00
parent 905fb307a8
commit 8fc4b2920a
26 changed files with 1203 additions and 26 deletions
+1
View File
@@ -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()
+1
View File
@@ -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) {