Re: Read-only `slaves` with shared subtrees?

2017-10-09 Thread Dawid Ciezarkiewicz
On Sun, Oct 8, 2017 at 5:15 PM, Ram Pai wrote: >> >> One thing that I don't plan to use, but might be worth thinking about is >> `slave + RW + STICKY` combination. If `master` mounts something RO, >> and `slave` >> is `RW + STICKY`, should the mount appear RW inside the

Re: Read-only `slaves` with shared subtrees?

2017-10-09 Thread Dawid Ciezarkiewicz
On Sun, Oct 8, 2017 at 5:15 PM, Ram Pai wrote: >> >> One thing that I don't plan to use, but might be worth thinking about is >> `slave + RW + STICKY` combination. If `master` mounts something RO, >> and `slave` >> is `RW + STICKY`, should the mount appear RW inside the slave? I don't >> find

Re: Read-only `slaves` with shared subtrees?

2017-09-29 Thread Dawid Ciezarkiewicz
On Fri, Sep 22, 2017 at 11:43 AM, Dawid Ciezarkiewicz <dawid.ciezarkiew...@rubrik.com> wrote: > On Thu, Sep 21, 2017 at 12:14 PM, Ram Pai <linux...@us.ibm.com> wrote: >> Here is a patch that accomplishes the job. tested to work with >> some simple use cases.

Re: Read-only `slaves` with shared subtrees?

2017-09-29 Thread Dawid Ciezarkiewicz
On Fri, Sep 22, 2017 at 11:43 AM, Dawid Ciezarkiewicz wrote: > On Thu, Sep 21, 2017 at 12:14 PM, Ram Pai wrote: >> Here is a patch that accomplishes the job. tested to work with >> some simple use cases. check if this works for you. If it does >> than we will have to think

Re: Read-only `slaves` with shared subtrees?

2017-09-22 Thread Dawid Ciezarkiewicz
On Thu, Sep 21, 2017 at 12:14 PM, Ram Pai wrote: > Here is a patch that accomplishes the job. tested to work with > some simple use cases. check if this works for you. If it does > than we will have to think through all the edge cases and make it > acceptable. >From your

Re: Read-only `slaves` with shared subtrees?

2017-09-22 Thread Dawid Ciezarkiewicz
On Thu, Sep 21, 2017 at 12:14 PM, Ram Pai wrote: > Here is a patch that accomplishes the job. tested to work with > some simple use cases. check if this works for you. If it does > than we will have to think through all the edge cases and make it > acceptable. >From your experiments, it looks

Re: Read-only `slaves` with shared subtrees?

2017-09-20 Thread Dawid Ciezarkiewicz
/mnt will inherit the > 'ro' attribute from its parent. And when a mount-event propagates > to a read-only-slave-mount, that new mount will automatically > inherit the read-only attribute from its slave-parent. > > Dawid: will that work for you? Yes. It is even more universal. Regards, Dawid Ciezarkiewicz

Re: Read-only `slaves` with shared subtrees?

2017-09-20 Thread Dawid Ciezarkiewicz
'ro' attribute from its parent. And when a mount-event propagates > to a read-only-slave-mount, that new mount will automatically > inherit the read-only attribute from its slave-parent. > > Dawid: will that work for you? Yes. It is even more universal. Regards, Dawid Ciezarkiewicz

Re: Read-only `slaves` with shared subtrees?

2017-09-19 Thread Dawid Ciezarkiewicz
t a patch? If you could PM me any pointers it could help a lot since I'm not familiar with FS internals. So far I got here: http://elixir.free-electrons.com/linux/latest/source/fs/pnode.c#L294 Regards, Dawid Ciezarkiewicz

Re: Read-only `slaves` with shared subtrees?

2017-09-19 Thread Dawid Ciezarkiewicz
y pointers it could help a lot since I'm not familiar with FS internals. So far I got here: http://elixir.free-electrons.com/linux/latest/source/fs/pnode.c#L294 Regards, Dawid Ciezarkiewicz

Read-only `slaves` with shared subtrees?

2017-09-15 Thread Dawid Ciezarkiewicz
hints/ideas about the design and API? Best Regards, -- Dawid Ciezarkiewicz Software Engineer at Rubrik

Read-only `slaves` with shared subtrees?

2017-09-15 Thread Dawid Ciezarkiewicz
hints/ideas about the design and API? Best Regards, -- Dawid Ciezarkiewicz Software Engineer at Rubrik