Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-08 Thread Miklos Szeredi
On Wed, Aug 7, 2013 at 6:31 PM, Anand Avati wrote: > Thanks for attaching the thread. Was very educative! I still do not quite > understand - will umount() still work when inode_permission()[->getattr()] > on the ancestors fail (with ESTALE etc.)? Several cases: 1) mountpoint was removed 2)

Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-08 Thread Miklos Szeredi
On Wed, Aug 7, 2013 at 6:31 PM, Anand Avati av...@redhat.com wrote: Thanks for attaching the thread. Was very educative! I still do not quite understand - will umount() still work when inode_permission()[-getattr()] on the ancestors fail (with ESTALE etc.)? Several cases: 1) mountpoint was

Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-07 Thread Anand Avati
On 8/7/13 8:44 AM, Miklos Szeredi wrote: On Tue, Aug 6, 2013 at 10:06 PM, Anand Avati wrote: On 8/6/13 7:30 AM, Miklos Szeredi wrote: From: Anand Avati Drop a subtree when we find that it has moved or been delated. This can be done as long as there are no submounts under this location.

Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-07 Thread Miklos Szeredi
On Tue, Aug 6, 2013 at 10:06 PM, Anand Avati wrote: > On 8/6/13 7:30 AM, Miklos Szeredi wrote: >> >> From: Anand Avati >> >> Drop a subtree when we find that it has moved or been delated. This can >> be >> done as long as there are no submounts under this location. >> >> If the directory was

Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-07 Thread Miklos Szeredi
On Tue, Aug 6, 2013 at 10:06 PM, Anand Avati av...@redhat.com wrote: On 8/6/13 7:30 AM, Miklos Szeredi wrote: From: Anand Avati av...@redhat.com Drop a subtree when we find that it has moved or been delated. This can be done as long as there are no submounts under this location. If the

Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-07 Thread Anand Avati
On 8/7/13 8:44 AM, Miklos Szeredi wrote: On Tue, Aug 6, 2013 at 10:06 PM, Anand Avati av...@redhat.com wrote: On 8/6/13 7:30 AM, Miklos Szeredi wrote: From: Anand Avati av...@redhat.com Drop a subtree when we find that it has moved or been delated. This can be done as long as there are no

Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-06 Thread Anand Avati
On 8/6/13 7:30 AM, Miklos Szeredi wrote: From: Anand Avati Drop a subtree when we find that it has moved or been delated. This can be done as long as there are no submounts under this location. If the directory was moved and we come across the same directory in a future lookup it will be

[PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-06 Thread Miklos Szeredi
From: Anand Avati Drop a subtree when we find that it has moved or been delated. This can be done as long as there are no submounts under this location. If the directory was moved and we come across the same directory in a future lookup it will be reconnected by d_materialise_unique().

[PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-06 Thread Miklos Szeredi
From: Anand Avati av...@redhat.com Drop a subtree when we find that it has moved or been delated. This can be done as long as there are no submounts under this location. If the directory was moved and we come across the same directory in a future lookup it will be reconnected by

Re: [PATCH 4/4] fuse: drop dentry on failed revalidate

2013-08-06 Thread Anand Avati
On 8/6/13 7:30 AM, Miklos Szeredi wrote: From: Anand Avati av...@redhat.com Drop a subtree when we find that it has moved or been delated. This can be done as long as there are no submounts under this location. If the directory was moved and we come across the same directory in a future