* Using kernel filesystems as userland libraries
@ 2014-11-24 13:12 Nicolas George
2014-11-25 7:35 ` Clemens Ladisch
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nicolas George @ 2014-11-24 13:12 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 659 bytes --]
Hi.
With the libraries present in e2fsprogs, it is possible to open a plain file
(or any other reasonable storage) as an EXT2 filesystem and manipulate files
inside it.
Is it possible to use the implementations in the kernel to do the same thing
with any supported normal filesystem?
Obviously, it is theoretically possible, but my question is whether it has
been done in practice. I suppose it would require writing userland
replacement for the kernel APIs (memory management, access to block devices,
scheduling) and either rebuilding the kernel source as userland code or
loading the modules directly.
Regards,
--
Nicolas George
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Using kernel filesystems as userland libraries
2014-11-24 13:12 Using kernel filesystems as userland libraries Nicolas George
@ 2014-11-25 7:35 ` Clemens Ladisch
2014-11-25 7:46 ` xun ni
2014-11-25 8:34 ` Richard Weinberger
2 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2014-11-25 7:35 UTC (permalink / raw)
To: Nicolas George, linux-kernel
Nicolas George wrote:
> With the libraries present in e2fsprogs, it is possible to open a plain file
> (or any other reasonable storage) as an EXT2 filesystem and manipulate files
> inside it.
>
> Is it possible to use the implementations in the kernel to do the same thing
> with any supported normal filesystem?
mount -o loop /plain/file /where/to/mount
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Using kernel filesystems as userland libraries
2014-11-24 13:12 Using kernel filesystems as userland libraries Nicolas George
2014-11-25 7:35 ` Clemens Ladisch
@ 2014-11-25 7:46 ` xun ni
2014-11-25 8:34 ` Richard Weinberger
2 siblings, 0 replies; 4+ messages in thread
From: xun ni @ 2014-11-25 7:46 UTC (permalink / raw)
To: Nicolas George; +Cc: linux-kernel
Hi, George:
is there any reason to do this? we still need to copy files from
userspace to kernel.
Thanks,
Xun
2014-11-24 21:12 GMT+08:00 Nicolas George <george@nsup.org>:
> Hi.
>
> With the libraries present in e2fsprogs, it is possible to open a plain file
> (or any other reasonable storage) as an EXT2 filesystem and manipulate files
> inside it.
>
> Is it possible to use the implementations in the kernel to do the same thing
> with any supported normal filesystem?
>
> Obviously, it is theoretically possible, but my question is whether it has
> been done in practice. I suppose it would require writing userland
> replacement for the kernel APIs (memory management, access to block devices,
> scheduling) and either rebuilding the kernel source as userland code or
> loading the modules directly.
>
> Regards,
>
> --
> Nicolas George
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Using kernel filesystems as userland libraries
2014-11-24 13:12 Using kernel filesystems as userland libraries Nicolas George
2014-11-25 7:35 ` Clemens Ladisch
2014-11-25 7:46 ` xun ni
@ 2014-11-25 8:34 ` Richard Weinberger
2 siblings, 0 replies; 4+ messages in thread
From: Richard Weinberger @ 2014-11-25 8:34 UTC (permalink / raw)
To: Nicolas George; +Cc: LKML
On Mon, Nov 24, 2014 at 2:12 PM, Nicolas George <george@nsup.org> wrote:
> Hi.
>
> With the libraries present in e2fsprogs, it is possible to open a plain file
> (or any other reasonable storage) as an EXT2 filesystem and manipulate files
> inside it.
>
> Is it possible to use the implementations in the kernel to do the same thing
> with any supported normal filesystem?
>
> Obviously, it is theoretically possible, but my question is whether it has
> been done in practice. I suppose it would require writing userland
> replacement for the kernel APIs (memory management, access to block devices,
> scheduling) and either rebuilding the kernel source as userland code or
> loading the modules directly.
Regarding the interfaces, we have FUSE.
But there is no tool which can automagically convert kernel filesystem code
into FUSE userland code. It has to be done by hand.
For some filesystems we have already FUSE implementations.
--
Thanks,
//richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-25 8:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 13:12 Using kernel filesystems as userland libraries Nicolas George
2014-11-25 7:35 ` Clemens Ladisch
2014-11-25 7:46 ` xun ni
2014-11-25 8:34 ` Richard Weinberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox