Re: [RFC][PATCH 2/14] Add a new mount flag (MNT_UNION) for union mount

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Van Hensbergen
Date: Tuesday, May 15, 2007 - 5:06 am

On 5/15/07, Bharata B Rao <bharata@linux.vnet.ibm.com> wrote:

I'd imagine there is a third potential option, which I'll admit strays
a bit from the conventional UNIX semantic.  If only one layer is
marked as writable, then any changes (including delete) only effect
that layer.  I could imagine this would be useful in situations like
overlaying a sandbox on an otherwise read-only source code tree (you
might want to just get rid of a modification by removing your file and
have it replaced by the original underlying source).

I suppose a further extension would be to have multiple layers marked
as mutable and functions such as delete would effect all mutable
layers, but functions like create would only affect the top mutable
layer.

As an aside, perhaps it would be useful to mark the mutable layer at
mount time (instead of having it always be the top layer).  Again this
could lead to some optional non-conventional file system semantics,
but its proven useful in Plan 9 union mount semantics and it seems a
fairly trivial extension to what you currently have.

                     -eric
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 0/14] VFS based Union Mount(v1), Bharata B Rao, (Mon May 14, 2:37 am)
[RFC][PATCH 1/14] Add union mount documentation, Bharata B Rao, (Mon May 14, 2:38 am)
[RFC][PATCH 3/14] Add the whiteout file type, Bharata B Rao, (Mon May 14, 2:39 am)
[RFC][PATCH 4/14] Add config options for union mount, Bharata B Rao, (Mon May 14, 2:40 am)
[RFC][PATCH 5/14] Introduce union stack, Bharata B Rao, (Mon May 14, 2:40 am)
[RFC][PATCH 6/14] Union-mount dentry reference counting, Bharata B Rao, (Mon May 14, 2:41 am)
[RFC][PATCH 7/14] Union-mount mounting, Bharata B Rao, (Mon May 14, 2:41 am)
[RFC][PATCH 8/14] Union-mount lookup, Bharata B Rao, (Mon May 14, 2:42 am)
[RFC][PATCH 9/14] Union-mount readdir, Bharata B Rao, (Mon May 14, 2:42 am)
[RFC][PATCH 11/14] VFS whiteout handling, Bharata B Rao, (Mon May 14, 2:43 am)
[RFC][PATCH 12/14] ext2 whiteout support, Bharata B Rao, (Mon May 14, 2:44 am)
[RFC][PATCH 13/14] ext3 whiteout support, Bharata B Rao, (Mon May 14, 2:44 am)
[RFC][PATCH 14/14] tmpfs whiteout support, Bharata B Rao, (Mon May 14, 2:45 am)
Re: [RFC][PATCH 9/14] Union-mount readdir, Carsten Otte, (Mon May 14, 3:43 am)
Re: [RFC][PATCH 9/14] Union-mount readdir, Bharata B Rao, (Mon May 14, 4:15 am)
Re: [RFC][PATCH 14/14] tmpfs whiteout support, Hugh Dickins, (Mon May 14, 9:13 am)
Re: [RFC][PATCH 14/14] tmpfs whiteout support, Jan Blunck, (Mon May 14, 12:20 pm)
Re: [RFC][PATCH 14/14] tmpfs whiteout support, Hugh Dickins, (Mon May 14, 12:35 pm)
Re: [RFC][PATCH 13/14] ext3 whiteout support, Badari Pulavarty, (Mon May 14, 1:16 pm)
Re: [RFC][PATCH 13/14] ext3 whiteout support, Andreas Dilger, (Mon May 14, 1:17 pm)
Re: [RFC][PATCH 5/14] Introduce union stack, Badari Pulavarty, (Mon May 14, 1:23 pm)
Re: [RFC][PATCH 13/14] ext3 whiteout support, Jan Blunck, (Mon May 14, 1:35 pm)
Re: [RFC][PATCH 3/14] Add the whiteout file type, Jan Engelhardt, (Mon May 14, 1:39 pm)
Re: [RFC][PATCH 5/14] Introduce union stack, Jan Engelhardt, (Mon May 14, 1:48 pm)
Re: [RFC][PATCH 5/14] Introduce union stack, Jan Engelhardt, (Mon May 14, 1:51 pm)
Re: [RFC][PATCH 5/14] Introduce union stack, Badari Pulavarty, (Mon May 14, 3:40 pm)
Re: [RFC][PATCH 3/14] Add the whiteout file type, Jan Blunck, (Mon May 14, 11:00 pm)
Re: [RFC][PATCH 13/14] ext3 whiteout support, Bharata B Rao, (Mon May 14, 11:26 pm)
Re: [RFC][PATCH 5/14] Introduce union stack, Bharata B Rao, (Mon May 14, 11:28 pm)
Re: [RFC][PATCH 5/14] Introduce union stack, Jan Blunck, (Tue May 15, 12:19 am)
Re: [RFC][PATCH 7/14] Union-mount mounting, Jan Engelhardt, (Tue May 15, 12:29 am)
Re: [RFC][PATCH 8/14] Union-mount lookup, Jan Engelhardt, (Tue May 15, 12:57 am)
Re: [RFC][PATCH 13/14] ext3 whiteout support, Jan Blunck, (Tue May 15, 1:31 am)
Re: [RFC][PATCH 2/14] Add a new mount flag (MNT_UNION) for ..., Eric Van Hensbergen, (Tue May 15, 5:06 am)
Re: [RFC][PATCH 8/14] Union-mount lookup, Trond Myklebust, (Tue May 15, 7:00 am)
Re: [RFC][PATCH 13/14] ext3 whiteout support, Theodore Tso, (Tue May 15, 7:28 am)
Re: [RFC][PATCH 7/14] Union-mount mounting, Bharata B Rao, (Tue May 15, 10:04 pm)
Re: [RFC][PATCH 8/14] Union-mount lookup, Bharata B Rao, (Tue May 15, 10:08 pm)
Re: [RFC][PATCH 11/14] VFS whiteout handling, Jan Engelhardt, (Wed May 16, 1:06 am)
Re: [RFC][PATCH 12/14] ext2 whiteout support, Jan Engelhardt, (Wed May 16, 1:07 am)
Re: [RFC][PATCH 8/14] Union-mount lookup, Jan Engelhardt, (Wed May 16, 12:28 pm)
Re: [RFC][PATCH 8/14] Union-mount lookup, Serge E. Hallyn, (Wed May 16, 1:06 pm)
Re: [RFC][PATCH 8/14] Union-mount lookup, Bharata B Rao, (Fri May 18, 4:05 am)
Re: [RFC][PATCH 5/14] Introduce union stack, Paul Dickson, (Sat May 19, 3:18 am)
Re: [RFC][PATCH 5/14] Introduce union stack, Jan Engelhardt, (Tue May 22, 9:35 am)
Re: [RFC][PATCH 5/14] Introduce union stack, Serge E. Hallyn, (Wed May 23, 6:25 am)