9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: presotto@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] lnfs
Date: Tue,  1 Oct 2002 09:51:16 -0400	[thread overview]
Message-ID: <38c0a7c4dd6a3abb8ba7c2e64d63488c@plan9.bell-labs.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

I'm not sure what you mean by flush, fprint is synchronous.
I could retry the write if you like, though there's not
much likelyhood that it would work the second time if
it didn't the first, there's no lock on .longnames,
it's append only, so a failure is probably the fs or
someone having removed the file.

.longnames is also written before the file is created,
so the name should be there should you find the hashed
file when reading the dir.

However, in rreaddir, I don't reread the file while
translating the short names to long ones.  Someone
could create a file while I'm busy converting the
dir.  There's plenty of window there for someone to
sneak through.

[-- Attachment #2: Type: message/rfc822, Size: 1727 bytes --]

From: nigel@9fs.org
To: 9fans@cse.psu.edu
Subject: [9fans] lnfs
Date: Tue, 1 Oct 2002 09:18:49 +0100
Message-ID: <97967b679371324c95efff80d254b753@9fs.org>

Is it expected that lnfs can support several instances of it running
on the same file tree?

It looks that way in that it reloads the the name file before walks
and creates.

But there is no retry around the write of a new entry in newname().
So one instance might create a long named file, and fail to flush it
to .longnames.  Another instance would then not have a translation for
the base32 name it finds in the directory during a walk.

I accept that the windows are small, but I'm searching for an
explanation for some strange behaviour I saw yesterday.

             reply	other threads:[~2002-10-01 13:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 13:51 presotto [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-02  7:05 Geoff Collyer
2002-10-02  5:08 Russ Cox
2002-10-02 13:15 ` david presotto
2002-10-02  4:29 nigel
2002-10-02 13:22 ` david presotto
2002-10-01  8:18 nigel

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=38c0a7c4dd6a3abb8ba7c2e64d63488c@plan9.bell-labs.com \
    --to=presotto@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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).