Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4503835imm; Mon, 18 Jun 2018 16:34:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIEKJf2IYZl748ksJuKSMGUl/avG0dtFG0MGDcXSPvKq03utl4uacx79QAO7273F0faSdRF X-Received: by 2002:a17:902:28e4:: with SMTP id f91-v6mr16389670plb.146.1529364881821; Mon, 18 Jun 2018 16:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529364881; cv=none; d=google.com; s=arc-20160816; b=E/EjRc1Z6ThIF7fgR1uFY0N+AT+6RETIB9pi4Oitfq5e4FUy5kZXwQ0Js3c0klw4mj GR+3k49XFW3q580NysnUv/ulSrG99AEergZaGIVI2DAdVcBQ8mA4SB8WEIbdu5Hhdo6N Kv4AQ3ez8IPM8pK/sPEvmekih1jT0g4yMaY7QPL9VDs8SWf0eApY/NpvASAqPDDKnwWc fSGlPEPAkDIKD45ZZrrDnIFhYg05v1xbNGo1nPW/TcxK78X6uWAmgSJ1v/rCL3rqLeTI /o3Pg+jeN6n5PUC+OrxJycJCvQ2xrvrEd8rNVlOJe5ecJTHjsxmgJ3lKIMB4jI6XeFWC rCYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=WB4MUNLS/cFJJe67Dk201C72Mmo0oPeOGQpTMf/bOKc=; b=TLM59PqZCeSfaCA5vrXUlyZpugkePC5XZOfjgYcxa5ZNFhJatNzy9Ww+tPTCDegTSS 2vaFSSPeIFgx26upQWuSJYJmfvId6Vgqn4NaOsEiH74uhxoY3xrnFTcZBsl+1VMLfmrA Xwcwmi1AWZrGu5WzWUa7Y80stsq3Q+VX/iAeSsBaDciT5JbQu/YhoxBW3GYlBvjma9au +UGnzF+Kw1Hgtg2hAwis9b4o1t6euoEd0WJXQExBClvCrm1SxHTTU0y3zTI+fBJpwC+a SV5dj7I9+T3fdx3YALaeGkzbEqsEmMktaNoGO09l7L9lwEqADBLXOTYest/g5+lRR1fX QPRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=RkvRCjlW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si13027257pgt.88.2018.06.18.16.34.27; Mon, 18 Jun 2018 16:34:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=RkvRCjlW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936974AbeFRXdu (ORCPT + 99 others); Mon, 18 Jun 2018 19:33:50 -0400 Received: from imap.thunk.org ([74.207.234.97]:55322 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934857AbeFRXds (ORCPT ); Mon, 18 Jun 2018 19:33:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WB4MUNLS/cFJJe67Dk201C72Mmo0oPeOGQpTMf/bOKc=; b=RkvRCjlW2tieXvAgaW2yqbqK2L xPr38QCh3wK5IfkB9mWd7+cYJJw/d1r3fEp21NqLTYW/zwgbb7akyC9MaWUC2YE422puRVQewM8mD kWPtTrMq8UQ9Vs3qbOGTlk5HQma53TwFq1OhYBYM9g205dW5i6tOqivSHdwQiLuGwE24=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fV3eY-0002y3-OA; Mon, 18 Jun 2018 23:33:42 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 5A9657A60A4; Mon, 18 Jun 2018 19:33:41 -0400 (EDT) Date: Mon, 18 Jun 2018 19:33:41 -0400 From: "Theodore Y. Ts'o" To: David Howells Cc: "Eric W. Biederman" , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/32] VFS: Introduce filesystem context [ver #8] Message-ID: <20180618233341.GA6931@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , David Howells , "Eric W. Biederman" , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org References: <87in6kptqt.fsf@xmission.com> <152720672288.9073.9868393448836301272.stgit@warthog.procyon.org.uk> <3949.1529353850@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3949.1529353850@warthog.procyon.org.uk> User-Agent: Mutt/1.10.0 (2018-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 09:30:50PM +0100, David Howells wrote: > > The fscontext code *requires* you to parse the parameters *before* any attempt > to access the superblock is made. Note that this will actually be a problem > for, say, ext4 which passes a text string stored in the superblock through the > parser *before* parsing the mount syscall data. Fun. > > I'm intending to deal with that particular case by having ext4 create multiple > private contexts, one filled in from the user data, and then a second one > filled in from the superblock string. These can then be validated one against > the other before the super_block struct is published. Yeah, what we're trying to do is let the options in the superblock act as defaults which then can be overridden by what the user specifies on the command line. So when you parse the user-supplied data, will there be a way to determine what was specified explicitly, versus what was implied by the defaults? I'll need that in order to be able to merge the two contexts together. - Ted