WSL2-Linux-Kernel/fs/overlayfs
Miklos Szeredi fbaf94ee3c ovl: don't set origin on broken lower hardlink
When copying up a file that has multiple hard links we need to break any
association with the origin file.  This makes copy-up be essentially an
atomic replace.

The new file has nothing to do with the old one (except having the same
data and metadata initially), so don't set the overlay.origin attribute.

We can relax this in the future when we are able to index upper object by
origin.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 3a1e819b4e ("ovl: store file handle of lower inode on copy up")
2017-06-28 13:41:22 +02:00
..
Kconfig ovl: select EXPORTFS 2017-05-15 10:53:07 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
copy_up.c ovl: don't set origin on broken lower hardlink 2017-06-28 13:41:22 +02:00
dir.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
inode.c ovl: filter trusted xattr for non-admin 2017-05-29 15:15:27 +02:00
namei.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
overlayfs.h ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
ovl_entry.h ovl: mark upper dir with type origin entries "impure" 2017-05-19 09:33:49 +02:00
readdir.c ovl: proper cleanup of workdir 2016-09-01 11:11:59 +02:00
super.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
util.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00