UNMAP: propagate request to backing store

This commit is contained in:
chessman
2019-05-29 16:14:31 +03:00
parent 22d47a9212
commit 12b06c21ef
6 changed files with 36 additions and 14 deletions

View File

@@ -351,7 +351,7 @@ type BackingStore interface {
Write([]byte, int64) error
DataSync() error
DataAdvise(int64, int64, uint32) error
Unmap() error
Unmap([]UnmapBlockDescriptor) error
}
type SCSIDeviceProtocol interface {
@@ -401,3 +401,8 @@ type SCSILu struct {
}
type LUNMap map[uint64]*SCSILu
type UnmapBlockDescriptor struct {
Offset uint64
TL uint32
}