Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5814296imu; Wed, 30 Jan 2019 04:08:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN5lfyEzDwemJ0Nw1lo+OUXNrJxKOU0pXnRj2HYtj9pg5Z6r3HpFFAWktgkA15zQiCvZz2Gr X-Received: by 2002:a17:902:3283:: with SMTP id z3mr30573717plb.76.1548850081270; Wed, 30 Jan 2019 04:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548850081; cv=none; d=google.com; s=arc-20160816; b=gONObnQm/2gEX8VNJ9X3gl9/m6mz38rDdpDJUpBLR6pfXJFljbLa+qow6IFeAncWsa Sy6qJMSHxmr4nilCz6+NHElj8I8tJxM+pxT/Udsqpea8ccg3vCrWiTYQiMXC7qxNB8i3 TAOAZQO9CT4V6CPBgSmeSh8180RaD5CEFJCJ+toA//NPdDVA/Aku8HqaSnFucA2UMSpK 1r5RgJCx1/XMGt2xsZbKjTYeqQEWWsy5v9GqVapklqVY9hdjy6PWC+/53WyGbn+RHsha mSRZJNGalLGbskrAr3yDs9Mss5UQk6txxWBMD2DhiGz8Ap2EnmOvMK2G3GL6ZXpmYJOs 1Tfg== 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:message-id:subject:cc :to:from:date; bh=1tlo3EWYNWJeOZclnLOMl0qLr/iukxftiUz10mqMJhY=; b=K8fAacwkWFuIV0zm7l/Z7i3BSk96htwKiJk67lnYtFvPVbec0Uxw6JQnyFE1N7+Nb4 of8o8ApuDTjXjRKQ+XjhDO92BHxbCTkpZjklUCIw/LpsGdaTQ+eCEtCtSnIzJvDCesvm EhzByxml7l60blm8lGz5xghPQTKk3itj+k9grSmSCAduOPjtrXpOU4xv8iYoY/24OTM4 WUCDcobKqrfT8uBBF4rQaNLw4gqH08xVwlSpjHKv4HZ05m+SoSkAeDlHd4A92nKhR7ad a8gv0QUhptNuydviXxs1D7adnDWxQQjt/JO9yubCh3vNmL/2QrnF05w7DYD4h4aH476q JNDg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si1298805pgh.172.2019.01.30.04.07.45; Wed, 30 Jan 2019 04:08:01 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730631AbfA3MHB (ORCPT + 99 others); Wed, 30 Jan 2019 07:07:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48594 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727878AbfA3MHA (ORCPT ); Wed, 30 Jan 2019 07:07:00 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 02EB5C0601ED; Wed, 30 Jan 2019 12:07:00 +0000 (UTC) Received: from ws.net.home (ovpn-117-196.ams2.redhat.com [10.36.117.196]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3F7D0377B; Wed, 30 Jan 2019 12:06:57 +0000 (UTC) Date: Wed, 30 Jan 2019 13:06:54 +0100 From: Karel Zak To: "Eric W. Biederman" Cc: linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Al Viro , David Howells , Miklos Szeredi , Linus Torvalds , util-linux@vger.kernel.org, Andy Lutomirski Subject: Re: [RFD] A mount api that notices previous mounts Message-ID: <20190130120654.q5zqcexquca7u337@ws.net.home> References: <87va2716mh.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87va2716mh.fsf@xmission.com> User-Agent: NeoMutt/20180716-1023-ca4e12 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 30 Jan 2019 12:07:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 29, 2019 at 03:44:22PM -0600, Eric W. Biederman wrote: > so I am proposing we change this in the new mount api. Well, this forces me to ask what the new API is? :-) It seems that David uses fsconfig() and fsinfo() to set and get mount options, and your patch introduces fsset() and fsoptions(). IMHO differentiate between FS driver and FS instance is a good idea it makes things more extendable. The sequence number in the instance is a good example. But for me David's fsinfo() seems better that fsoptions() and fsspecifier(). I'm not sure about "all mount options as one string" From your example is pretty obvious how much energy is necessary to split and join the strings. It seems more elegant is to ask for Nth option as expected by fsinfo(). It also seems that fsinfo() is able to replace fsname() and fstype(). It would be better to extend David's fsinfo() to work with FS instance and to return specifiers. And use fsconfig() rather than fsset(). Karel -- Karel Zak http://karelzak.blogspot.com