ovl: copy up of disconnected dentries
With NFS export, some operations on decoded file handles (e.g. open, link, setattr, xattr_set) may call copy up with a disconnected non-dir. In this case, we will copy up lower inode to index dir without linking it to upper dir. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:

committed by
Miklos Szeredi

parent
829c28be9b
commit
aa3ff3c152
@@ -229,9 +229,10 @@ void ovl_dentry_set_opaque(struct dentry *dentry)
|
||||
}
|
||||
|
||||
/*
|
||||
* For hard links it's possible for ovl_dentry_upper() to return positive, while
|
||||
* there's no actual upper alias for the inode. Copy up code needs to know
|
||||
* about the existence of the upper alias, so it can't use ovl_dentry_upper().
|
||||
* For hard links and decoded file handles, it's possible for ovl_dentry_upper()
|
||||
* to return positive, while there's no actual upper alias for the inode.
|
||||
* Copy up code needs to know about the existence of the upper alias, so it
|
||||
* can't use ovl_dentry_upper().
|
||||
*/
|
||||
bool ovl_dentry_has_upper_alias(struct dentry *dentry)
|
||||
{
|
||||
|
Reference in New Issue
Block a user