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)
commit6b8aa129dcbe0e9825109b35c4b967f984e8fb13
treeecac80ecf92933719eb234136386f0e875a0c444
parentf7d3daca7c79d9b77e61f50f718b257b71d07498
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