Re: btrfs and containers

2016-03-10 Thread Tomasz Chmielewski
I have been running systemd-nspawn containers on top of a btrfs filesystem for a while now. This works great: Snapshots are a huge help to manage containers! But today I ran btrfs subvol list . *inside* a container. To my surprise I got a list of *all* subvolumes on that drive. That is basically

Re: btrfs and containers

2016-03-10 Thread Duncan
Chris Murphy posted on Thu, 10 Mar 2016 12:35:31 -0700 as excerpted: > It's a tricky problem. If you're the owner of a filesystem tree, but > something definitely not owned at all by you is buried in that tree > somewhere, to do a subvolume delete don't you have to now traverse the > entire thing

Re: btrfs and containers

2016-03-10 Thread Liu Bo
On Thu, Mar 10, 2016 at 12:35:31PM -0700, Chris Murphy wrote: > On Thu, Mar 10, 2016 at 10:04 AM, Austin S. Hemmelgarn > wrote: > > > > > The part that makes this tricky is that the list ioctl can be considered a > > potential information leak (as evidenced by the issue that started this > > thre

Re: btrfs and containers

2016-03-10 Thread Chris Murphy
On Thu, Mar 10, 2016 at 10:04 AM, Austin S. Hemmelgarn wrote: > > The part that makes this tricky is that the list ioctl can be considered a > potential information leak (as evidenced by the issue that started this > thread), so IMHO what really needs to happen is for the mount option to be > 'us

Re: btrfs and containers

2016-03-10 Thread Austin S. Hemmelgarn
On 2016-03-09 21:55, Duncan wrote: Austin S. Hemmelgarn posted on Wed, 09 Mar 2016 07:15:36 -0500 as excerpted: On 2016-03-08 16:28, Chris Murphy wrote: Yes, it's a bit peculiar I can create subvolumes and snapshot them, but can't 'btrfs sub list/show' It's an open question why the user nee

Re: btrfs and containers

2016-03-09 Thread Duncan
Austin S. Hemmelgarn posted on Wed, 09 Mar 2016 07:15:36 -0500 as excerpted: > On 2016-03-08 16:28, Chris Murphy wrote: >> Yes, it's a bit peculiar I can create subvolumes and snapshot them, but >> can't 'btrfs sub list/show' >> >> It's an open question why the user needs a subvolume, but I'm not

Re: btrfs and containers

2016-03-09 Thread Rich Freeman
On Wed, Mar 9, 2016 at 4:45 PM, Marc MERLIN wrote: > On Wed, Mar 09, 2016 at 02:21:26PM -0700, Chris Murphy wrote: >> > I have a very stripped down docker image that actually mounts portion of >> > of my root filesystem read only. >> > While it's running out of a btrfs filesystem, you can't run bt

Re: btrfs and containers

2016-03-09 Thread Marc MERLIN
On Wed, Mar 09, 2016 at 02:21:26PM -0700, Chris Murphy wrote: > > I have a very stripped down docker image that actually mounts portion of > > of my root filesystem read only. > > While it's running out of a btrfs filesystem, you can't run btrfs > > commands against it: > > 05233e5c91f0:/# btrfs fi

Re: btrfs and containers

2016-03-09 Thread Chris Murphy
On Wed, Mar 9, 2016 at 2:10 PM, Marc MERLIN wrote: > On Mon, Mar 07, 2016 at 11:55:47PM +0100, Tobias Hunger wrote: >> Hi, >> >> I have been running systemd-nspawn containers on top of a btrfs >> filesystem for a while now. >> >> This works great: Snapshots are a huge help to manage containers! >>

Re: btrfs and containers

2016-03-09 Thread Marc MERLIN
On Mon, Mar 07, 2016 at 11:55:47PM +0100, Tobias Hunger wrote: > Hi, > > I have been running systemd-nspawn containers on top of a btrfs > filesystem for a while now. > > This works great: Snapshots are a huge help to manage containers! > > But today I ran btrfs subvol list . *inside* a containe

Re: btrfs and containers

2016-03-09 Thread Austin S. Hemmelgarn
On 2016-03-08 16:28, Chris Murphy wrote: On Tue, Mar 8, 2016 at 12:58 PM, Liu Bo wrote: On Mon, Mar 07, 2016 at 04:45:09PM -0700, Chris Murphy wrote: On Mon, Mar 7, 2016 at 3:55 PM, Tobias Hunger wrote: Hi, I have been running systemd-nspawn containers on top of a btrfs filesystem for a whi

Re: btrfs and containers

2016-03-08 Thread Chris Murphy
On Tue, Mar 8, 2016 at 12:58 PM, Liu Bo wrote: > On Mon, Mar 07, 2016 at 04:45:09PM -0700, Chris Murphy wrote: >> On Mon, Mar 7, 2016 at 3:55 PM, Tobias Hunger >> wrote: >> > Hi, >> > >> > I have been running systemd-nspawn containers on top of a btrfs >> > filesystem for a while now. >> > >> >

Re: btrfs and containers

2016-03-08 Thread Liu Bo
On Mon, Mar 07, 2016 at 04:45:09PM -0700, Chris Murphy wrote: > On Mon, Mar 7, 2016 at 3:55 PM, Tobias Hunger wrote: > > Hi, > > > > I have been running systemd-nspawn containers on top of a btrfs > > filesystem for a while now. > > > > This works great: Snapshots are a huge help to manage contain

Re: btrfs and containers

2016-03-08 Thread Austin S. Hemmelgarn
On 2016-03-07 17:55, Tobias Hunger wrote: Hi, I have been running systemd-nspawn containers on top of a btrfs filesystem for a while now. This works great: Snapshots are a huge help to manage containers! But today I ran btrfs subvol list . *inside* a container. To my surprise I got a list of *

Re: btrfs and containers

2016-03-07 Thread Chris Murphy
On Mon, Mar 7, 2016 at 3:55 PM, Tobias Hunger wrote: > Hi, > > I have been running systemd-nspawn containers on top of a btrfs > filesystem for a while now. > > This works great: Snapshots are a huge help to manage containers! > > But today I ran btrfs subvol list . *inside* a container. To my > s

btrfs and containers

2016-03-07 Thread Tobias Hunger
Hi, I have been running systemd-nspawn containers on top of a btrfs filesystem for a while now. This works great: Snapshots are a huge help to manage containers! But today I ran btrfs subvol list . *inside* a container. To my surprise I got a list of *all* subvolumes on that drive. That is basic