Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2011 16:37:29 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Lawrence Stewart <lastewart@swin.edu.au>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: mount -o union doesn't allow changes to sub directories?
Message-ID:  <20110323143729.GA78089@deviant.kiev.zoral.com.ua>
In-Reply-To: <4D8989A5.1020203@swin.edu.au>
References:  <4D8989A5.1020203@swin.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--bNaxTB0Vnic66+5h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 23, 2011 at 04:48:21PM +1100, Lawrence Stewart wrote:
> Hi again,
>=20
> If I run something like:
>=20
> mount -o union /dev/md0 /etc
>=20
> where md0 is a memory backed fs device, and /etc is fully populated but
> mounted RO off a CD, I can touch a new file in /etc, but can't in any
> subdir of etc (fails with "Read-only filesystem" reported).
>=20
> As far as I can tell this is a bug, but wanted to check if I'm
> misunderstanding how the "-o union" mount option is supposed to work.

No, this is how the union mount work. Union is performed only
on the mount point directory, for the names that are absent in
the directory.

--bNaxTB0Vnic66+5h
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk2KBagACgkQC3+MBN1Mb4gJPwCfU2LOeCrR3O+fmArlSLOxdHZ4
67UAoL/sMPUkLoMS7UJ5QSlxss3wMhyT
=fP+l
-----END PGP SIGNATURE-----

--bNaxTB0Vnic66+5h--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110323143729.GA78089>