public override int FAllocate(ReadOnlySpan <byte> path, int mode, ulong offset, long length, ref FuseFileInfo fi, Guid fileGuid) { path = base.TransformPath(path); if (debug) { Console.WriteLine($"NeoFS::FAllocate()"); } if (fi.fh == 0) { var newFd = LibC.open(toBp(path), fi.flags); if (newFd > 0) { fi.fh = (ulong)newFd; } else { return(-LibC.errno); } } var res = LibC.fallocate((int)fi.fh, mode, (long)offset, length); if (res < 0) { return(-LibC.errno); } return((int)res); }