Re: [PATCH 0/5] hybrid union filesystem prototype

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Miklos Szeredi
Date: Friday, August 27, 2010 - 9:53 am

On Fri, 27 Aug 2010, Neil Brown wrote:

"rm -rf" complains if st_ino of a directory changes spontaneously.


Ah, right.  Another small issue is that currently unionfs accesses
inode->i_* from the underlying filesystems instead of calling
->getattr(), which will break if the underlying fs is a union with its
dummy inodes.  But that should be easy to fix.


I think it's best to leave that stuff until someone actually cares.
The "people might find it useful" argument is not strong enough to put
nontrivial effort into thinking about all the weird corner cases.


The DT_LNK check is done to filter out "." and "..".  Added comment.


I'm not fond of relying on inode->i_* members directly as unionfs
itself doesn't play by those rules.  But maybe it's OK here as
anything wanting to be an upper filesystem will be sufficiently
"normal" for this to work.

Fixed.


I think that's a matter of taste.  The 'dev_name' argument is just a
specialized option, and when that option needs a structure like your
example then IMO it's better to just move it to normal options.


As I said, I'd leave it until someone actually needs this.


That's an idea, but I'm inclined just to add some hacks to the VFS to
omit the locking if some inode flag is set.


I'm not sure if the stable directory cookie problem is important
enough.  AFAIR some ancient versions of libc relied on directory
seeking and also some weird apps might, but anything sane will not
touch that interface (and I'm hoping someday we can get rid of it for
good).

As for caching large directories, I think that's best done with the
page cache, not by permanently copying up the contents to the upper
directory.


Right, that's at the front of the todo list.


I agree completely.  I just tend to write code first and documentation
later (or as late as possibly can) so your contribution in this area
really warms my heart :)

Thanks,
Miklos
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Fri Aug 27, 12:05 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Miklos Szeredi, (Fri Aug 27, 1:47 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Fri Aug 27, 4:35 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Miklos Szeredi, (Fri Aug 27, 9:53 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Sat Aug 28, 9:42 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Miklos Szeredi, (Mon Aug 30, 3:18 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Mon Aug 30, 4:40 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Miklos Szeredi, (Mon Aug 30, 5:20 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Valerie Aurora, (Mon Aug 30, 11:38 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Mon Aug 30, 4:12 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Miklos Szeredi, (Tue Aug 31, 4:00 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Tue Aug 31, 4:24 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Kyle Moffett, (Tue Aug 31, 8:05 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Valerie Aurora, (Tue Aug 31, 12:18 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Valerie Aurora, (Tue Aug 31, 12:29 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Trond Myklebust, (Tue Aug 31, 1:19 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Valerie Aurora, (Tue Aug 31, 1:36 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Valerie Aurora, (Tue Aug 31, 6:56 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Trond Myklebust, (Tue Aug 31, 9:04 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Tue Aug 31, 9:33 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Miklos Szeredi, (Wed Sep 1, 1:11 pm)
Re: [PATCH 0/5] hybrid union filesystem prototype, Jan Engelhardt, (Thu Sep 2, 6:15 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Neil Brown, (Thu Sep 2, 6:32 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Jan Engelhardt, (Thu Sep 2, 7:25 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Miklos Szeredi, (Thu Sep 2, 7:28 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Jan Engelhardt, (Thu Sep 23, 6:18 am)
Re: [PATCH 0/5] hybrid union filesystem prototype, Valerie Aurora, (Thu Sep 23, 12:22 pm)