Cygwin sparse file support: Please support fcntl(..., F_FREESP, ...)
Sebastian Feld
sebastian.n.feld@gmail.com
Sun Feb 16 15:27:00 GMT 2025
On Sat, Feb 15, 2025 at 4:15 PM Cedric Blancher via Cygwin
<cygwin@cygwin.com> wrote:
>
> Good afternoon!
>
> Could Cygwin 3.6 please support fcntl(...,F_FREESP,...) and
> cntl(...,F_FREESP64,...), as specified in
> https://docs.oracle.com/cd/E19253-01/816-5167/fcntl-2/index.html
>
> Lots of older software from Solaris, SUPER/UX, CrayOS use F_FREESP for
QNX and AIX support F_ALLOCSP and F_FREESP
> punching a hole into a file, and IMO it'll be nice if this works for
> Cygwin out of the box.
+1
Please also add F_ALLOCSP and F_ALLOCSP64 to allocate space in a file.
Like F_FREESP and F_FREESP64 it takes a struct flock/flock64, so it's
a pretty straightforward API.
Sebi
--
Sebastian Feld - IT security consultant
More information about the Cygwin
mailing list