mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-14 16:34:04 +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
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
file.delete()
|
val successful = file.delete()
|
||||||
|
if (!successful) {
|
||||||
|
statusCode.set(TestDiskDrive.STATE_CODE_OPERATION_FAILED)
|
||||||
|
return
|
||||||
|
}
|
||||||
printdbg("Notifying disk commit (file deleted)")
|
printdbg("Notifying disk commit (file deleted)")
|
||||||
notifyDiskCommit()
|
notifyDiskCommit()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user