restruct the backend storage command submit

This commit is contained in:
Lei Xue
2016-11-28 11:11:24 +08:00
parent ed47ac5ea0
commit 05b6f88de4
8 changed files with 218 additions and 179 deletions

View File

@@ -335,7 +335,10 @@ type BackingStore interface {
Init(dev *SCSILu, Opts string) error
Exit(dev *SCSILu) error
Size(dev *SCSILu) uint64
CommandSubmit(cmd *SCSICommand) error
Read(offset, tl int64) ([]byte, error)
Write([]byte, int64) error
DataSync() error
DataAdvise(int64, int64, uint32) error
}
type SCSIDeviceProtocol interface {