[Bug 296381] databases/rrdtool: rrdtool resize does not work on zfs since FreeBSD 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Jun 2026 15:34:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296381

            Bug ID: 296381
           Summary: databases/rrdtool: rrdtool resize does not work on zfs
                    since FreeBSD 15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: eduardo@FreeBSD.org
          Reporter: bokutin@bokut.in
             Flags: maintainer-feedback?(eduardo@FreeBSD.org)
          Assignee: eduardo@FreeBSD.org

Created attachment 272267
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=272267&action=edit
patch

I submitted an issue in the past. bug #245898

It had been working fine until then, but after updating to FreeBSD 15, it
started showing errors.

% rrdtool resize foo.rrd 0 GROW 4764
ERROR: Can't create 'resize.rrd': No error: 0

It appears that `posix_fallocate` in FreeBSD 15 now returns `EOPNOTSUPP`
instead of `EINVAL`.
1.
https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/QZXFLC6E47UDM65GZAFDBZ2DJKIDT7N2/?sort=date
2. https://github.com/mariadb-corporation/galera/issues/685

I created a patch for origin/2026Q2, and it worked fine.

It's a very simple change, but I'd appreciate it if you could merge it.

Thanks,

-- 
You are receiving this mail because:
You are the assignee for the bug.