LWN: Comments on "Private loop devices with loopfs" https://lwn.net/Articles/819625/ This is a special feed containing comments posted to the individual LWN article titled "Private loop devices with loopfs". en-us Tue, 04 Nov 2025 02:36:13 +0000 Tue, 04 Nov 2025 02:36:13 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Private loop devices with loopfs https://lwn.net/Articles/910328/ https://lwn.net/Articles/910328/ hallyn <div class="FormattedComment"> (years late, but referencing even longer timelines)<br> <p> Indeed Cellrox implemented device namespaces for android phones which, for instance, virtualized the display so that at any time one android container would have the real display while the other had a null display. See <a href="https://lwn.net/Articles/564854/">https://lwn.net/Articles/564854/</a> for instance from 2013 :)<br> </div> Tue, 04 Oct 2022 18:50:06 +0000 Private loop devices with loopfs https://lwn.net/Articles/820662/ https://lwn.net/Articles/820662/ Kamilion <div class="FormattedComment"> Is it possible to loopback mount a file that grows yet?<br> I still can't believe supporting the DMG-like behavior of OSX is so difficult.<br> </div> Fri, 15 May 2020 19:37:59 +0000 Private loop devices with loopfs https://lwn.net/Articles/820481/ https://lwn.net/Articles/820481/ rwmj <div class="FormattedComment"> This problem of separate "/dev spaces" must arise in other contexts too surely. TTYs? Non-loop block devices? I'm surprised that this problem hasn't already been solved more generically for any /dev subset.<br> </div> Thu, 14 May 2020 10:28:12 +0000 Private loop devices with loopfs https://lwn.net/Articles/820458/ https://lwn.net/Articles/820458/ samuelkarp Docker's devicemapper-based storage driver can be backed by a <a href="https://docs.docker.com/storage/storagedriver/device-mapper-driver/#configure-loop-lvm-mode-for-testing">loopback device</a>. Thu, 14 May 2020 04:35:20 +0000 Private loop devices with loopfs https://lwn.net/Articles/820270/ https://lwn.net/Articles/820270/ jezuch <div class="FormattedComment"> It may be a silly question, seeing how nobody mentioned it before, which probably means this is very obvious, but why not a loop device namespace? Wouldn't it be more consistent with the rest of the system?<br> </div> Tue, 12 May 2020 05:36:32 +0000 Private loop devices with loopfs https://lwn.net/Articles/820209/ https://lwn.net/Articles/820209/ ncultra <div class="FormattedComment"> I feel Brauner's response to Hellwig's un-artful and wrong criticism was positive, to-the-point, and convincing. It is a great example of how to deal with what is essentially bullying on lkml or its component lists. I also agree with Brauner that this patch set fulfills more than one needed use case.<br> </div> Mon, 11 May 2020 16:29:22 +0000 Private loop devices with loopfs https://lwn.net/Articles/820128/ https://lwn.net/Articles/820128/ maxfragg <div class="FormattedComment"> My answer would rather be a "no because of security/availability", by design FUSE allows to block the Kernel, which is a good reason not to use it in any true multi-user env.<br> </div> Mon, 11 May 2020 06:53:53 +0000 Hidden devices https://lwn.net/Articles/820117/ https://lwn.net/Articles/820117/ simcop2387 <div class="FormattedComment"> A quick glance didn't seem to indicate it right away, but does anyone know if this mode works with raw disk images? in particular ones that are partitioned (GPT, MBR, etc). With the normal loopback devices you can tell the kernel to read the partition table from it (losetup -P in particular) and then use that to mount a given partition inside the image without having to do any offset, surgery, or other calculations to do it manually<br> </div> Sun, 10 May 2020 22:20:52 +0000 Private loop devices with loopfs https://lwn.net/Articles/820047/ https://lwn.net/Articles/820047/ edomaur <div class="FormattedComment"> Multi user, probably as in "each layer of the fs can be freely read from any running container without security problems" ?<br> </div> Sat, 09 May 2020 06:01:38 +0000 Private loop devices with loopfs https://lwn.net/Articles/820013/ https://lwn.net/Articles/820013/ dtlin <div class="FormattedComment"> <a href="https://www.sourceware.org/lvm2/wiki/DMLoop">https://www.sourceware.org/lvm2/wiki/DMLoop</a> existed but doesn't look like it was completed or upstreamed.<br> </div> Fri, 08 May 2020 19:07:41 +0000 Private loop devices with loopfs https://lwn.net/Articles/819934/ https://lwn.net/Articles/819934/ Sesse <div class="FormattedComment"> dm devices are virtual block devices where the blocks are mapped to other block devices (well, not necessarily directly; they typically go through a module of some sort to add logic). Loopback devices are virtual block devices where the blocks are mapped to a file; think mounting an ISO file as if it were a CD-ROM.<br> <p> I guess in theory, you could create a loop backend for dm? But they are separate.<br> </div> Fri, 08 May 2020 14:36:34 +0000 Private loop devices with loopfs https://lwn.net/Articles/819931/ https://lwn.net/Articles/819931/ corbet Loop devices predate the device mapper by a long time and are a separate thing. Fri, 08 May 2020 13:47:54 +0000 Private loop devices with loopfs https://lwn.net/Articles/819919/ https://lwn.net/Articles/819919/ theonewolf <div class="FormattedComment"> Could you elaborate by what you mean with "multi user" and "performant"?<br> <p> Also, do you have a link describing the seL4 work?<br> </div> Fri, 08 May 2020 12:17:38 +0000 Private loop devices with loopfs https://lwn.net/Articles/819909/ https://lwn.net/Articles/819909/ scientes <div class="FormattedComment"> Nobody has managed to make a performant secure multi-user filesystem yet. seL4 people made a first attempt which was not successful.<br> </div> Fri, 08 May 2020 08:41:39 +0000 Private loop devices with loopfs https://lwn.net/Articles/819899/ https://lwn.net/Articles/819899/ pabs <div class="FormattedComment"> Are loop devices part of the device mapper infrastructure or separate to it?<br> </div> Fri, 08 May 2020 04:44:35 +0000 Private loop devices with loopfs https://lwn.net/Articles/819845/ https://lwn.net/Articles/819845/ NYKevin <div class="FormattedComment"> The Chromium OS docs have this line:<br> <p> <font class="QuotedText">&gt; If you have a use case that wouldn't be solved by supporting FUSE, please file a bug for us.</font><br> <p> This does somewhat raise the question of whether FUSE is already an adequate replacement for loop devices in the context of containers. I imagine the answer is "No, because performance," but I would be very interested in seeing actual load tests and experimental results, if any exist.<br> </div> Thu, 07 May 2020 19:35:58 +0000 Hidden devices https://lwn.net/Articles/819831/ https://lwn.net/Articles/819831/ corbet There is a provision for creating detached mounts directly with the new API, yes. We sort of skipped over that in the article, but probably should not have. The changelog to <a href="https://lwn.net/ml/linux-kernel/20200424162052.441452-3-christian.brauner@ubuntu.com/">this patch</a> describes it briefly. Thu, 07 May 2020 18:19:54 +0000 Private loop devices with loopfs https://lwn.net/Articles/819830/ https://lwn.net/Articles/819830/ josh <div class="FormattedComment"> Legacy applications aside, I wonder if loop-control could just have an ioctl that returns a new file descriptor for a loopback device, and then the new mount API could support passing that file descriptor in to mount it, without having to give it a "loopN" device name.<br> </div> Thu, 07 May 2020 18:12:51 +0000