]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs: Update ceph-dokan "--removable" flag
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 10 Mar 2021 07:14:37 +0000 (07:14 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 20 Apr 2021 15:39:11 +0000 (15:39 +0000)
"-m" is the short option for "--removable". We tried to keep the
syntax as close as possible to the old ceph-dokan project but this
flag is already used.

We'll drop the short option, keeping the long one ("--removable").

Fixes: https://tracker.ceph.com/issues/49662
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 5976e4f58373537374e47645647c84b568a165b8)

src/dokan/options.cc

index 160ca8cdd9bba2b3190896cc0ca8dfebfbc9db24..fd3216834ecd0dc7d37e5968db474a766fa32d14 100644 (file)
@@ -38,7 +38,7 @@ Map options:
   --read-only                 read-only mount
   -o [ --win-mount-mgr]       use the Windows mount manager
   --current-session-only      expose the mount only to the current user session
-  -m [ --removable ]          use a removable drive
+  --removable                 use a removable drive
   --win-vol-name arg          The Windows volume name. Default: Ceph - <fs_name>.
 
 Unmap options:
@@ -102,7 +102,7 @@ int parse_args(
       cfg->dokan_stderr = true;
     } else if (ceph_argparse_flag(args, i, "--read-only", (char *)NULL)) {
       cfg->readonly = true;
-    } else if (ceph_argparse_flag(args, i, "--removable", "-m", (char *)NULL)) {
+    } else if (ceph_argparse_flag(args, i, "--removable", (char *)NULL)) {
       cfg->removable = true;
     } else if (ceph_argparse_flag(args, i, "--win-mount-mgr", "-o", (char *)NULL)) {
       cfg->use_win_mount_mgr = true;