Open michalfita opened 2 years ago
I agree. We should make RootFs cloneable. Simply adding #[derive(Clone)]
should work.
Just letting you know that according to clone(2)'s man page, mount points are controlled through another flag CLONE_NEWNS
despite Kerla maintains them in RootFs
. We'll need to isolate the mount_points
field some day but for now, I think we don't need to support the flag unless we support running something like Docker.
Yes, @nuta - all flags related to namespaces are for now excluded from my attempts, namespaces are huge topic related to contenerization.
At the moment
Process::fork()
seem to clone theArc<RootFs>
instead of content of theRootFs
itself, what leads to sharedRootFs
between processes, not independent file system states.Found during work on #88 and belongs to
Multithreading
milestone (I can't add myself).More details in the flags mask of
clone(2)
, scroll down toCLONE_FS
. I haven't checked yet how it's implemented in Linux Kernel.