9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Roman Shaposhnick vugluskr@unicorn.math.spbu.ru
Subject: [9fans] Re: 9p question
Date: Thu,  9 Mar 2000 14:44:35 +0000	[thread overview]
Message-ID: <20000309144435.Ac5WL-Baiy38MwjWMg2kYlGA7rxCHyD13bVTqNThO1w@z> (raw)

On Thu, 9 Mar 2000 11:12:43 GMT, forsyth@caldo.demon.co.uk wrote:
>>>I can always issue as many Tstat as I would like. What wrong with
>>>letting length represent the number of directory entries  ?
>
>many interesting directories are generated on-the-fly (indeed that's the
>normal case for devices).   any size that could be
>given for any directory is at best a hint, and it is hard to see how to put
>it to any essential use.

 Just like with normal or, well, quasi-normal files. There is no any doubt
that this can be done just the same way. Or can not ?

>consequently, having to run through the generation
>code just to produce a less-than-useful size seems a bit of a waste
>of time.

 Yes, I understand your point, but my question was why the behavior is
inconsistent? I do not believe that for most files served by the file server
the size is zero, just because it seems to be so easy and natural to
fill the proper field with the file size when it is known and to put
there a special value when it is not.

>i made the extra effort in an operating system of my own,
>but i didn't find it especially worthwhile.

 It is not, especially when it is an exception, not the rule. IMHO, as always.

>it's worth noting that there are plenty of files in Plan 9 that can be read
>but have length set to zero (for much the same reason).
>the conventions are not completely consistent in practice,
>possibly caused by differing authors or changing
>priorities: compare {ls -l /dev/time} and {ls -l '#r/rtc'}.

  May be that's the answer. Different attitudes. I think this can explain
a lot. But I hope that there is a different answer. Will wait. :)

Roman.




             reply	other threads:[~2000-03-09 14:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-09 14:44 Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-03-16 14:05 presotto
2000-03-14 14:51 forsyth
2000-03-13 12:01 Roman
2000-03-13  9:28 Douglas
2000-03-11 15:00 rob
2000-03-11  9:53 Vladimir
2000-03-10 11:02 forsyth
2000-03-10  9:23 Roman
2000-03-10  9:23 David
2000-03-09 19:04 forsyth
2000-03-09 18:10 Roman
2000-03-09 18:05 Roman
2000-03-09 15:33 presotto
2000-03-09 14:21 Roman
2000-03-09 13:50 rob
2000-03-09 13:18 presotto
2000-03-09 10:50 forsyth
2000-03-09 10:39 forsyth
2000-03-09 10:02 Douglas
2000-03-09  9:26 Roman
2000-03-07  9:32 David
2000-02-28 18:07 rob

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=20000309144435.Ac5WL-Baiy38MwjWMg2kYlGA7rxCHyD13bVTqNThO1w@z \
    --to=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).