Whamcloud - gitweb
EX-3054 lipe: unlink pcc cache file if it's needed
authorLei Feng <flei@whamcloud.com>
Thu, 22 Apr 2021 09:51:26 +0000 (17:51 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Jul 2021 20:14:55 +0000 (20:14 +0000)
commit43cd5421551e123353e19c500d5eef79d2c9e992
tree65609ebf61c9ac24bb0b76959221dc37d88d9b6c
parent3db0abfbc4658d23b019d9e3ea9df56ef9dadfec
EX-3054 lipe: unlink pcc cache file if it's needed

Cache file is not guaranteed to be deleted after detach
operation returns success. So we unlink the cache file
if it's needed.

Change --force_clear option to --clear_hashdir option.
It tries to remove empty hash dir recursively up to the cache
dir root. The option is off by default.

Change-Id: I49911c688faaf6c7baa814b260a4ff492de077fc
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial
Reviewed-on: https://review.whamcloud.com/43403
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/src/lpcc_purge.c