From: short <> Date: Fri, 1 Nov 2002 21:53:00 +0000 (+0000) Subject: +ntoskrnl/io/fs.c X-Git-Tag: captive-0_2~217 X-Git-Url: http://git.jankratochvil.net/?a=commitdiff_plain;h=972c5397eb0037a5f07b0a2f741fda1ec6cd3e7d;p=reactos.git +ntoskrnl/io/fs.c --- diff --git a/ntoskrnl/io/fs.c b/ntoskrnl/io/fs.c index 0365f62..9dee462 100644 --- a/ntoskrnl/io/fs.c +++ b/ntoskrnl/io/fs.c @@ -41,20 +41,26 @@ typedef struct _FS_CHANGE_NOTIFY_ENTRY static KSPIN_LOCK FileSystemListLock; static LIST_ENTRY FileSystemListHead; +#ifndef LIBCAPTIVE static KSPIN_LOCK FsChangeNotifyListLock; static LIST_ENTRY FsChangeNotifyListHead; +#endif /* LIBCAPTIVE */ #define TAG_FILE_SYSTEM TAG('F', 'S', 'Y', 'S') +#ifndef LIBCAPTIVE #define TAG_FS_CHANGE_NOTIFY TAG('F', 'S', 'C', 'N') static VOID IopNotifyFileSystemChange(PDEVICE_OBJECT DeviceObject, BOOLEAN DriverActive); +#endif /* LIBCAPTIVE */ /* FUNCTIONS *****************************************************************/ +#ifndef LIBCAPTIVE + NTSTATUS STDCALL NtFsControlFile ( IN HANDLE DeviceHandle, @@ -154,6 +160,7 @@ NtFsControlFile ( return(Status); } +#endif /* LIBCAPTIVE */ VOID IoInitFileSystemImplementation(VOID) @@ -161,10 +168,13 @@ IoInitFileSystemImplementation(VOID) InitializeListHead(&FileSystemListHead); KeInitializeSpinLock(&FileSystemListLock); +#ifndef LIBCAPTIVE InitializeListHead(&FsChangeNotifyListHead); KeInitializeSpinLock(&FsChangeNotifyListLock); +#endif /* LIBCAPTIVE */ } +#ifndef LIBCAPTIVE VOID IoShutdownRegisteredFileSystems(VOID) @@ -551,6 +561,7 @@ IoSetHardErrorOrVerifyDevice(IN PIRP Irp, Irp->Tail.Overlay.Thread->DeviceToVerify = DeviceObject; } +#endif /* LIBCAPTIVE */ VOID STDCALL IoRegisterFileSystem(IN PDEVICE_OBJECT DeviceObject) @@ -568,10 +579,13 @@ IoRegisterFileSystem(IN PDEVICE_OBJECT DeviceObject) ExInterlockedInsertTailList(&FileSystemListHead, &Fs->Entry, &FileSystemListLock); +#ifndef LIBCAPTIVE IopNotifyFileSystemChange(DeviceObject, TRUE); +#endif /* LIBCAPTIVE */ } +#ifndef LIBCAPTIVE VOID STDCALL IoUnregisterFileSystem(IN PDEVICE_OBJECT DeviceObject) @@ -730,4 +744,6 @@ IoUnregisterFsRegistrationChange(IN PDRIVER_OBJECT DriverObject, } } +#endif /* LIBCAPTIVE */ + /* EOF */