On 05/17/2012 11:27 AM, sf...@users.sourceforge.net wrote:
> Tomas M:
>> - a filesystem (any filesystem, including your /cow) can be remounted
>> readonly ONLY if there are no files open from it
>
> Right, but I'd like to add one more note.
> There exists a case that you can remounte the filesystem as readonly
> even if files are opened on it.
> If all files are opened for reading (not writing), you can do it.
>
>
>> 1) when you mount your aufs, set XINO path somewhere in tmpfs in
>> memory, instead of on your /cow filesystem
>
> Or you can use the "noxino" aufs mount option in your shutdown script.

That sounds easier to me...

Maybe something like this?

        sync
        auplink / flush
        mount -n -o remount,ro -t /

        if [ -d /cow ]
        then
                mount -n -o remount,noxino /
                mount -n -o remount,mod:/cow=ro /
                mount -n -o remount,ro /cow
                umount -n /cow  # Doesn't matter if this fails, I assume
        fi



Thanks,
Ben

-- 
Ben Greear <gree...@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Reply via email to