#6285: Implement posix_fallocate() ---------------------------+------------------------------------------------ Reporter: korli | Owner: nobody Type: enhancement | Status: new Priority: low | Milestone: R1 Component: System/POSIX | Version: R1/alpha2 Resolution: | Keywords: Blocked By: | Has a Patch: 0 Platform: All | Blocking: ---------------------------+------------------------------------------------ Comment (by axeld): Replying to [comment:6 bonefish]: > Then the function wouldn't make much sense. The whole point is that after a successful call of the function, writes cannot fail due to lack of disk space. If the file system can't ensure that, it has to fail, returning a suitable error code (`ENOSYS` or `ENOTSUP`). It's filed under realtime extensions, so I guess it's purpose is not only to ensure there is enough space left (you can always at least check if there is enough space, and you could always just enlarge the file before writing it if you actually know its size beforehand), but also to make sure there is no time wasted making space for it (to be able to guarantee a certain drive throughput). -- Ticket URL: <http://dev.haiku-os.org/ticket/6285#comment:7> Haiku <http://dev.haiku-os.org> Haiku - the operating system.