[TUHS] Command line options and complexity

Warner Losh imp at bsdimp.com
Thu Mar 12 17:42:33 AEST 2020

On Thu, Mar 12, 2020, 1:37 AM Steve Nickolas <usotsuki at buric.co> wrote:

> On Thu, 12 Mar 2020, Peter Jeremy wrote:
> > On 2020-Mar-11 20:53:12 -0400, Steve Nickolas <usotsuki at buric.co> wrote:
> >
> >> I felt -s was a redundant "kindasorta -l".
> >
> > Except they are reporting completely different things - consider sparse
> > files or filesystems (like ZFS) that support compression.
> I was under the impression that -s simply showed the file size divided by
> 512 and didn't account for sparseness or compression.

Stat returns two values. The offset of the last byte and the number of
blocks allocated to the file. Useful if you have a sparse file too...


(Of the filesystems I frequently work with, one of them does actually
> support sparseness (ProDOS).)
> -uso.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200312/49922bb1/attachment.html>

More information about the TUHS mailing list