fix verify and add verify test cases

This commit is contained in:
Lei Xue
2016-11-28 16:26:05 +08:00
parent 82ae696822
commit 18e1419b06
4 changed files with 57 additions and 15 deletions

View File

@@ -261,6 +261,12 @@ func (m *ISCSICommand) scsiCmdRespBytes() []byte {
for i := 0; i < 3*4; i++ {
buf.WriteByte(0x00)
}
buf.Write(m.RawData)
dl := len(m.RawData)
for dl%4 > 0 {
dl++
buf.WriteByte(0x00)
}
return buf.Bytes()
}