xfs
[Top] [All Lists]

Re: [RFC PATCH] xfs: support for non-mmu architectures

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [RFC PATCH] xfs: support for non-mmu architectures
From: Octavian Purdila <octavian.purdila@xxxxxxxxx>
Date: Fri, 20 Nov 2015 16:26:28 +0200
Cc: Richard Weinberger <richard.weinberger@xxxxxxxxx>, xfs <xfs@xxxxxxxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oMh1CUTrMZnJ7eKhhgECX0UO4x7L5uVExLJo+pOK7qo=; b=KpAaCE9E1wCo8MZPxtIDQV3I+DQwKdJUTOZwC9cbs2C52aPkIjuMRIykdCtS37GCQF eqGG/I0Di4Mc/6vd0ONoVIsQjXH5fEw7v0d9gl6yR7HFzVGl4CF3rUhk/xKTLknK7ebB 7+IfSYcavgSxlsriHoUvgtLudVC9/fUcLveAqU6GF71vSLktuXprtU/IIEwE5d6T2Fgs /AlzY8G4O7K9t2ej4+0SOapgMj3DeF6pPGNP7nmRBcCib7YDXHRAhSkjaMRxPaml/oAg r8LcTv5es2AiPsVzCTCzNXbCFWSjyfpymP2lIDpRXVUhrbvNYpRdLe27+hwJJWhs2nbQ sJsw==
In-reply-to: <20151120005843.GP14311@dastard>
References: <1447800381-20167-1-git-send-email-octavian.purdila@xxxxxxxxx> <20151119232455.GM14311@dastard> <CAFLxGvx9x-4gnCQh7203G72Jy+EULbMnGTK=2r3ko=Yy9FB7Wg@xxxxxxxxxxxxxx> <20151120005843.GP14311@dastard>
On Fri, Nov 20, 2015 at 2:58 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> On Fri, Nov 20, 2015 at 12:54:02AM +0100, Richard Weinberger wrote:
>> On Fri, Nov 20, 2015 at 12:24 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
>> > On Wed, Nov 18, 2015 at 12:46:21AM +0200, Octavian Purdila wrote:
>> >> Naive implementation for non-mmu architectures: allocate physically
>> >> contiguous xfs buffers with alloc_pages. Terribly inefficient with
>> >> memory and fragmentation on high I/O loads but it may be good enough
>> >> for basic usage (which most non-mmu architectures will need).
>> >
>> > Can you please explain why you want to use XFS on low end, basic
>> > non-MMU devices? XFS is a high performance, enterprise/HPC level
>> > filesystem - it's not a filesystem designed for small IoT level
>> > devices - so I'm struggling to see why we'd want to expend any
>> > effort to make XFS work on such devices....
>>
>> The use case is the Linux Kernel Library:
>> https://lkml.org/lkml/2015/11/3/706
>>
>> Using LKL and fuse you can mount any kernel filesystem using fuse
>> as non-root.
>
> IOWs, because we said no to unprivileged mounts, instead the
> proposal is to linking all the kernel code into userspace so you can
> do unprivielged mounts that way?
>

LKL's goal is to make it easy for various applications to reuse Linux
kernel code instead of re-implementing it. Mounting filesystem images
is just one of the applications.

> IOWs, you get to say "it secure because it's in userspace" and leave
> us filesystem people with all the shit that comes with allowing
> users to mount random untrusted filesystem images using code that
> was never designed to allow that to happen?
>

It is already possible to mount arbitrary filesystem images in
userspace using VMs . LKL doesn't change that, it just reduces the
amount of dependencies you need to do so.

Could you expand of what burden does this use-case put on fs
developers? I am sure that, if needed, we can put restrictions in LKL
to avoid that.

<Prev in Thread] Current Thread [Next in Thread>