All of lore.kernel.org
 help / color / mirror / Atom feed
* Do I really need to add mount2 and umount3 syscalls for some crazy experiment
@ 2023-01-09  4:46 Anadon
  2023-01-09  7:01 ` Amir Goldstein
  2023-01-10  0:48 ` Theodore Ts'o
  0 siblings, 2 replies; 4+ messages in thread
From: Anadon @ 2023-01-09  4:46 UTC (permalink / raw)
  To: linux-fsdevel

I never post, be gentle.

I am looking into implementing a distributed RAFT filesystem for
reasons.  Before this, I want what is in effect a simple pass-through
filesystem.  Something which just takes in calls to open, read, close,
etc and forwards them to a specified mounted* filesystem.  Hopefully
through FUSE before jumping straight into kernel development.

Doing this and having files appear in two places by calling `mount()`
then calling the (potentially) userland functions to the mapped file
by changing the file path is a way to technically accomplish
something.  This has the effect of the files being accessible in two
locations.  The problems start where the underlying filesystem won't
notify my passthrough layer if there are changes made.  Since my end
goal is to have a robust consensus filesystem, having all the files
able to silently be modified in such an easy and user accessible way
is a problem.  What would be better is to have some struct with all
relevant function pointers and data accessible.  That sounds like
adding syscalls `int mount2(const char* device, ..., struct
return_fs_interface)` and `int umuont3(struct return_fs_interface)`.
Adding two new syscalls which look almost nothing like other syscalls
all in the name to break "everything is a file" in favor of
"everything is an API" is a lot.  It sounds like a fight and work I
would like to avoid.

I have looked at `fsopen(...)` as an alternative, but it still does
not meet my use case.  Another way would be to compile in every
filesystem driver but this just seems downright mad.  Is there a good
option I have overlooked?  Am I even asking in the right place?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-11  0:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09  4:46 Do I really need to add mount2 and umount3 syscalls for some crazy experiment Anadon
2023-01-09  7:01 ` Amir Goldstein
2023-01-10  0:48 ` Theodore Ts'o
2023-01-11  0:45   ` Anadon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.