From: Hans Reiser <reiser@namesys.com>
To: David Masover <ninja@slaphack.com>
Cc: Simon Waters <simonw@zynet.net>, reiserfs-list@namesys.com
Subject: Re: Directory updates in filesystems
Date: Fri, 29 Oct 2004 13:04:46 -0700 [thread overview]
Message-ID: <4182A25E.6050808@namesys.com> (raw)
In-Reply-To: <4181D47A.9050609@slaphack.com>
David Masover wrote:
> Simon Waters wrote:
> [...]
> | If you have multiple processes simultaneously accessing a directory with
> | rename of contents (additions and removals add more fun), a simple
> | opendir/readir loop will on occasion fail to find a file that exists
> (i.e.
> | the stem part of the file name is the same) because the file has been
> | renamed, on most filesystems on most *nix like systems tested.
>
> If this is about locking not working well with NFS, why not ensure that
> the directory itself is owned by root and read-only before attempting?
> Wait -- don't answer that...
>
> | Are there any file systems that fully address this issue, or POSIX
> calls that
> | guaranteed to make an atomic readdir, without specific locking, or
> must a
> | lock be obtained on the directory to ensure that the read is
> consistent. I
> | think that locking is needed in the application if complete
> consistency is
> | required because the underlying behaviour of the OSes/filesystems is so
> | variable in this regard, but I'd be interested in understanding what
> | characteristics a filesystem would have to have to avoid this.
>
> Maybe an atomic readdir operation? Does reiser4 do atomic reads?
Only writes at this time. Will try to get the government to pay for us
to do atomic reads someday.....;-)
next prev parent reply other threads:[~2004-10-29 20:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-28 9:23 Directory updates in filesystems Simon Waters
2004-10-29 5:26 ` David Masover
2004-10-29 16:38 ` Valdis.Kletnieks
2004-10-29 20:04 ` Hans Reiser [this message]
2004-10-29 21:15 ` Hans Reiser
2004-11-01 10:32 ` Simon Waters
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=4182A25E.6050808@namesys.com \
--to=reiser@namesys.com \
--cc=ninja@slaphack.com \
--cc=reiserfs-list@namesys.com \
--cc=simonw@zynet.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.