Re: confusing mountinfo output when bind-mounting files

2016-03-21 Thread Austin S. Hemmelgarn
On 2016-03-21 13:29, Tycho Andersen wrote: On Mon, Mar 21, 2016 at 11:22:06AM -0600, Chris Murphy wrote: On Mon, Mar 21, 2016 at 9:21 AM, Tycho Andersen wrote: Hi all, I'm seeing some strange behavior when bind mounting files from a btrfs subvolume. Consider the output below: root@criu2:/tmp

Re: confusing mountinfo output when bind-mounting files

2016-03-21 Thread Tycho Andersen
On Mon, Mar 21, 2016 at 11:22:06AM -0600, Chris Murphy wrote: > On Mon, Mar 21, 2016 at 9:21 AM, Tycho Andersen > wrote: > > Hi all, > > > > I'm seeing some strange behavior when bind mounting files from a btrfs > > subvolume. Consider the output below: > > > > root@criu2:/tmp# mount -o loop /tmp/

Re: confusing mountinfo output when bind-mounting files

2016-03-21 Thread Chris Murphy
On Mon, Mar 21, 2016 at 9:21 AM, Tycho Andersen wrote: > Hi all, > > I'm seeing some strange behavior when bind mounting files from a btrfs > subvolume. Consider the output below: > > root@criu2:/tmp# mount -o loop /tmp/tester.btrfs /tmp/dir1 > root@criu2:/tmp# touch dir1/file > root@criu2:/tmp# s

confusing mountinfo output when bind-mounting files

2016-03-21 Thread Tycho Andersen
Hi all, I'm seeing some strange behavior when bind mounting files from a btrfs subvolume. Consider the output below: root@criu2:/tmp# mount -o loop /tmp/tester.btrfs /tmp/dir1 root@criu2:/tmp# touch dir1/file root@criu2:/tmp# sudo mount --bind dir1/file dir2/file root@criu2:/tmp# grep "/tmp/dir"