Thread View: muc.lists.freebsd.bugs
4 messages
4 total messages
Started by bugzilla-noreply
Sat, 31 Oct 2026 13:58
[Bug 300380] NFSv4.2 server: NFSv4.1 FATTR4_SPACE_USED attribute after NFSv4.2 COPY+COMMIT returns value before COPY+COMMIT
Author: bugzilla-noreply
Date: Sat, 31 Oct 2026 13:58
Date: Sat, 31 Oct 2026 13:58
40 lines
3303 bytes
3303 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300380
Bug ID: 300380
Summary: NFSv4.2 server: NFSv4.1 FATTR4_SPACE_USED attribute
after NFSv4.2 COPY+COMMIT returns value before
COPY+COMMIT
Product: Base System
Version: 16.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: roland.mainz@nrubsig.org
NFSv4.2 server: NFSv4.1 FATTR4_SPACE_USED attribute after NFSv4.2 COPY+COMMIT
returns value before COPY+COMMIT
We got several bug reports that the size accounting for sparse files reports
"weird" values when ms-nfs41-client uses a FreeBSD 16 machine as NFS server.
Quick check with wireshark shows that a normal GETATTR returns the correct
value in bytes, but after a NFSv4.2 COPY+COMMIT a GETATTR FATTR4_SPACE_USED
returns the old value *before* the COPY+COMMIT was done.
# uname -a
FreeBSD freebeastie001 16.0-CURRENT FreeBSD 16.0-CURRENT
main-n290446-0974ef03b43f GENERIC amd64
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300380] NFSv4.2 server: NFSv4.1 FATTR4_SPACE_USED attribute after NFSv4.2 COPY+COMMIT returns value before COPY+COMMIT
Author: bugzilla-noreply
Date: Sat, 31 Oct 2026 14:30
Date: Sat, 31 Oct 2026 14:30
31 lines
3116 bytes
3116 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300380 --- Comment #1 from Rick Macklem <rmacklem@FreeBSD.org> --- Were they using ZFS storage? If so, the COPY was probably done via block cloning, which means the storage use wouldn't change until one of the copies is written, I would think? (I'm not a ZFS guy.) ZFS also uses compression by default, so the space used is typically less than some would expect. All the server does is report whatever the server's exported fs reports. Whoever reported this to you should try a test locally on the server and see what happens then. I am not sure what you mean by a "normal GETATTR". One done in the same compound as the COPY+COMMIT is handled the same way as one done in another compound. -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300380] NFSv4.2 server: NFSv4.1 FATTR4_SPACE_USED attribute after NFSv4.2 COPY+COMMIT returns value before COPY+COMMIT
Author: bugzilla-noreply
Date: Sat, 31 Oct 2026 16:54
Date: Sat, 31 Oct 2026 16:54
21 lines
2754 bytes
2754 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300380 --- Comment #2 from Roland Mainz <roland.mainz@nrubsig.org> --- (In reply to Rick Macklem from comment #1) The storage filesystem is ZFS with compression=off, and /bin/stat on ZFS directly reports the correct allocated size. > I am not sure what you mean by a "normal GETATTR". Standalone GETATTR without doing a COPY in the same sequence. Basically just $ ls -l ... # -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300380] NFSv4.2 server: NFSv4.1 FATTR4_SPACE_USED attribute after NFSv4.2 COPY+COMMIT returns value before COPY+COMMIT
Author: bugzilla-noreply
Date: Sat, 31 Oct 2026 20:17
Date: Sat, 31 Oct 2026 20:17
16 lines
2657 bytes
2657 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300380
Mark Linimon <linimon@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |fs@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads