]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
rrd_open: Ignore EINVAL from posix_fallocate() 1085/head
authorNiclas Zeising <zeising@daemonic.se>
Sun, 14 Jun 2020 09:31:33 +0000 (11:31 +0200)
committerNiclas Zeising <zeising@daemonic.se>
Sun, 14 Jun 2020 09:39:15 +0000 (11:39 +0200)
commit8829fa758f3e585f20094cff69b32489f4cce3e7
treef36e5221bab553f9d53396e53f44a4f5e01c2f06
parent42f6d2d970d12db22335bcc4db1fdaf6a069eccc
rrd_open: Ignore EINVAL from posix_fallocate()

ZFS on FreeBSD (at least) does not support posix_fallocate(),
returning EINVAL instead.  Ignore this error and continue normally.
Without this change, it is not possible to resize rrd files on ZFS.

This fixes #1082

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
src/rrd_open.c