From: Leonid Usov Date: Sun, 6 Aug 2023 08:28:40 +0000 (+0300) Subject: mount.fuse.ceph: strip the 'nofail' option from those that fuse will see X-Git-Tag: v19.0.0~694^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=129cfa541556f3bb964be51fc447e6ecaf579fcf;p=ceph-ci.git mount.fuse.ceph: strip the 'nofail' option from those that fuse will see Signed-off-by: Leonid Usov Fixes: https://tracker.ceph.com/issues/58394 --- diff --git a/src/mount.fuse.ceph b/src/mount.fuse.ceph index 59a296d964f..c4b61dbcbd2 100755 --- a/src/mount.fuse.ceph +++ b/src/mount.fuse.ceph @@ -39,8 +39,11 @@ def ceph_options_compat(device): return [ 'ceph.' + opt for opt in device.split(',') ] def fs_options(opts, ceph_opts): - # strip out noauto and _netdev options; libfuse doesn't like it - strip_opts = ['defaults', 'noauto', '_netdev'] + # - strip out noauto and _netdev options; libfuse doesn't like it + # - nofail option is also not recognized by libfuse. + # Starting with fuse 3.2.2 the option is also ignored by mount.fuse, see + # https://github.com/libfuse/libfuse/commit/a83cd72f641671b71b8268b1765e449cae071f3e + strip_opts = ['defaults', 'noauto', '_netdev', 'nofail'] return ','.join(list(set(opts) - set(ceph_opts) - set(strip_opts))) def main(arguments):