mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
tevd: failed delete will return status code 1
This commit is contained in:
@@ -204,7 +204,11 @@ class TevdDiskDrive(private val vm: VM, private val driveNum: Int, private val t
|
||||
return
|
||||
}
|
||||
try {
|
||||
file.delete()
|
||||
val successful = file.delete()
|
||||
if (!successful) {
|
||||
statusCode.set(TestDiskDrive.STATE_CODE_OPERATION_FAILED)
|
||||
return
|
||||
}
|
||||
printdbg("Notifying disk commit (file deleted)")
|
||||
notifyDiskCommit()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user