mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	sys: FspFsvolQueryFsAttributeInformation: allow file system to fully specify file system name
tst: memfs: add -F FileSystemName option
This commit is contained in:
		| @@ -44,6 +44,7 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv) | ||||
|     ULONG FileInfoTimeout = INFINITE; | ||||
|     ULONG MaxFileNodes = 1024; | ||||
|     ULONG MaxFileSize = 16 * 1024 * 1024; | ||||
|     PWSTR FileSystemName = 0; | ||||
|     PWSTR MountPoint = 0; | ||||
|     PWSTR VolumePrefix = 0; | ||||
|     PWSTR RootSddl = 0; | ||||
| @@ -65,6 +66,9 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv) | ||||
|         case L'D': | ||||
|             argtos(DebugLogFile); | ||||
|             break; | ||||
|         case L'F': | ||||
|             argtos(FileSystemName); | ||||
|             break; | ||||
|         case L'i': | ||||
|             CaseInsensitiveFlags = MemfsCaseInsensitive; | ||||
|             break; | ||||
| @@ -121,11 +125,12 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv) | ||||
|         FspDebugLogSetHandle(DebugLogHandle); | ||||
|     } | ||||
|  | ||||
|     Result = MemfsCreate( | ||||
|     Result = MemfsCreateFunnel( | ||||
|         CaseInsensitiveFlags | Flags, | ||||
|         FileInfoTimeout, | ||||
|         MaxFileNodes, | ||||
|         MaxFileSize, | ||||
|         FileSystemName, | ||||
|         VolumePrefix, | ||||
|         RootSddl, | ||||
|         &Memfs); | ||||
| @@ -184,6 +189,7 @@ usage: | ||||
|         "    -t FileInfoTimeout  [millis]\n" | ||||
|         "    -n MaxFileNodes\n" | ||||
|         "    -s MaxFileSize      [bytes]\n" | ||||
|         "    -F FileSystemName\n" | ||||
|         "    -S RootSddl         [file rights: FA, etc; NO generic rights: GA, etc.]\n" | ||||
|         "    -u \\Server\\Share    [UNC prefix (single backslash)]\n" | ||||
|         "    -m MountPoint       [X:|* (required if no UNC prefix)]\n"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user