Files
cloudpods/pkg/apis/compute/disk_const.go
wanyaoqi 4dc5a5e2cf fix(region): use virtio replace ide on diskattach
If disk driver not assign, default use previous disk driver.
Bus windows server can't recognize hot attached 'ide' disk,
use 'virtio' replace 'ide' driver on diskattach.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-08-05 14:20:47 +08:00

74 lines
2.2 KiB
Go

// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package compute
const (
DISK_INIT = "init"
DISK_REBUILD = "rebuild"
DISK_ALLOC_FAILED = "alloc_failed"
DISK_STARTALLOC = "start_alloc"
DISK_BACKUP_STARTALLOC = "backup_start_alloc"
DISK_BACKUP_ALLOC_FAILED = "backup_alloc_failed"
DISK_ALLOCATING = "allocating"
DISK_READY = "ready"
DISK_RESET = "reset"
DISK_RESET_FAILED = "reset_failed"
DISK_DEALLOC = "deallocating"
DISK_DEALLOC_FAILED = "dealloc_failed"
DISK_UNKNOWN = "unknown"
DISK_DETACHING = "detaching"
DISK_ATTACHING = "attaching"
DISK_CLONING = "cloning" // 硬盘克隆
DISK_START_SAVE = "start_save"
DISK_SAVING = "saving"
DISK_START_RESIZE = "start_resize"
DISK_RESIZING = "resizing"
DISK_RESIZE_FAILED = "resize_failed"
DISK_START_MIGRATE = "start_migrate"
DISK_POST_MIGRATE = "post_migrate"
DISK_MIGRATING = "migrating"
DISK_CLONE = "clone"
DISK_CLONE_FAIL = "clone_failed"
DISK_START_SNAPSHOT = "start_snapshot"
DISK_SNAPSHOTING = "snapshoting"
DISK_APPLY_SNAPSHOT_FAIL = "apply_snapshot_failed"
DISK_CALCEL_SNAPSHOT_FAIL = "cancel_snapshot_failed"
DISK_TYPE_SYS = "sys"
DISK_TYPE_SWAP = "swap"
DISK_TYPE_DATA = "data"
DISK_TYPE_VOLUME = "volume"
DISK_BACKING_IMAGE = "image"
DISK_SIZE_AUTOEXTEND = -1
DISK_NOT_EXIST = "not_exist"
DISK_EXIST = "exist"
)
const (
DISK_DRIVER_VIRTIO = "virtio"
DISK_DRIVER_SCSI = "scsi"
DISK_DRIVER_PVSCSI = "pvscsi"
DISK_DRIVER_IDE = "ide"
DISK_DRIVER_SATA = "sata"
)