]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/nfs/utils: add helper func to check cephfs path
authorDhairya Parmar <dparmar@redhat.com>
Wed, 29 Mar 2023 17:50:50 +0000 (23:20 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Fri, 31 Mar 2023 08:17:41 +0000 (13:47 +0530)
commit5a457a3700f50273ee4640b483145957a31aeb20
tree8c8c702ed77da5a65e229e266a4ea5ebae7f7325
parent8842c790e5638ab798f4c186a2a2a8e3be5fa7b6
mgr/nfs/utils: add helper func to check cephfs path

this helper instantiates CephfsClient, however this was
initially planned in ExportMgr class in export.py but
due to make check failure where main python thread
experienced a dead lock which after several efforts
pointed at instantiation of CephfsClient in ExportMgr
was problematic, it was decided in order to achieve
singleton behavior, func has been added inside this
helper func that restricts instantiation using functool's
lru_cache.

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 1356992c1c1362a994bc5e17d857d2dfc01791c5)
src/pybind/mgr/nfs/utils.py