From: Lucian Petrut Date: Wed, 10 Mar 2021 07:20:37 +0000 (+0000) Subject: cephfs: ceph-dokan - properly log the mounted root X-Git-Tag: v16.2.2~27^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9cb8a79e7bd7f68aab9809dc7bd9162c6b9e314f;p=ceph.git cephfs: ceph-dokan - properly log the mounted root This is a simple change that updates the logged mounted directory. We're incorrectly using "ceph_getcwd" instead of the actual root path. Fixes: https://tracker.ceph.com/issues/49662 Signed-off-by: Lucian Petrut (cherry picked from commit 7e8ea37c704422aade3c9b1ef34a0c8a4b17e1b3) --- diff --git a/src/dokan/ceph_dokan.cc b/src/dokan/ceph_dokan.cc index 90320e662c3a3..92dfa5a3fb398 100644 --- a/src/dokan/ceph_dokan.cc +++ b/src/dokan/ceph_dokan.cc @@ -950,7 +950,7 @@ int do_map() { } atexit(unmount_atexit); - dout(0) << "Mounted cephfs directory: " << ceph_getcwd(cmount) + dout(0) << "Mounted cephfs directory: " << g_cfg->root_path.c_str() <<". Mountpoint: " << to_string(g_cfg->mountpoint) << dendl; DWORD status = DokanMain(dokan_options, dokan_operations); diff --git a/src/dokan/ceph_dokan.h b/src/dokan/ceph_dokan.h index 9675a15af56d9..acc50c01e690f 100644 --- a/src/dokan/ceph_dokan.h +++ b/src/dokan/ceph_dokan.h @@ -31,7 +31,7 @@ struct Config { int thread_count = CEPH_DOKAN_DEFAULT_THREAD_COUNT; std::wstring mountpoint = L""; - std::string root_path = ""; + std::string root_path = "/"; std::wstring win_vol_name = L""; unsigned long win_vol_serial = 0;