Article View: muc.lists.freebsd.bugs
Article #84[Bug 299361] /bin/stat -h output is not parsable, is not scalable, lacks locking, has no option for listing data sections
From: bugzilla-noreply
Date: Tue, 13 Oct 2026 12:25
Date: Tue, 13 Oct 2026 12:25
44 lines
3600 bytes
3600 bytes
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 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
Technical Details
Message-ID:
<bug-299361-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 299361] /bin/stat -h output is not parsable, is not scalable, lacks locking, has no option for listing data sections Date: Tue, 13 Oct 2026 12:25:18 +0000 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-bugs@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <bug-299361-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="36818"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791894318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZnP8gsK1XUbt6yPmm56CKeOwFI5kZK+i5YDl0RWhmIc=; b=sP6r3exq2Fc4Qer5drPE7xWB62y5L2IB1dqU8F7rZb5UFV/hIgd8oQ44KZkaPqy4HO1rRg rI/6KRXRAFO59G5oe2fsoqbztMkFfVYxaAS7F3UCCb9DG4C/9HYRBww+OBHeHCw7I1DYfV ZLl4L8MQkhaxpX4xaM4P+eMa8vNWHkCpILZexBof5T8ehvQp1ejnnKIUvIwk/tqdrqCp11 sRGkWkCsV5NZkfNgIXvqKJeHmWcsarMyyCBlMthPPXu9RJNTwhPxuvxhOSlvHNtsMTEzAF qMXX7WnDurDMVqAU4nE2mnk6r9ssdpnZANvUSJ9ogsa7Js0/L4lQEc7zJP6cpA== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes