Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jul 30, 2024
1 parent 4bb0831 commit 19a848b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions disk/disktest.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,16 @@ func ddTest2(blockFile, blockName, blockCount, bs string) string {
if EnableLoger {
Logger.Info("execDDTest read error for /root/ path: " + err.Error())
}
if strings.Contains(tempText, "Invalid argument") || strings.Contains(tempText, "Permission denied") ||
strings.Contains(tempText, "失败") || strings.Contains(tempText, "无效的参数") {
time.Sleep(1 * time.Second)
tempText, err = execDDTest(testFilePath+blockFile, "/tmp/read"+blockFile, bs, blockCount)
defer os.Remove(testFilePath + blockFile)
defer os.Remove("/tmp/read" + blockFile)
if err != nil {
if EnableLoger {
Logger.Info("execDDTest read error for /tmp/ path: " + err.Error())
}
}
if strings.Contains(tempText, "Invalid argument") || strings.Contains(tempText, "Permission denied") ||
strings.Contains(tempText, "失败") || strings.Contains(tempText, "无效的参数") {
time.Sleep(1 * time.Second)
tempText, err = execDDTest(testFilePath+blockFile, "/tmp/read"+blockFile, bs, blockCount)
defer os.Remove(testFilePath + blockFile)
defer os.Remove("/tmp/read" + blockFile)
if err != nil {
if EnableLoger {
Logger.Info("execDDTest read error for /tmp/ path: " + err.Error())
}
}
}
Expand Down

0 comments on commit 19a848b

Please sign in to comment.