enable UNMAP when LUN is thin provisioned
- support Block Limits VPD page (0xB0) - add UNMAP to REPORT SUPPORTED OPERATION CODES - READ CAPACITY(16): set LBPME when Thin provisioning is enabled - move Thinprovisioning and BlockShift to config - add Unmap to BackingStore
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
"errors"
|
||||
"sync"
|
||||
|
||||
"github.com/satori/go.uuid"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
)
|
||||
|
||||
type SCSICommandType byte
|
||||
@@ -351,6 +351,7 @@ type BackingStore interface {
|
||||
Write([]byte, int64) error
|
||||
DataSync() error
|
||||
DataAdvise(int64, int64, uint32) error
|
||||
Unmap() error
|
||||
}
|
||||
|
||||
type SCSIDeviceProtocol interface {
|
||||
|
||||
Reference in New Issue
Block a user