From: Lucian Petrut Date: Wed, 10 Mar 2021 07:14:37 +0000 (+0000) Subject: cephfs: Update ceph-dokan "--removable" flag X-Git-Tag: v16.2.2~27^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e872668d266bcd12c868be22242828a0322c20a;p=ceph.git cephfs: Update ceph-dokan "--removable" flag "-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 (cherry picked from commit 5976e4f58373537374e47645647c84b568a165b8) --- diff --git a/src/dokan/options.cc b/src/dokan/options.cc index 160ca8cdd9bb..fd3216834ecd 100644 --- a/src/dokan/options.cc +++ b/src/dokan/options.cc @@ -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 - . 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;