[vserver] Re: vnamespace mount -o remount,ro does not make it read-only

From: Christian Jaeger <chrjae_at_gmail.com>
Date: Fri 02 Dec 2011 - 03:20:18 GMT
Message-ID: <CAEjYwfWhDjUYvBUbDQLY3gVEgB7eQAZ=dCgqLXX0fkLNWM=fpQ@mail.gmail.com>

Just when I finished the above, I had an idea:

(Mis-using the existing dir /var/lib/vservers/build64/home/chris/GIT
just because I'm too lazy to create a directory somewhere else)

tn:/etc/vservers# vnamespace -e t3 mount --bind ~chris/GIT/
/var/lib/vservers/build64/home/chris/GIT
tn:/etc/vservers# vnamespace -e t3 mount -o remount,ro
/var/lib/vservers/build64/home/chris/GIT
tn:/etc/vservers# vnamespace -e t3 mount --bind
/var/lib/vservers/build64/home/chris/GIT
/var/lib/vservers/t3/home/chris/GIT
chris@t3:~$ touch GIT/feh
touch: cannot touch `GIT/feh': Read-only file system

*good* (this also avoids the time gap with read-write access from the guest)

But I'd still like to know why the remount,ro had no effect on the
guest in the first case.

Christian.
Received on Fri Dec 2 03:20:49 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 02 Dec 2011 - 03:20:49 GMT by hypermail 2.1.8