From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kara Subject: Re: [PATCH 0/2] vfs: Report a mount r/o if the superblock is Date: Fri, 5 Apr 2013 16:06:50 +0200 Message-ID: <20130405140650.GA21852@quack.suse.cz> References: <1363277360-1947-1-git-send-email-shea@shealevy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton To: Shea Levy Return-path: Received: from cantor2.suse.de ([195.135.220.15]:60822 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161475Ab3DEOGw (ORCPT ); Fri, 5 Apr 2013 10:06:52 -0400 Content-Disposition: inline In-Reply-To: <1363277360-1947-1-git-send-email-shea@shealevy.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu 14-03-13 12:09:18, Shea Levy wrote: > By calling mount(2) with MS_REMOUNT | MS_BIND on a non-bind readonly > mountpoint, it is possible to have a readonly mount without MNT_READONLY > in its mnt_flags. Currently, /proc//mountinfo and statfs will > report such a mount as r/w, even though for all intents and purposes it > is still readonly. > > This patchset fixes show_mountinfo and statfs to report such mounts as > readonly. Andrew, I think the two patches in this thread deserve to be picked up... Honza -- Jan Kara SUSE Labs, CR