Thread View: muc.lists.freebsd.hackers
1 messages
1 total messages
Started by Jasmin Dave
Tue, 13 Oct 2026 12:26
Fwd: [Bug 299361] /bin/stat -h output is not parsable, is not scalable, lacks locking, has no option for listing data sections
Author: Jasmin Dave
Date: Tue, 13 Oct 2026 12:26
Date: Tue, 13 Oct 2026 12:26
54 lines
7598 bytes
7598 bytes
---------- Forwarded message ---------
From: <bugzilla-noreply@freebsd.org>
Date: Tue, 13 Oct 2026 at 14:25
Subject: [Bug 299361] /bin/stat -h output is not parsable, is not
scalable, lacks locking, has no option for listing data sections
To: <jasmin.dave.math@gmail.com>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299361
Bug ID: 299361
Summary: /bin/stat -h output is not parsable, is not scalable,
lacks locking, has no option for listing data sections
Product: Base System
Version: 16.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: jasmin.dave.math@gmail.com
/bin/stat -h output is not parsable, is not scalable, lacks locking, has no
option for listing data sections
Among many issues with the stat -h output is this:
- stat -h produces an endless stream of values in a single line, but standard
/bin/sh and other tools have line length limitations. Writing scripts which can
actually parse this are HARD to write, or trigger hidden limitations in tools
once the number of holes in a sparse file gets longer
- stat -h always starts at file position zero, which renders it unusable in
real world multi-PB sparse files. There should be an option to pass
startpos,endpos to limit the search, allowing scripts to work on only parts of
the file
- stat -h lacks an option to lock the file to prevent modifications by other
tools while it is looking for holes
- stat -h lacks an option to list the positions of data sections
--
You are receiving this mail because:
You reported the bug.
--
Thanks, Jasmin
--
Jasmin Dave - Math (Quaternions!), Coding, Simulations
--
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