]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs: ceph-dokan - properly log the mounted root 40627/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 10 Mar 2021 07:20:37 +0000 (07:20 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 20 Apr 2021 15:39:11 +0000 (15:39 +0000)
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 <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 7e8ea37c704422aade3c9b1ef34a0c8a4b17e1b3)

src/dokan/ceph_dokan.cc
src/dokan/ceph_dokan.h

index 90320e662c3a3c1536a2342cfecfe5f8b092b5ea..92dfa5a3fb398bd4d1116b24241c8f87fc6337c0 100644 (file)
@@ -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);
index 9675a15af56d9fb2936f2af738c42e417d1b1580..acc50c01e690fbc12a31eee94d83c2e3d92d1e2d 100644 (file)
@@ -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;