]> git-server-git.apps.pok.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>
Wed, 29 Mar 2023 19:30:22 +0000 (01:00 +0530)
commit1356992c1c1362a994bc5e17d857d2dfc01791c5
treea6e0b48699c231e56ff5389d46a4a661b8779989
parent6bf9ab46bcda0079faef94b4e8ed4600a60cf552
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>
src/pybind/mgr/nfs/utils.py