Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2012 17:15:20 +0200
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        Mikolaj Golub <trociny@freebsd.org>
Cc:        svn-src-head@freebsd.org, Kevin Lo <kevlo@FreeBSD.org>, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r230252 - head/sys/fs/tmpfs
Message-ID:  <20120124151520.GA67038@jh>
In-Reply-To: <86vco2yvrt.fsf@kopusha.home.net>
References:  <201201170125.q0H1PrlJ061058@svn.freebsd.org> <20120117171031.GA2316@a91-153-116-96.elisa-laajakaista.fi> <86obtvvr4v.fsf@kopusha.home.net> <20120122134218.GA2247@a91-153-116-96.elisa-laajakaista.fi> <86lioztzh5.fsf@kopusha.home.net> <20120123153457.GA2246@a91-153-116-96.elisa-laajakaista.fi> <86vco2yvrt.fsf@kopusha.home.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-01-23, Mikolaj Golub wrote:
>  JH> Yes, the patch below does that. I suspect that flipping the MNT_RDONLY
>  JH> flag may be enough for tmpfs but I am not sure.
> 
> I see two issues with this patch:
> 
> 1) 'mount -u -o rw /mnt' does not upgrade to rw, although it returns success.

Argh, this is another nmount(2) bug. The update mount code automatically
sets the MNT_RDONLY flag but doesn't unset it. However the string option
always gets updated causing string options and flags to get out of sync.

Flags covered by MNT_UPDATEMASK are unset automatically.

> I think when remounting ro you should call vflush(), something like below:

Right.

Thanks for looking at the patch!

-- 
Jaakko



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