Merge pull request #12642 from zexi/fix-nfs-clone-disk

fix(host): nfs clone disk from storage not implement
This commit is contained in:
Zexi Li
2021-11-09 18:14:37 +08:00
committed by GitHub
-6
View File
@@ -22,10 +22,8 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
hostapi "yunion.io/x/onecloud/pkg/apis/host"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/hostman/hostutils"
"yunion.io/x/onecloud/pkg/httperrors"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
)
@@ -98,7 +96,3 @@ func (s *SNasStorage) SyncStorageInfo() (jsonutils.JSONObject, error) {
func (s *SNasStorage) CreateDiskFromSnapshot(ctx context.Context, disk IDisk, input *SDiskCreateByDiskinfo) error {
return disk.CreateFromSnapshotLocation(ctx, input.DiskInfo.SnapshotUrl, int64(input.DiskInfo.DiskSizeMb))
}
func (s *SNasStorage) CloneDiskFromStorage(ctx context.Context, srcStorage IStorage, srcDisk IDisk, targetDiskId string) (*hostapi.ServerCloneDiskFromStorageResponse, error) {
return nil, httperrors.ErrNotImplemented
}