]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/cache/pwl: don't crash if cache file removal fails
authorIlya Dryomov <idryomov@gmail.com>
Sun, 10 Apr 2022 14:57:24 +0000 (16:57 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 12 Apr 2022 16:42:06 +0000 (18:42 +0200)
commit63197ff7003fa9e595527a7431f9f3f6790f7d57
tree942bdae1d50f4027ff27c6a3f12665ef71386a03
parent644fbc9fcc8f12eb93d5cc20054cd8598ab001b7
librbd/cache/pwl: don't crash if cache file removal fails

The non-ec overload will throw fs::filesystem_error on any error
(e.g. EPERM due to unprivileged "rbd persistent-cache invalidate"
being brought up against a privileged workload).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/cache/pwl/DiscardRequest.cc