some cleanup

This commit is contained in:
Nicolas Raynaud
2020-10-29 00:57:26 +01:00
parent 4b715d7d96
commit 3dee6f4247
2 changed files with 0 additions and 7 deletions

View File

@@ -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 } = {}

View File

@@ -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)