9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] upas locking
Date: Thu, 18 Apr 2013 10:04:05 -0400	[thread overview]
Message-ID: <96ac8463d3e63c152de3bf159eb53fb6@kw.quanstro.net> (raw)
In-Reply-To: <7C2F640A-2A94-4AA1-9CE9-4E4845F0860F@lsub.org>

> Looking into, we found that in upas/common/libsys.c the
> function generating the lock file name returns always "L.mbox"
> but not .../L.<mbox file name> as it seems it should.

i think the comment above the function is important
"we use one lock per directory".  it's been a long time since
i worked on nupas, so i don't recall all the details, but
iirc, imap4d relies on having one lock per directory.

of course, nupas takes pressure off the directory lock
by using mdir format, which doesn't require a lock.  the
indicies are lock files themselves.

under what circumstaces did you find a problem?

- erik



  reply	other threads:[~2013-04-18 14:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18  9:15 Francisco J Ballesteros
2013-04-18 14:04 ` erik quanstrom [this message]
2013-04-18 14:24   ` Francisco J Ballesteros
2013-04-18 14:42     ` erik quanstrom
2013-04-18 14:51       ` Fco. J. Ballesteros
2013-04-18 15:33         ` Charles Forsyth
2013-04-18 15:43           ` lucio
2013-04-18 15:59           ` Francisco J Ballesteros
2013-04-18 16:12             ` 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=96ac8463d3e63c152de3bf159eb53fb6@kw.quanstro.net \
    --to=quanstro@quanstro.net \
    --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).