From 8fa1895c3afd1ff31eb5caa8dc090fd622c754ac Mon Sep 17 00:00:00 2001 From: Stefan Chivu Date: Wed, 2 Nov 2022 14:32:40 +0200 Subject: [PATCH] ceph-dokan: Exposed --win-vol-serial CLI option for ceph-dokan Signed-off-by: Stefan Chivu --- src/dokan/options.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dokan/options.cc b/src/dokan/options.cc index 8fb4a7dff3e..910f3a45c77 100644 --- a/src/dokan/options.cc +++ b/src/dokan/options.cc @@ -39,6 +39,7 @@ Map options: --current-session-only expose the mount only to the current user session --removable use a removable drive --win-vol-name arg The Windows volume name. Default: Ceph - . + --win-vol-serial arg The Windows volume serial number. Default: . Unmap options: -l [ --mountpoint ] arg mountpoint (path or drive letter) (e.g -l x). @@ -83,6 +84,7 @@ int parse_args( std::ostringstream err; std::string mountpoint; std::string win_vol_name; + std::string win_vol_serial; int thread_count; @@ -110,6 +112,9 @@ int parse_args( } else if (ceph_argparse_witharg(args, i, &win_vol_name, "--win-vol-name", (char *)NULL)) { cfg->win_vol_name = to_wstring(win_vol_name); + } else if (ceph_argparse_witharg(args, i, &win_vol_serial, + "--win-vol-serial", (char *)NULL)) { + cfg->win_vol_serial = std::stoul(win_vol_serial); } else if (ceph_argparse_flag(args, i, "--current-session-only", (char *)NULL)) { cfg->current_session_only = true; } else if (ceph_argparse_witharg(args, i, &thread_count, -- 2.47.3