From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: (qmail 29702 invoked from network); 12 Mar 2020 07:43:08 -0000 Received-SPF: pass (minnie.tuhs.org: domain of minnie.tuhs.org designates 45.79.103.53 as permitted sender) receiver=inbox.vuxu.org; client-ip=45.79.103.53 envelope-from= Received: from unknown (HELO minnie.tuhs.org) (45.79.103.53) by inbox.vuxu.org with ESMTP; 12 Mar 2020 07:43:08 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id EE19E9BD83; Thu, 12 Mar 2020 17:43:06 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 049239BB47; Thu, 12 Mar 2020 17:42:53 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="AyIa5ups"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id E4F649BB47; Thu, 12 Mar 2020 17:42:51 +1000 (AEST) Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) by minnie.tuhs.org (Postfix) with ESMTPS id 25AEE9BB46 for ; Thu, 12 Mar 2020 17:42:48 +1000 (AEST) Received: by mail-qk1-f172.google.com with SMTP id m2so4748265qka.7 for ; Thu, 12 Mar 2020 00:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=698TAUPlGjUEXt8ZP9pIm5xNFGlZh8VFu+venGqgSe0=; b=AyIa5upsIUMn7ilyl+kT0KK2ebSDx2dvqjGnxmoVSfxfbjiryZIbQj6tOpU1RQEjRf rCENwCn44c0yu3nDCk0xRrpJmnkOWUgtRoQxjLcOuA/Hl+nZTcaSzP9aamBALASH6ZhU +Jb9B+oOExcnf7TPqyRYUoZZUf3MRArBzODiWldJ6nJBV6ENq6Q1wuqCBoXHD+aCVgMm DXP+tnDzpUqNakg9M6YdfIvd/Z8L4rVQtPb6BC9TkRzbMONddCIeo9B/vhNLwJ7NZ58s GSonUwmU2zVNyGYvybPLkp/x4fxmK90TsBYGwrDorU084/KsAT0XDM174dkScaCN+crX wYng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=698TAUPlGjUEXt8ZP9pIm5xNFGlZh8VFu+venGqgSe0=; b=Hk/jn3dLrwDMIybkWXpvPpVSLfxZe8D+fnWO2qh93kqG2adwKq8VMU98TAxHA4Ojd/ u7zhN+8RNkjcf/T3xdmhXBqEHM2VVp+/uFRQ/ybVx+7IrZr/W5XiGlbvuZ8gM2p21qjm CvNse8NqhIlUQxaiKJMIRKTFrPOdh5hs+hLxpPKHQqij0tRUvxzJcKXsZO2R9EALZDxv WMfKKAO7Ar7JqHkHVUksdH2vue1277TWEs430M+7BYiP3vBDu0pt+shEA4iSwTS4LaNN cMX4Av+T99INGl6fzd4zLz4crOISZH1ovMSy33mcCXveTQU6C7VM44p9X0uEKjUpaAm4 ixyQ== X-Gm-Message-State: ANhLgQ1dvhxtUjY2nVO84vsThE+2MNb3AF0x5Hxs7J4gSVoB3AFTl1sz S0mgVqvvLbOjBXrm8FqMawPh0S9UNdvIkQKnKaIs1KZK X-Google-Smtp-Source: ADFU+vvj43E6SSjavRdO4y+aLD5Kp54FCnMj5JEY23+gauRXQdp6+rx0BO9QZH7oNihYP9D672aXx9ovoD3bA2ApOKo= X-Received: by 2002:a05:620a:200d:: with SMTP id c13mr5833758qka.240.1583998967035; Thu, 12 Mar 2020 00:42:47 -0700 (PDT) MIME-Version: 1.0 References: <202003031815.023IFSlD493028@darkstar.fourwinds.com> <20200311225638.GG89512@eureka.lemis.com> <20200312064807.GA68127@server.rulingia.com> In-Reply-To: From: Warner Losh Date: Thu, 12 Mar 2020 01:42:33 -0600 Message-ID: To: Steve Nickolas Content-Type: multipart/alternative; boundary="000000000000c14bb605a0a37f0a" Subject: Re: [TUHS] Command line options and complexity X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000c14bb605a0a37f0a Content-Type: text/plain; charset="UTF-8" On Thu, Mar 12, 2020, 1:37 AM Steve Nickolas wrote: > On Thu, 12 Mar 2020, Peter Jeremy wrote: > > > On 2020-Mar-11 20:53:12 -0400, Steve Nickolas 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... Warner (Of the filesystems I frequently work with, one of them does actually > support sparseness (ProDOS).) > > -uso. > --000000000000c14bb605a0a37f0a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Mar 12, 2020, 1:37 AM Steve Nickolas <usotsuki@buric.co> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">On Thu, 12 Mar 2020, Peter Jeremy wrote:

> On 2020-Mar-11 20:53:12 -0400, Steve Nickolas <usotsuki@buric.co= > wrote:
>
>> I felt -s was a redundant "kindasorta -l".
>
> Except they are reporting completely different things - consider spars= e
> files or filesystems (like ZFS) that support compression.

I was under the impression that -s simply showed the file size divided by <= br> 512 and didn't account for sparseness or compression.
<= /div>

Stat returns two v= alues. The offset of the last byte and the number of blocks allocated to th= e file. Useful if you have a sparse file too...

=
Warner=C2=A0

(Of the filesystems I frequently work with, one of them does actually
support sparseness (ProDOS).)

-uso.
--000000000000c14bb605a0a37f0a--