IRC log of #cubox of Sun 11 Aug 2019. All times are in CEST < Back to index

15:47 vpeter> jnettlet: Could I ask you something - because you are such a guru :). Is there some kernel module or some other kernel functionality which would expose one folder on a partition as whole partition or a drive? Something like "mount --bind".
15:48 EmilKarlson> what's the angle here, technically it does not match mostly
15:48 EmilKarlson> btrfs allows you to mount subvolumes, but you can't eg. mount them to different virtual machines safely
15:49 EmilKarlson> you can mount elsewhere and do a directory bind mount, which is mostly equally good
15:50 EmilKarlson> nfs, 9p, fuse also exist
15:51 vpeter> What I would like to achieve is to hide everything else on this partition. I can unmount original partition after mount bind but I'm just thinking if there is some better solution.
15:51 vpeter> It doesn't hurt to ask :)
15:52 EmilKarlson> you can also mount tmpfs on top of the dirs you want to hide
15:53 vpeter> True.
17:32 jnettlet> vpeter you probably want to use a fuse filesystem to do this. Something like cmdfs allows you create a virtualfs with a filtered view
18:07 vpeter> Thanks. Something to remember.