mirror of
https://github.com/winfsp/winfsp.git
synced 2025-09-13 04:38:30 -05:00
sys,dll: FSP_FSCTL_UNLOAD
This commit is contained in:
@@ -40,6 +40,11 @@ FSP_FSCTL_STATIC_ASSERT(MEMFS_MAX_PATH > MAX_PATH,
|
||||
*/
|
||||
//#define MEMFS_STANDALONE
|
||||
|
||||
/*
|
||||
* Define the MEMFS_DISPATCHER_STOPPED macro to include DispatcherStopped support.
|
||||
*/
|
||||
#define MEMFS_DISPATCHER_STOPPED
|
||||
|
||||
/*
|
||||
* Define the MEMFS_NAME_NORMALIZATION macro to include name normalization support.
|
||||
*/
|
||||
@@ -2269,6 +2274,14 @@ static NTSTATUS SetEa(FSP_FILE_SYSTEM *FileSystem,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(MEMFS_DISPATCHER_STOPPED)
|
||||
static void DispatcherStopped(FSP_FILE_SYSTEM *FileSystem,
|
||||
BOOLEAN Normally)
|
||||
{
|
||||
//FspDebugLog(__FUNCTION__ ": Normally=%d\n", Normally);
|
||||
}
|
||||
#endif
|
||||
|
||||
static FSP_FILE_SYSTEM_INTERFACE MemfsInterface =
|
||||
{
|
||||
GetVolumeInfo,
|
||||
@@ -2336,6 +2349,12 @@ static FSP_FILE_SYSTEM_INTERFACE MemfsInterface =
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
#endif
|
||||
0,
|
||||
#if defined(MEMFS_DISPATCHER_STOPPED)
|
||||
DispatcherStopped,
|
||||
#else
|
||||
0,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
44
tst/winfsp-tests/loadun-test.c
Normal file
44
tst/winfsp-tests/loadun-test.c
Normal file
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* @file loadun-test.c
|
||||
*
|
||||
* @copyright 2015-2022 Bill Zissimopoulos
|
||||
*/
|
||||
/*
|
||||
* This file is part of WinFsp.
|
||||
*
|
||||
* You can redistribute it and/or modify it under the terms of the GNU
|
||||
* General Public License version 3 as published by the Free Software
|
||||
* Foundation.
|
||||
*
|
||||
* Licensees holding a valid commercial license may use this software
|
||||
* in accordance with the commercial license agreement provided in
|
||||
* conjunction with the software. The terms and conditions of any such
|
||||
* commercial license agreement shall govern, supersede, and render
|
||||
* ineffective any application of the GPLv3 license to this software,
|
||||
* notwithstanding of any reference thereto in the software or
|
||||
* associated repository.
|
||||
*/
|
||||
|
||||
#include <winfsp/winfsp.h>
|
||||
#include <tlib/testsuite.h>
|
||||
|
||||
#include "winfsp-tests.h"
|
||||
|
||||
static void load_unload_test(void)
|
||||
{
|
||||
/* this is not a real test! */
|
||||
|
||||
FspFsctlStartService();
|
||||
FspFsctlStartService();
|
||||
|
||||
FspFsctlStopService();
|
||||
FspFsctlStopService();
|
||||
}
|
||||
|
||||
void load_unload_tests(void)
|
||||
{
|
||||
if (OptExternal)
|
||||
return;
|
||||
|
||||
TEST_OPT(load_unload_test);
|
||||
}
|
@@ -220,6 +220,7 @@ LONG WINAPI UnhandledExceptionHandler(struct _EXCEPTION_POINTERS *ExceptionInfo)
|
||||
argv[argc] = 0
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
TESTSUITE(load_unload_tests);
|
||||
TESTSUITE(fuse_opt_tests);
|
||||
TESTSUITE(fuse_tests);
|
||||
TESTSUITE(posix_tests);
|
||||
|
Reference in New Issue
Block a user