[HEADS UP] posix_fallocate support removed from ZFS, lld affected

Andriy Gapon avg at FreeBSD.org
Tue Nov 7 18:12:25 UTC 2017

On 06/11/2017 19:26, Ian Lepore wrote:
> On Mon, 2017-11-06 at 17:40 +0200, Andriy Gapon wrote:
>> The naive and non-compliant support of posix_fallocate(2) in ZFS
>> has been removed as of r325320.  The system call now returns EINVAL
>> when used on a ZFS file.  Although the new behavior complies with the
>> standard, some consumers are not prepared to cope with it.
>> One known victim is lld prior to r325420.
> It just popped into my head... does this mean that kernels running
> r325320+ on systems using ZFS will be unable to host build jails for
> earlier versions / branches because lld will fail in the jail?

I am afraid that this is true.

> I think that will be a big problem for the ports team's package
> building process, and for anyone using poudriere.

I hope that lld is not that widely used now.
But I admit that I put the cart before the horse.
I didn't expect that posix_fallocate is used in the development toolchain and I
didn't try to check for it.

Andriy Gapon

More information about the freebsd-fs mailing list