Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760395AbYHFAyT (ORCPT ); Tue, 5 Aug 2008 20:54:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755261AbYHFAyD (ORCPT ); Tue, 5 Aug 2008 20:54:03 -0400 Received: from ipmail04.adl2.internode.on.net ([203.16.214.57]:32997 "EHLO ipmail04.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755063AbYHFAyA (ORCPT ); Tue, 5 Aug 2008 20:54:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj0FAHSQmEh5LAiFXWdsb2JhbACKcoY5Hp0O X-IronPort-AV: E=Sophos;i="4.31,313,1215354600"; d="scan'208";a="175099886" Date: Wed, 6 Aug 2008 10:53:54 +1000 From: Dave Chinner To: Jasper Bryant-Greene Cc: Karel Zak , Christoph Hellwig , linux-kernel@vger.kernel.org, xfs@oss.sgi.com, util-linux-ng@vger.kernel.org Subject: Re: XFS noikeep remount in 2.6.27-rc1-next-20080730 Message-ID: <20080806005354.GL21635@disturbed> Mail-Followup-To: Jasper Bryant-Greene , Karel Zak , Christoph Hellwig , linux-kernel@vger.kernel.org, xfs@oss.sgi.com, util-linux-ng@vger.kernel.org References: <1217553598.3860.16.camel@luna.unix.geek.nz> <20080801073033.GF6201@disturbed> <20080801193133.GA838@lst.de> <20080805110357.GL21873@nb.net.home> <20080805233956.GI21635@disturbed> <1217979862.2887.39.camel@luna.unix.geek.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1217979862.2887.39.camel@luna.unix.geek.nz> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2391 Lines: 55 On Wed, Aug 06, 2008 at 11:44:22AM +1200, Jasper Bryant-Greene wrote: > On Wed, 2008-08-06 at 09:39 +1000, Dave Chinner wrote: > > We're seeing the second case where mount is merging all the options in > > /etc/fstab into the options passed into the remount command. How is > > the filesystem expected to behave in these difference cases? The > > first simply changes the ro/rw status, the second potentially > > asks for the filesystem to change a bunch of other mount options > > as well, which it may not be able to do. > > > > So what is the correct behaviour? Should the filesystem *silently > > ignore* unchangable options in the remount command, or should it > > fail the remount and warn the user that certain options are not > > allowed in remount? > > (forgive me, I'm an XFS user, not an XFS developer, so this might be > ignorant) > > The filesystem presumably knows what options it was originally mounted > with. > > Thus if you take the difference of the set of options you were mounted > with, and the set of options you are now being asked to remount with, > you have the options which are being asked to change. Sure. But that does not answer my question about what to do with options that can't be changed. Options can come from more than just /etc/fstab - they can come from the mount command line itself as entered by the admin. What do we do if an option is specified that we do not support in a remount? The problem is the way mount combines command line options with options in fstab. I'm not questioning what you did - I'm asking what the expected behaviour is supposed to be so we can make it behave the same way as all the other filesystems. > If changing any of them is unsupported I would expect an error, but in > this case the result of taking the above set difference would be merely > replacing ro with rw, and thus the filesystem is presumably capable of > doing the remount. Use the full device/directory syntax for the remount command and it will do just that. The command you issued was not a "pure" remount,rw, it was silently changed by mount.... Cheers, Dave. -- Dave Chinner david@fromorbit.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/