Skip to content

Commit 3915769

Browse files
committed
FUSE - Add removable drive option and use local drive as default type now.
1 parent 094d53b commit 3915769

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dokan_fuse/include/dokanfuse.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ struct fuse_config
3333
int readonly;
3434
int setsignals;
3535
unsigned int timeoutInSec;
36+
int removableDrive;
3637
int networkDrive;
3738
unsigned long allocationUnitSize;
3839
unsigned long sectorSize;

dokan_fuse/src/dokanfuse.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ static const struct fuse_opt fuse_lib_opts[] = {
607607
FUSE_LIB_OPT("sector_size=%lu", sectorSize, 0),
608608
FUSE_LIB_OPT("-n", networkDrive, 1),
609609
FUSE_LIB_OPT("-m", mountManager, 1),
610+
FUSE_LIB_OPT("-p", removableDrive, 1),
610611
FUSE_OPT_END};
611612

612613
static void fuse_lib_help(void) {
@@ -624,6 +625,7 @@ static void fuse_lib_help(void) {
624625
" -o sector_size=M set sector size\n"
625626
" -n use network drive\n"
626627
" -m use mount manager\n"
628+
" -p use removable drive\n"
627629
"\n");
628630
}
629631

0 commit comments

Comments
 (0)