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

@@ -59,7 +59,18 @@ func (bs *NullBackingStore) Size(dev *api.SCSILu) uint64 {
return 0
}
func (bs *NullBackingStore) CommandSubmit(cmd *api.SCSICommand) error {
cmd.Result = api.SAM_STAT_GOOD
func (bs *NullBackingStore) Read(offset, tl int64) ([]byte, error) {
return nil, nil
}
func (bs *NullBackingStore) Write(wbuf []byte, offset int64) error {
return nil
}
func (bs *NullBackingStore) DataSync() error {
return nil
}
func (bs *NullBackingStore) DataAdvise(offset, length int64, advise uint32) error {
return nil
}