9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: tlaronde@polynum.com
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] du vs. ls: duplication or not?
Date: Sat, 14 Jan 2012 09:01:06 +0100	[thread overview]
Message-ID: <20120114080106.GA807@polynum.com> (raw)

This is a slightly different point of view from the thread my blunders
have started.

du(1) stands for Disk Usage. But does this, with the "historical" use,
has any real sense now, with a namespace that can be, not only built by
presenting a same file via different paths, but a combination of local
storage (including memory one...) and remote storage?

Furthermore, even for an Unix du(1), if the underlying filesystem shares
common blocks, the count will be wrong. So Unix du(1) seems more
accurate only when it is used on "old" technology.

So if du(1) should stand for Disk Usage, it should tell what disk place
would be needed to _store_ "locally" the files. And this depends
on a lot of things: deduplication of blocks? If one uses a FAT, it
will need the total amount displayed etc.

So, in fact, since there is no real and immediate answer, and keeping in
mind the principle: don't duplicate fonctionnality, wouldn't it be
better to have a 'ls -R' (récursive listing) and no du(1) at all on
Plan9?

This is not a proposal or whatever. But, say, a semantical and
engineering question. And BTW, this is not a critic of what has been and
is done on Plan9. (I finally consider that du(1) does what it promises
in the man page; the "lack" is just a one line caveat that du(1) can not
answer a fuzzy question.)
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



             reply	other threads:[~2012-01-14  8:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-14  8:01 tlaronde [this message]
2012-01-14  9:20 ` Charles Forsyth
2012-01-15 16:18   ` tlaronde
2012-01-15 21:17     ` erik quanstrom
2012-01-16 11:46       ` tlaronde
2012-01-16 16:13         ` Joel C. Salomon
2012-01-16 17:43           ` tlaronde
2012-01-16 18:06             ` erik quanstrom
2012-01-14  9:45 ` David du Colombier
2012-01-14 13:23 ` erik quanstrom
2012-01-16  7:39 arnold
2012-01-16 11:55 ` tlaronde
2012-01-16 13:21   ` erik quanstrom
2012-01-16 13:24 ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120114080106.GA807@polynum.com \
    --to=tlaronde@polynum.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).