On 10/31/07, Francisco J Ballesteros <[EMAIL PROTECTED]> wrote:
>
> while hunting yet another bug in the octopus, I´ve been thinking that
> one problem that we have in general, in Plan 9,
>  is that there are files that behave like files, and files that
> do not.
>
> For example, append only files do not, offsets are ignored on writes.
> ctl files are not, either. You write a ctl string, and reading the file 
> reports
> something else. Clone files are different files, each time they are open.
>
> This is a problem when (like we do in the octopus) you try to cache files.
> But it´s also a problem for things like tar and to whoever tries to use the
> file as a plain one.
>
> Why don´t add a QTCTL bit to Qid.type?
> It would mean "this file does not behave like a regular file, do not cache and
> handle with care).
>

IIRC, qid.version == 0 is used to mark synthetics (like ctl) for the
purposes of being marked as uncacheable and should be handled with
care.

          -eric

Reply via email to