]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: index directories on copy up for NFS export
authorAmir Goldstein <amir73il@gmail.com>
Thu, 11 Jan 2018 12:01:08 +0000 (14:01 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:25:55 +0000 (11:25 +0100)
commit4be85798c50e75af9edb7ebdb68ef60c805c894f
treeb6299145104cd5346218677cdb169faf2f4aee40
parent0780fa427b2dc62aecd1968943f04cfd40862b74
ovl: index directories on copy up for NFS export

With the NFS export feature enabled, all dirs are indexed on copy up.
Non-dir files are copied up directly to indexdir and then hardlinked
to upper dir.

Directories are copied up to indexdir, then an index entry is created
in indexdir with 'upper' xattr pointing to the copied up dir and then
the copied up dir is moved to upper dir.

Directory index is also used for consistency verification, like
detecting multiple redirected dirs to the same lower dir on lookup.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c
fs/overlayfs/util.c