Re: [RFC 0/7] [RFC] cramfs: fake write support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jamie Lokier <jamie@...>
Cc: Phillip Lougher <phillip@...>, David Newall <davidn@...>, <linux-fsdevel@...>, <linux-kernel@...>, <hch@...>
Date: Sunday, June 1, 2008 - 5:49 pm

On Sunday 01 June 2008, Jamie Lokier wrote:

I can imagine a lot of unexpected effects with that. Think of e.g.
someone replacing the underlying file with a new one. Then enlarge
the file using truncate() and read from it -- suddenly you see
the old contents instead of zeroes. Probably fixable as well, but
certainly not in a nice way.

Besides, there are a many more problems with unionfs, which have
all been mentioned in the previous review cycles. Aufs doesn't
address those either AFAIK, with the exception of at least
not making additional copies in the page cache when writing to
a file.

The real solution of course are VFS based union mounts (think
'mount --union -t tmpfs none /'), but the patches for that
are not stable enough for inclusion in mainline yet.


Yes, that is similar to one of my earlier ideas as well. Christoph
managed to convince me that it's not as easy as I thought, though
I can't remember the exact arguments any more. I'll try to think
about that some more.

One of the problems is certainly the complexity involved in tmpfs
to start with, which is the reason I based the code on ramfs instead.

	Arnd <><
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC 0/7] [RFC] cramfs: fake write support, Phillip Lougher, (Sat May 31, 11:19 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, David Newall, (Sat May 31, 2:56 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Sat May 31, 4:40 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, David Newall, (Sun Jun 1, 2:02 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Jan Engelhardt, (Sun Jun 1, 5:11 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Phillip Lougher, (Sat May 31, 11:54 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Jamie Lokier, (Sun Jun 1, 8:28 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Sun Jun 1, 5:49 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Mon Jun 2, 3:12 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support , Erez Zadok, (Mon Jun 2, 11:35 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Mon Jun 2, 7:15 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Evgeniy Polyakov, (Mon Jun 2, 10:54 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Mon Jun 2, 1:42 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Mon Jun 2, 10:13 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Mon Jun 2, 11:01 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support , Erez Zadok, (Mon Jun 2, 12:37 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support , Jan Engelhardt, (Mon Jun 2, 3:17 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Bharata B Rao, (Mon Jun 2, 2:07 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support , Erez Zadok, (Sun Jun 1, 11:51 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Jamie Lokier, (Mon Jun 2, 7:07 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support , Erez Zadok, (Sun Jun 1, 11:25 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Mon Jun 2, 3:51 am)
Re: [RFC 0/7] [RFC] cramfs: fake write support , Erez Zadok, (Mon Jun 2, 2:13 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Phillip Lougher, (Mon Jun 2, 10:02 pm)
Re: [RFC 0/7] [RFC] cramfs: fake write support, Arnd Bergmann, (Sun Jun 1, 4:52 am)