memfs: memfs-main.c

This commit is contained in:
Bill Zissimopoulos 2016-04-08 20:45:36 -07:00
parent 2c7ce4a3da
commit 9d451f4578

View File

@ -114,7 +114,7 @@ int wmain(int argc, wchar_t **argv)
case L't': case L't':
FileInfoTimeout = argtol(++argp, FileInfoTimeout); FileInfoTimeout = argtol(++argp, FileInfoTimeout);
break; break;
case L'v': case L'u':
VolumePrefix = argtos(++argp); VolumePrefix = argtos(++argp);
Flags = MemfsNet; Flags = MemfsNet;
break; break;
@ -142,8 +142,10 @@ int wmain(int argc, wchar_t **argv)
if (!NT_SUCCESS(Result)) if (!NT_SUCCESS(Result))
fail("error: cannot mount MEMFS"); fail("error: cannot mount MEMFS");
warn("%s -t %ld -n %ld -s %ld -v %s %s", warn("%s -t %ld -n %ld -s %ld%s%S %S",
PROGNAME, FileInfoTimeout, MaxFileNodes, MaxFileSize, VolumePrefix, MountPoint); PROGNAME, FileInfoTimeout, MaxFileNodes, MaxFileSize,
VolumePrefix ? " -u " : "", VolumePrefix ? VolumePrefix : L"",
MountPoint);
SetConsoleCtrlHandler(ConsoleCtrlHandler, TRUE); SetConsoleCtrlHandler(ConsoleCtrlHandler, TRUE);
if (WAIT_OBJECT_0 != WaitForSingleObject(MainEvent, INFINITE)) if (WAIT_OBJECT_0 != WaitForSingleObject(MainEvent, INFINITE))
fail("error: cannot wait on MainEvent"); fail("error: cannot wait on MainEvent");