]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: generalize ovl_create_workdir()
authorAmir Goldstein <amir73il@gmail.com>
Wed, 21 Jun 2017 12:28:35 +0000 (15:28 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 4 Jul 2017 20:03:17 +0000 (22:03 +0200)
commitc13b1762915dcca8396a76a79037bd03c1115872
treeecac80ecf92933719eb234136386f0e875a0c444
parenta5190ff7bdbf016adf66b67b9c307cd630b15b6d
ovl: generalize ovl_create_workdir()

Pass in the subdir name to create and specify if subdir is persistent
or if it should be cleaned up on every mount.

Move fallback to readonly mount on failure to create dir and print of error
message into the helper.

This function is going to be used for creating the persistent 'index' dir
under workbasedir.

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