diff options
author | Miklos Szeredi <[email protected]> | 2015-05-14 10:04:44 +0200 |
---|---|---|
committer | Miklos Szeredi <[email protected]> | 2015-05-14 10:04:44 +0200 |
commit | d377c5eb54dd05aeb3094b7740252d19ba7791f7 (patch) | |
tree | e0af790ebf150f97fbb1ea79bdb0d5aa6f2a3474 /include/linux/fpga/fpga-mgr.h | |
parent | 030bbdbf4c833bc69f502eae58498bc5572db736 (diff) |
ovl: don't remove non-empty opaque directory
When removing an opaque directory we can't just call rmdir() to check for
emptiness, because the directory will need to be replaced with a whiteout.
The replacement is done with RENAME_EXCHANGE, which doesn't check
emptiness.
Solution is just to check emptiness by reading the directory. In the
future we could add a new rename flag to check for emptiness even for
RENAME_EXCHANGE to optimize this case.
Reported-by: Vincent Batts <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Tested-by: Jordi Pujol Palomer <[email protected]>
Fixes: 263b4a0fee43 ("ovl: dont replace opaque dir")
Cc: <[email protected]> # v4.0+
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions