lkml.org 
[lkml]   [2004]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Filesystem with multiple mount-points
On Sun, 2 May 2004, Guennadi Liakhovetski wrote:

> Hi
Hi

>
> Disclaimer: I am not a filesystem expert, so, what's below might be
> absolute nonsense.
>
> There are systems, where it is desirable to make some partitions,
> possibly, including root, read-only, and some other, like, e.g., /var,
> /home, /lib/modules read-writable. Those writable filesystems may be quite
> small, so, putting them on separate partitions creates too much overhead
> for filesystem metadata, journals... Making those directories soft-links
> into one writable partition would work, but is not too nice.
>
> So, how about adding a multiple mount-point option to some filesystem?
> They would share metadata, journals, would be represented by several
> directory-trees, and be mountable with, e.g.

How about mounting the big volume somewhere and using -o bind to mount
some paths within it in different places of your needs ? I know that -o
bind doesnt honor -o ro yet but if you really needed maybe you can make a
patch for that, I for one would be very interested about that.
check "man mount" about more information about "bind"

Also notice that linux (starting with some 2.3.x version if I remember
well) already supports multiple mount points for a given "source" like
mount /dev/hda1 /mnt1
mount /dev/hda1 /mnt2 and so on

--
Mihai RUSU Email: dizzy@roedu.net
GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net
"Linux is obsolete" -- AST
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.040 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site