]> 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)
committerJos Collin <jcollin@redhat.com>
Wed, 27 Aug 2025 06:43:12 +0000 (12:13 +0530)
commitad92bf02b33238858df0e1bd29a9c4c152bd0e64
treef43d877ea11decf91919fbdf7c63f4549cea0040
parent4a8ff5380330df1132121c02c487699d27ec6b14
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