Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1523860img; Tue, 19 Mar 2019 09:24:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnCcW2Y6Vp2V9O9LBu2x+MBs160NKf47BizgNRyWXgvT65uB8LYoG7iTAZWM1q8J1jsoJM X-Received: by 2002:a17:902:bb90:: with SMTP id m16mr3013937pls.49.1553012662654; Tue, 19 Mar 2019 09:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553012662; cv=none; d=google.com; s=arc-20160816; b=Uy9ay7/KN/yZksKUIZsueyWffnlhJULnDtbRk8Ur/mpDuqxhQH+5rDBKyCjs+Uhitq DBwt+smoRrg6GPAyXHr1rUzJUivoFAojV5M+UXGT8KOqilqkI7oRV4bP0KQ8tGRVxUAO Omy8bWS47PGeKRdp++Wr/iH9byUona6Vd6QzWvXtXfhJSLL09uAXTcCO3bXx9UCNtiYZ HqVZzpApUUA5GMezW+rdSp0NJ1vM+bnMc+6BbdHn23JOa/mr5AJrr8Z7HzFCay1gz1ao VrpFpC4Tp0qjGywurJ8dqUBc6rjWTWoLNdoLCDaWfCSJgsOl7p1OyG/owsoEKFbWMmNQ 4PWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject; bh=shUcHNAA1NM8nUzUe0eMwzofepGJN9tyX+b+C1sAX7Y=; b=vktCPP6Ykr3lU0ody7Ar/D7d+Kk+RbtY8igZNQWxr7z3vPwFuq3ADy1KSNqBMsz5gI TqCLta99SK7BQQ+NtXP9VVNDPKwaTr6C/1AzoI+6qUXcudzz6stv2BhWUm/5uGxUD2ar Kt3gkCNlmaPWFrPFkLdhDeUghucFT8pN6Mt8dEjcXD24gAV1aomHSBzlGcZi1mWagMdG 8qeWcrHZyvKr77jAUohJpzqpmYf2MbGwBp4O66hI/7R5Ffe1ShsUDR/4KVBcFVGPifCb wMaHOGPn9QtveWhwL1xhBO1zAMJPeA3pqoV+28PtNb4yN5VijPyFqzQDE7ShCnOuy/GA 9Xuw== 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 u5si11787443pgi.162.2019.03.19.09.24.06; Tue, 19 Mar 2019 09:24:22 -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; 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 S1727404AbfCSQX0 (ORCPT + 99 others); Tue, 19 Mar 2019 12:23:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57344 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbfCSQXZ (ORCPT ); Tue, 19 Mar 2019 12:23:25 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9711C8763A; Tue, 19 Mar 2019 16:23:25 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-47.rdu2.redhat.com [10.10.120.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6A01C60C7F; Tue, 19 Mar 2019 16:23:23 +0000 (UTC) Subject: [RFC PATCH 0/4] fuse: Convert to fs_context From: David Howells To: miklos@szeredi.hu, viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, dhowells@redhat.com, anprice@redhat.com Date: Tue, 19 Mar 2019 16:23:23 +0000 Message-ID: <155301260319.7556.1326405089184672936.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 19 Mar 2019 16:23:25 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miklós, Here's a set of patches that convert fuse to use mount API: (1) Provide a replacement for mount_bdev() that takes an fs_context to specify the parameters. I also put a block device pointer and block device file mode into the fs_context struct for use in the sget_fc() test and set functions. (2) Improve handling of fd-type parameters. (3) Convert fuse to implement the mount API interface. (4) Move as much of the subtype parameter handling into the fuse driver as possible. These are on top of: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=mount-api-viro Thanks, David --- David Howells (4): vfs: Create fs_context-aware mount_bdev() replacement vfs: Make fs_parse() handle fs_param_is_fd-type params better fuse: Convert to mount API fuse: Move the subtype parameter into fuse fs/fs_context.c | 14 -- fs/fs_parser.c | 15 ++ fs/fuse/inode.c | 289 +++++++++++++++++++++++++------------------- fs/super.c | 111 ++++++++++++++++- include/linux/fs_context.h | 7 + 5 files changed, 291 insertions(+), 145 deletions(-)