]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: check if inode ref is dir before proceeding with lookup
authorDhairya Parmar <dparmar@redhat.com>
Tue, 8 Apr 2025 13:53:48 +0000 (19:23 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Tue, 23 Sep 2025 18:57:58 +0000 (00:27 +0530)
commit6dc55fcda3b9280a8ae3cdcc681a9d1fa0f7148d
tree078e6a61cc4ae05d016a1ed23c677bbc2f381da5
parent11a08c5871d0ba46ed289a9642c77e81c6c56c87
client: check if inode ref is dir before proceeding with lookup

Lookup on non-dir inode is incorrect. Client::_lookup did check for it
but the order needed to be correct i.e. check for non-dir inode before
anything.

Fixes: https://tracker.ceph.com/issues/70553
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit aa6ffa5159f6c9e14000a7501a394b1185b63078)
src/client/Client.cc