]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: return EINVAL if get invalid fino instead of assert
authorXiubo Li <xiubli@redhat.com>
Thu, 24 Mar 2022 02:01:57 +0000 (10:01 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 30 Aug 2022 02:38:18 +0000 (10:38 +0800)
commitca7767c203e4056df35f92dc8aa85b04bbd07281
tree84101b6a76a062af767bb63eb923697221a2ffd8
parentfa9e3426553e9ef9d7d197a69b1c9be57bf0aac6
ceph-fuse: return EINVAL if get invalid fino instead of assert

All the snap ids of the finos returned to libfuse from libcephfs
will be recorded in the map of 'stag_snap_map', and will never be
erased before unmounting. So if libfuse passes invalid fino the
ceph-fuse should return EINVAL errno instead of crash itself.

Fixes: https://tracker.ceph.com/issues/54653
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit a6e83d8dece53d11d0753f4843a6235eb1bb9834)
src/client/fuse_ll.cc