Created attachment 213772 [details] patch for rrdtool-1.7.2_2 rrdtool resize does not work on zfs. # rrdtool resize source.rrd 0 GROW 1 ERROR: Can't create 'resize.rrd': No error: 0 # ls -l resize.rrd -rw-r--r-- 1 root wheel 0 4月 25 15:39 resize.rrd The cause was that posix_fallocate returned EINVAL. I created a patch.
Hi! This patch belongs upstream, can you submit it there?
Hi. I have submitted. https://github.com/oetiker/rrdtool-1.x/issues/1082
A commit references this bug: Author: zeising Date: Sun Jun 14 15:22:25 UTC 2020 New revision: 538811 URL: https://svnweb.freebsd.org/changeset/ports/538811 Log: databases/rrdtool: Fix resize on ZFS Add an upstream patch that fixes resize on ZFS. Since ZFS does not support posix_fallocate(), returning EINVAL, the patch simply ignores this error from posix_fallocate(). PR: 245898 Reported by: Tomohiro Hosaka MFH: 2020Q2 Changes: head/databases/rrdtool/Makefile head/databases/rrdtool/files/patch-8829fa7.c
A commit references this bug: Author: zeising Date: Mon Jun 15 17:44:21 UTC 2020 New revision: 538923 URL: https://svnweb.freebsd.org/changeset/ports/538923 Log: MFH: r538811 databases/rrdtool: Fix resize on ZFS Add an upstream patch that fixes resize on ZFS. Since ZFS does not support posix_fallocate(), returning EINVAL, the patch simply ignores this error from posix_fallocate(). PR: 245898 Reported by: Tomohiro Hosaka Approved by: ports-secteam (joenum) Changes: _U branches/2020Q2/ branches/2020Q2/databases/rrdtool/Makefile branches/2020Q2/databases/rrdtool/files/patch-8829fa7.c