On 5/18/24 00:04, Eric Wheeler wrote:
On Fri, 17 May 2024, Hannes Reinecke wrote:
On 5/17/24 02:18, Eric Wheeler wrote:
Hello everyone,
Is there any work being done on namespaces for device-mapper targets, or
for the block layer in general?
For example, namespaces could make `dmsetup table` or `losetup -a` see
only devices mapped in that name space. I found this article from to 2013,
but it is quite old:
https://lwn.net/Articles/564854/
If you know any more recent work on the topic that I would be interested.
Thank you for help!
It is on my to-do list.
We sure should work on that one.
How you envision hooking namespaces into the block layer?
Overall idea is to inherit devices from the original namespace.
- upon creation the new namespace inherits all devices from the
original ns.
- new devices show up only in the current namespace and all
namespaces derived from it.
- Namespace teardown should remove all devices created
within this namespace.
I did a patchset once, based upon suggestion from Christian Brauner.
Let me dig it up.
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich