]> git.apps.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, 23 Aug 2022 05:42:23 +0000 (13:42 +0800)
commita8d96672fd1574bddb27ac8d529785d1b284ae9c
treec39258ef71122fe3488221c36de6008bb3ebc58d
parent23b63313ede367bd44295f9f81b9cd459eead527
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