Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp535386pxb; Tue, 9 Feb 2021 06:40:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSttvGjCmzAxGG8Exvbm+vfIQGVus9SMJ1BlNdozRyqVGXuQJPOKZzWK89nBoq6Eb3Ul58 X-Received: by 2002:a05:6402:3069:: with SMTP id bs9mr21806327edb.151.1612881631937; Tue, 09 Feb 2021 06:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612881631; cv=none; d=google.com; s=arc-20160816; b=bKDE1ecV9jvypjtRuoz66r5/UY91NsiQDBSgn5KevUJgCVXMk92JNEkz6kaEk1ixlc hMZUlRgm7kL7kxKIlmdMxow7JmGlTSxNLS7A9aYKbFlnF0uUYzeLMFryLumHN+7tow9l axHjbvGvOl9dWs1vWcQ/9TsQw4izfbPT3BxYDpC5vpLvVC1SWZs6m38t4zquclkGq91D tdKef+HXGtwjNHSvJ9EZTbuH5l1xKv8mgHTkUIHlvZWEYABVc8vpSW2zp2SUuJqxLigI 0IJkTXrV5dEZLvSNNjGwTT6P2Jg5uHMhYh1qw8ATsOq/h8G1X1bpyPs68CYGYgijaJPC gJJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=sikPOKcdnlBfTNmHYHh6wIXmkTxqmJJDSwen+ZHT9aA=; b=NZQmvQ9uELTqHb3AciTnhpw5Rgp9y5lRYKMeFS48sqMmaPS+T/sU6d8/oNvM0lvn1R 7AKbT7mo2v6Smrf9BLgHCk0pT/w8QP+dsT2QL/GVPJE2/fI/8/AAZDFqp2XZuiePa8qG XlhlHUTGxDpUXOFCqBg7pvzC8YkupBBjw2ci3K7/v6VWG2kcwnijsi41ydVB0saEFL0/ FHg0q2q8JSNn+sLx/6CWllpcggSua/lpDO/Hofgnwv6JtOV2uaxCCqq+6CbFIN+opPKs TuRhO0QiaikgpOH8Qc8KP8sC/6wpLaI/ECetdmXM8L0A3B4nX10UyzWhZP93ulK6OMft YtCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si13723867edq.184.2021.02.09.06.40.08; Tue, 09 Feb 2021 06:40:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbhBIOhf convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 Feb 2021 09:37:35 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:41548 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232155AbhBIOgm (ORCPT ); Tue, 9 Feb 2021 09:36:42 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 6B886608A38A; Tue, 9 Feb 2021 15:35:58 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 8Vwy9HmKlMkY; Tue, 9 Feb 2021 15:35:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0B252605B49C; Tue, 9 Feb 2021 15:35:58 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BlL2HfhYicrX; Tue, 9 Feb 2021 15:35:57 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id D535B608A38A; Tue, 9 Feb 2021 15:35:57 +0100 (CET) Date: Tue, 9 Feb 2021 15:35:57 +0100 (CET) From: Richard Weinberger To: Miklos Szeredi Cc: Miquel Raynal , Vignesh Raghavendra , Boris Brezillon , Ron Minnich , sven@narfation.org, linux-kernel , linux-mtd , fuse-devel Message-ID: <563952295.378372.1612881357746.JavaMail.zimbra@nod.at> In-Reply-To: References: <20210124232007.21639-1-richard@nod.at> Subject: Re: [PATCH 0/8] MUSE: Userspace backed MTD v3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF78 (Linux)/8.8.12_GA_3809) Thread-Topic: MUSE: Userspace backed MTD v3 Thread-Index: NVDMpjLzrmLV3u3YwGU4qvbOOzku6A== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miklos, ----- Ursprüngliche Mail ----- >> The core goal of MUSE is having the complexity on the userspace side and >> only a small MTD driver in kernelspace. >> While playing with different approaches I realized that FUSE offers everything >> we need. So MUSE is a little like CUSE except that it does not implement a >> bare character device but an MTD. > > Looks fine. I'm glad to hear that! > I do wonder if MUSE should go to drivers/mtd/ instead. Long term > goal would be move CUSE to drivers/char and move the transport part of > fuse into net/fuse leaving only the actual filesystems (fuse and > virtiofs) under fs/. > > But for now just moving the minimal interface needed for MUSE into a > separate header () would work, I guess. > > Do you think that would make sense? Yes, I'm all for having MUSE in drivers/mtd/. I placed MUSE initially in fs/fuse/ because CUSE was already there and muse.c includes fuse_i.h. So tried to be as little invasive as possible. >> >> Notes: >> ------ >> >> - OOB support is currently limited. Currently MUSE has no support for processing >> in- and out-band in the same MTD operation. It is good enough to make JFFS2 >> happy. This limitation is because FUSE has no support more than one variable >> length buffer in a FUSE request. >> At least I didn’t find a good way to pass more than one buffer to a request. >> Maybe FUSE folks can correct me. :-) > > If you look at fuse_do_ioctl() it does variable length input and > output at the same time. I guess you need something similar to that. I'll dig into this! Thanks, //richard