Revert "Remove 'FUSE-' prefix from file system name when using fuse interface"

This reverts commit 7d2ff3afeb768b610867861489152e0c31ade16d.
This commit is contained in:
John Tyner 2019-10-07 06:47:02 -07:00
parent c9d3cb74c7
commit 490d0577bb

View File

@ -360,11 +360,12 @@ static int fsp_fuse_core_opt_proc(void *opt_data0, const char *arg, int key,
else if ('F' == arg[2])
arg += sizeof "--FileSystemName=" - 1;
if (0 == MultiByteToWideChar(CP_UTF8, 0, arg, -1,
opt_data->VolumeParams.FileSystemName,
sizeof opt_data->VolumeParams.FileSystemName / sizeof(WCHAR)))
opt_data->VolumeParams.FileSystemName + 5,
sizeof opt_data->VolumeParams.FileSystemName / sizeof(WCHAR) - 5))
return -1;
opt_data->VolumeParams.FileSystemName
[sizeof opt_data->VolumeParams.FileSystemName / sizeof(WCHAR) - 1] = L'\0';
memcpy(opt_data->VolumeParams.FileSystemName, L"FUSE-", 5 * sizeof(WCHAR));
return 0;
case 'u':
if ('U' == arg[0])