From: "Theodore Ts'o" <tytso@mit.edu>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Anand Avati <anand.avati@gmail.com>,
Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>,
sandeen@redhat.com, linux-nfs@vger.kernel.org,
linux-ext4@vger.kernel.org, gluster-devel@nongnu.org
Subject: Re: [Gluster-devel] regressions due to 64-bit ext4 directory cookies
Date: Wed, 13 Feb 2013 17:47:20 -0500 [thread overview]
Message-ID: <20130213224720.GE5938@thunk.org> (raw)
In-Reply-To: <20130213224141.GU14195@fieldses.org>
On Wed, Feb 13, 2013 at 05:41:41PM -0500, J. Bruce Fields wrote:
> > What if we have an ioctl or a process personality flag where a broken
> > application can tell the file system "I'm broken, please give me a
> > degraded telldir/seekdir cookie"? That way we don't penalize programs
> > that are doing the right thing, while providing some accomodation for
> > programs who are abusing the telldir cookie.
>
> Yeah, if there's a simple way to do that, maybe it would be worth it.
Doing this as an ioctl which gets called right after opendir, i.e
(ignoring error checking):
DIR *dir = opendir("/foo/bar/baz");
ioctl(dirfd(dir), EXT4_IOC_DEGRADED_READDIR, 1);
...
should be quite easy. It would be a very ext3/4 specific thing,
though.
It would be more work to get something in as a process personality
flag, mostly due to the politics of assiging a bit out of the
bitfield.
- Ted
next prev parent reply other threads:[~2013-02-13 22:47 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20130212202841.GC10267@fieldses.org>
[not found] ` <20130213040003.GB2614@thunk.org>
[not found] ` <20130213133131.GE14195@fieldses.org>
[not found] ` <20130213151455.GB17431@thunk.org>
[not found] ` <20130213151953.GJ14195@fieldses.org>
[not found] ` <20130213153654.GC17431@thunk.org>
2013-02-13 16:20 ` regressions due to 64-bit ext4 directory cookies J. Bruce Fields
2013-02-13 16:43 ` Myklebust, Trond
2013-02-13 21:33 ` J. Bruce Fields
2013-02-14 3:59 ` Myklebust, Trond
2013-02-14 5:45 ` Dave Chinner
2013-02-13 21:21 ` Anand Avati
2013-02-13 22:20 ` [Gluster-devel] " Theodore Ts'o
2013-02-13 22:41 ` J. Bruce Fields
2013-02-13 22:47 ` Theodore Ts'o [this message]
[not found] ` <20130213224720.GE5938-AKGzg7BKzIDYtjvyW6yDsg@public.gmane.org>
2013-02-13 22:57 ` Anand Avati
2013-02-13 23:05 ` [Gluster-devel] " J. Bruce Fields
2013-02-13 23:44 ` Theodore Ts'o
[not found] ` <20130213234430.GF5938-AKGzg7BKzIDYtjvyW6yDsg@public.gmane.org>
2013-02-14 0:05 ` Anand Avati
2013-02-14 21:47 ` [Gluster-devel] " J. Bruce Fields
2013-03-26 15:23 ` Bernd Schubert
2013-03-26 15:48 ` Eric Sandeen
2013-03-28 14:07 ` Theodore Ts'o
2013-03-28 16:26 ` Eric Sandeen
2013-03-28 17:52 ` Zach Brown
[not found] ` <20130328175205.GD16651-fypN+1c5dIyjpB87vu3CluTW4wlIGRCZ@public.gmane.org>
2013-03-28 18:05 ` Anand Avati
2013-03-28 18:31 ` [Gluster-devel] " J. Bruce Fields
2013-03-28 18:49 ` Anand Avati
2013-03-28 19:43 ` [Gluster-devel] " Jeff Darcy
2013-03-28 22:14 ` Anand Avati
[not found] ` <CAFboF2xkvXx9YFYxBXupwg=s=3MaeQYm2KK2m8MFtEBPsxwQ7Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-28 22:20 ` Anand Avati
2013-02-14 21:46 ` [Gluster-devel] " J. Bruce Fields
2013-02-14 6:10 ` Dave Chinner
2013-02-14 22:01 ` J. Bruce Fields
2013-02-15 2:27 ` Dave Chinner
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=20130213224720.GE5938@thunk.org \
--to=tytso@mit.edu \
--cc=anand.avati@gmail.com \
--cc=bernd.schubert@itwm.fraunhofer.de \
--cc=bfields@fieldses.org \
--cc=gluster-devel@nongnu.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=sandeen@redhat.com \
/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).