From 3915769d3e19dd40cfb437f2ec6da6b704c43bcf Mon Sep 17 00:00:00 2001 From: Adrien JUND Date: Fri, 27 Nov 2020 15:10:16 +0100 Subject: [PATCH] FUSE - Add removable drive option and use local drive as default type now. --- dokan_fuse/include/dokanfuse.h | 1 + dokan_fuse/src/dokanfuse.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dokan_fuse/include/dokanfuse.h b/dokan_fuse/include/dokanfuse.h index a46f1427d..72cf5e198 100644 --- a/dokan_fuse/include/dokanfuse.h +++ b/dokan_fuse/include/dokanfuse.h @@ -33,6 +33,7 @@ struct fuse_config int readonly; int setsignals; unsigned int timeoutInSec; + int removableDrive; int networkDrive; unsigned long allocationUnitSize; unsigned long sectorSize; diff --git a/dokan_fuse/src/dokanfuse.cpp b/dokan_fuse/src/dokanfuse.cpp index d94a0dbbc..3c54e3b95 100644 --- a/dokan_fuse/src/dokanfuse.cpp +++ b/dokan_fuse/src/dokanfuse.cpp @@ -607,6 +607,7 @@ static const struct fuse_opt fuse_lib_opts[] = { FUSE_LIB_OPT("sector_size=%lu", sectorSize, 0), FUSE_LIB_OPT("-n", networkDrive, 1), FUSE_LIB_OPT("-m", mountManager, 1), + FUSE_LIB_OPT("-p", removableDrive, 1), FUSE_OPT_END}; static void fuse_lib_help(void) { @@ -624,6 +625,7 @@ static void fuse_lib_help(void) { " -o sector_size=M set sector size\n" " -n use network drive\n" " -m use mount manager\n" + " -p use removable drive\n" "\n"); }