We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e5a31e9 + ff76018 commit cc71b96Copy full SHA for cc71b96
libaums/src/main/java/me/jahnen/libaums/core/driver/file/FileBlockDeviceDriver.kt
@@ -22,7 +22,7 @@ class FileBlockDeviceDriver : BlockDeviceDriver {
22
@Throws(FileNotFoundException::class)
23
@JvmOverloads
24
constructor(file: File, byteOffset: Int = 0, blockSize: Int = 512) {
25
- this.file = RandomAccessFile(file, "rw")
+ this.file = RandomAccessFile(file, "rws")
26
this.blockSize = blockSize
27
this.byteOffset = byteOffset
28
}
@@ -37,7 +37,7 @@ class FileBlockDeviceDriver : BlockDeviceDriver {
37
val fos = FileOutputStream(tempFile)
38
fos.channel.transferFrom(rbc, 0, java.lang.Long.MAX_VALUE)
39
40
- this.file = RandomAccessFile(tempFile, "rw")
+ this.file = RandomAccessFile(tempFile, "rws")
41
42
43
0 commit comments