[Bug 276106] hexdump(1) is not able to skip on files residing on pseudo-filesystems
Date: Thu, 04 Jan 2024 00:55:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276106
Xin LI <delphij@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |delphij@FreeBSD.org
--- Comment #2 from Xin LI <delphij@FreeBSD.org> ---
(In reply to Mark Johnston from comment #1)
> It would seem better for pseudofs-based filesystems to correctly report file sizes
I think this would require a pn_fill() (when !NULL) for every pfs_getattr() and
defeat the purpose of stat() being faster than actually reading the file? Also
it would diverge from what Linux does (their /proc would have 0-sized files and
the behavior is documented, although I don't have an example of applications
expecting this behavior..)
--
You are receiving this mail because:
You are the assignee for the bug.