some cleanup
This commit is contained in:
@@ -342,9 +342,6 @@ export default class RemoteHandlerAbstract {
|
||||
await this._write(fd, Buffer.alloc(blankLength), offset)
|
||||
}
|
||||
|
||||
async fSync(fd) {
|
||||
}
|
||||
|
||||
async readFile(
|
||||
file: string,
|
||||
{ flags = 'r' }: { flags?: string } = {}
|
||||
|
||||
@@ -143,10 +143,6 @@ export default class LocalHandler extends RemoteHandlerAbstract {
|
||||
} while (dataLen - copied > 0)
|
||||
}
|
||||
|
||||
async fSync(fd) {
|
||||
await fs.fsync(fd.fd)
|
||||
}
|
||||
|
||||
async writeBlankRange(fd, offset, blankLength) {
|
||||
if (this._canFallocate) {
|
||||
await fAllocateSyscall(fd.fd, FALLOC_FL_ZERO_RANGE, offset, blankLength)
|
||||
|
||||
Reference in New Issue
Block a user