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:
chessman
2019-05-21 12:54:55 +03:00
parent e2192b7b01
commit 22d47a9212
10 changed files with 86 additions and 17 deletions

View File

@@ -149,3 +149,7 @@ func (bs *CephBackingStore) DataSync() error {
func (bs *CephBackingStore) DataAdvise(offset, length int64, advise uint32) error {
return nil
}
func (bs *CephBackingStore) Unmap() error {
return nil
}