]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 15 Jun 2022 02:29:38 +0000 (10:29 +0800)
commita6e83d8dece53d11d0753f4843a6235eb1bb9834
tree8d8a3f7699a1adcc0ef4305aa130f40dc65b7449
parent2349083a9d3f503dbe48fb1bdc3a88c881ed11a9
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>
src/client/fuse_ll.cc