On Fri 2017-09-15 (12:15), Peter Becker wrote: > 2017-09-15 12:01 GMT+02:00 Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx>: > > > On Fri 2017-09-15 (06:45), Andrei Borzenkov wrote: > > > >> The actual question is - do you need to mount each individual btrfs > >> subvolume when using encfs? > > > > And even worse it goes with ecryptfs: I do not know at all how to mount a > > snapshot, so that the user has access to it. > > A snapshot is simply a subvolume. > > Get the ID of the snapshot and mount it: > > btrfs subvolume list /btrfs > mount -o subvolid=<ID> /dev/<DISK> /<MOUNTPOINT_ENCRYPTED> > > Or mount the snapshot directly by path: > > mount -o subvol=/snapshots/home/2015-12-01 /<MOUNTPOINT_ENCRYPTED> > > And then mount enryptfs: > > mount.ecryptfs /<MOUNTPOINT_ENCRYPTED> /<MOUNTPOINT_DECRYPTED> This only possible by root. For a user it is not possible to have access for his own snapshots. Bad. -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/ REF:<CAEtw4r1KUQJGZkKEA+e3J=3+4a9hW+-ZBRBfTXhwYn4Ae30CCw@xxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
