ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
May 2006
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
19 participants
377 discussions
Start a n
N
ew thread
[amunger] 21846: userenv: open handles with least rights neccessary. Patch by w3seek, bug 1458.
by amunger@svn.reactos.org
Author: amunger Date: Mon May 8 00:23:16 2006 New Revision: 21846 URL:
http://svn.reactos.ru/svn/reactos?rev=21846&view=rev
Log: userenv: open handles with least rights neccessary. Patch by w3seek, bug 1458. Modified: trunk/reactos/dll/win32/userenv/desktop.c trunk/reactos/dll/win32/userenv/directory.c trunk/reactos/dll/win32/userenv/environment.c trunk/reactos/dll/win32/userenv/profile.c trunk/reactos/dll/win32/userenv/setup.c Modified: trunk/reactos/dll/win32/userenv/desktop.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/userenv/desktop.c…
============================================================================== --- trunk/reactos/dll/win32/userenv/desktop.c (original) +++ trunk/reactos/dll/win32/userenv/desktop.c Mon May 8 00:23:16 2006 @@ -48,7 +48,7 @@ Error = RegOpenKeyExW (HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders", 0, - KEY_ALL_ACCESS, + KEY_QUERY_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -106,7 +106,7 @@ Error = RegOpenKeyExW (HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders", 0, - KEY_ALL_ACCESS, + KEY_QUERY_VALUE, &hKey); if (Error != ERROR_SUCCESS) { Modified: trunk/reactos/dll/win32/userenv/directory.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/userenv/directory…
============================================================================== --- trunk/reactos/dll/win32/userenv/directory.c (original) +++ trunk/reactos/dll/win32/userenv/directory.c Mon May 8 00:23:16 2006 @@ -124,7 +124,7 @@ if (FindFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { DPRINT ("Create directory: %S\n", szFullDstName); - if (!CreateDirectoryW (szFullDstName, NULL)) + if (!CreateDirectoryExW (szFullSrcName, szFullDstName, NULL)) { if (GetLastError () != ERROR_ALREADY_EXISTS) { @@ -153,13 +153,6 @@ FindClose (hFind); return FALSE; } - } - - /* Copy file attributes */ - if (FindFileData.dwFileAttributes & ~FILE_ATTRIBUTE_DIRECTORY) - { - SetFileAttributesW (szFullDstName, - FindFileData.dwFileAttributes); } } Modified: trunk/reactos/dll/win32/userenv/environment.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/userenv/environme…
============================================================================== --- trunk/reactos/dll/win32/userenv/environment.c (original) +++ trunk/reactos/dll/win32/userenv/environment.c Mon May 8 00:23:16 2006 @@ -181,7 +181,7 @@ Error = RegOpenKeyExW (HKEY_USERS, SidString.Buffer, 0, - KEY_ALL_ACCESS, + MAXIMUM_ALLOWED, &hKey); if (Error != ERROR_SUCCESS) { @@ -217,7 +217,7 @@ Error = RegOpenKeyExW (hKey, lpSubKeyName, 0, - KEY_ALL_ACCESS, + KEY_QUERY_VALUE, &hEnvKey); if (Error != ERROR_SUCCESS) { Modified: trunk/reactos/dll/win32/userenv/profile.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/userenv/profile.c…
============================================================================== --- trunk/reactos/dll/win32/userenv/profile.c (original) +++ trunk/reactos/dll/win32/userenv/profile.c Mon May 8 00:23:16 2006 @@ -121,7 +121,7 @@ Error = RegOpenKeyExW (HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList", 0, - KEY_ALL_ACCESS, + KEY_QUERY_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -181,7 +181,6 @@ { DPRINT1("AppendSystemPostfix() failed\n", GetLastError()); LocalFree ((HLOCAL)SidString); - RegCloseKey (hKey); return FALSE; } @@ -362,7 +361,7 @@ Error = RegOpenKeyExW (HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList", 0, - KEY_READ, + KEY_QUERY_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -482,7 +481,7 @@ Error = RegOpenKeyExW (HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList", 0, - KEY_READ, + KEY_QUERY_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -602,7 +601,7 @@ Error = RegOpenKeyExW (HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList", 0, - KEY_READ, + KEY_QUERY_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -725,7 +724,7 @@ Error = RegOpenKeyExW (HKEY_LOCAL_MACHINE, szKeyName, 0, - KEY_ALL_ACCESS, + KEY_QUERY_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -798,7 +797,7 @@ if (RegOpenKeyExW (HKEY_USERS, SidString.Buffer, 0, - KEY_ALL_ACCESS, + MAXIMUM_ALLOWED, &hKey)) { DPRINT ("Profile not loaded\n"); @@ -896,7 +895,7 @@ Error = RegOpenKeyExW (HKEY_USERS, SidString.Buffer, 0, - KEY_ALL_ACCESS, + MAXIMUM_ALLOWED, (PHKEY)&lpProfileInfo->hProfile); if (Error != ERROR_SUCCESS) { Modified: trunk/reactos/dll/win32/userenv/setup.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/userenv/setup.c?r…
============================================================================== --- trunk/reactos/dll/win32/userenv/setup.c (original) +++ trunk/reactos/dll/win32/userenv/setup.c Mon May 8 00:23:16 2006 @@ -127,7 +127,7 @@ Error = RegOpenKeyExW (HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -256,7 +256,7 @@ Error = RegOpenKeyExW(HKEY_USERS, L".Default\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -328,7 +328,7 @@ Error = RegOpenKeyExW(HKEY_USERS, L".Default\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -388,7 +388,7 @@ Error = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -472,7 +472,7 @@ Error = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -525,7 +525,7 @@ Error = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -589,7 +589,6 @@ MAX_PATH)) { DPRINT1("Error: %lu\n", GetLastError()); - RegCloseKey (hKey); return FALSE; } @@ -597,7 +596,7 @@ Error = RegOpenKeyExW (HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hKey); if (Error != ERROR_SUCCESS) { @@ -657,7 +656,7 @@ Error = RegOpenKeyExW(hUserKey, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", 0, - KEY_ALL_ACCESS, + KEY_SET_VALUE, &hFoldersKey); if (Error != ERROR_SUCCESS) {
18 years, 7 months
1
0
0
0
[ekohl] 21845: The NPFS_FCB struct is actually a CCB (Context Control Block) instead of an FCB (File Control Block). Rename it accordingly and store pointers to it in FileObject->FsContext2 instead of FileObject->FsContext.
by ekohl@svn.reactos.org
Author: ekohl Date: Sun May 7 23:56:32 2006 New Revision: 21845 URL:
http://svn.reactos.ru/svn/reactos?rev=21845&view=rev
Log: The NPFS_FCB struct is actually a CCB (Context Control Block) instead of an FCB (File Control Block). Rename it accordingly and store pointers to it in FileObject->FsContext2 instead of FileObject->FsContext. Modified: trunk/reactos/drivers/filesystems/np/create.c trunk/reactos/drivers/filesystems/np/finfo.c trunk/reactos/drivers/filesystems/np/fsctrl.c trunk/reactos/drivers/filesystems/np/npfs.h trunk/reactos/drivers/filesystems/np/rw.c Modified: trunk/reactos/drivers/filesystems/np/create.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/np/crea…
============================================================================== --- trunk/reactos/drivers/filesystems/np/create.c (original) +++ trunk/reactos/drivers/filesystems/np/create.c Sun May 7 23:56:32 2006 @@ -41,7 +41,7 @@ } -static PNPFS_FCB +static PNPFS_CCB NpfsFindListeningServerInstance(PNPFS_PIPE Pipe) { PLIST_ENTRY CurrentEntry; @@ -54,16 +54,16 @@ { Waiter = CONTAINING_RECORD(CurrentEntry, NPFS_WAITER_ENTRY, Entry); Irp = CONTAINING_RECORD(Waiter, IRP, Tail.Overlay.DriverContext); - if (Waiter->Fcb->PipeState == FILE_PIPE_LISTENING_STATE) + if (Waiter->Ccb->PipeState == FILE_PIPE_LISTENING_STATE) { - DPRINT("Server found! Fcb %p\n", Waiter->Fcb); + DPRINT("Server found! CCB %p\n", Waiter->Ccb); IoAcquireCancelSpinLock(&oldIrql); if (!Irp->Cancel) { (void)IoSetCancelRoutine(Irp, NULL); IoReleaseCancelSpinLock(oldIrql); - return Waiter->Fcb; + return Waiter->Ccb; } IoReleaseCancelSpinLock(oldIrql); } @@ -77,7 +77,7 @@ static VOID NpfsSignalAndRemoveListeningServerInstance(PNPFS_PIPE Pipe, - PNPFS_FCB Fcb) + PNPFS_CCB Ccb) { PLIST_ENTRY CurrentEntry; PNPFS_WAITER_ENTRY Waiter; @@ -87,9 +87,9 @@ while (CurrentEntry != &Pipe->WaiterListHead) { Waiter = CONTAINING_RECORD(CurrentEntry, NPFS_WAITER_ENTRY, Entry); - if (Waiter->Fcb == Fcb) + if (Waiter->Ccb == Ccb) { - DPRINT("Server found! Fcb %p\n", Waiter->Fcb); + DPRINT("Server found! CCB %p\n", Waiter->Ccb); RemoveEntryList(&Waiter->Entry); Irp = CONTAINING_RECORD(Waiter, IRP, Tail.Overlay.DriverContext); @@ -110,8 +110,8 @@ PEXTENDED_IO_STACK_LOCATION IoStack; PFILE_OBJECT FileObject; PNPFS_PIPE Pipe; - PNPFS_FCB ClientFcb; - PNPFS_FCB ServerFcb = NULL; + PNPFS_CCB ClientCcb; + PNPFS_CCB ServerCcb = NULL; PNPFS_DEVICE_EXTENSION DeviceExt; BOOLEAN SpecialAccess; ACCESS_MASK DesiredAccess; @@ -152,42 +152,42 @@ KeUnlockMutex(&DeviceExt->PipeListLock); /* - * Acquire the lock for FCB lists. From now on no modifications to the - * FCB lists are allowed, because it can cause various misconsistencies. + * Acquire the lock for CCB lists. From now on no modifications to the + * CCB lists are allowed, because it can cause various misconsistencies. */ - KeLockMutex(&Pipe->FcbListLock); + KeLockMutex(&Pipe->CcbListLock); /* - * Step 2. Create the client FCB. + * Step 2. Create the client CCB. */ - ClientFcb = ExAllocatePool(NonPagedPool, sizeof(NPFS_FCB)); - if (ClientFcb == NULL) + ClientCcb = ExAllocatePool(NonPagedPool, sizeof(NPFS_CCB)); + if (ClientCcb == NULL) { DPRINT("No memory!\n"); - KeUnlockMutex(&Pipe->FcbListLock); + KeUnlockMutex(&Pipe->CcbListLock); Irp->IoStatus.Status = STATUS_NO_MEMORY; IoCompleteRequest(Irp, IO_NO_INCREMENT); return STATUS_NO_MEMORY; } - ClientFcb->Thread = (struct ETHREAD *)Irp->Tail.Overlay.Thread; - ClientFcb->Pipe = Pipe; - ClientFcb->PipeEnd = FILE_PIPE_CLIENT_END; - ClientFcb->OtherSide = NULL; - ClientFcb->PipeState = SpecialAccess ? 0 : FILE_PIPE_DISCONNECTED_STATE; - InitializeListHead(&ClientFcb->ReadRequestListHead); - - DPRINT("Fcb: %x\n", ClientFcb); + ClientCcb->Thread = (struct ETHREAD *)Irp->Tail.Overlay.Thread; + ClientCcb->Pipe = Pipe; + ClientCcb->PipeEnd = FILE_PIPE_CLIENT_END; + ClientCcb->OtherSide = NULL; + ClientCcb->PipeState = SpecialAccess ? 0 : FILE_PIPE_DISCONNECTED_STATE; + InitializeListHead(&ClientCcb->ReadRequestListHead); + + DPRINT("CCB: %p\n", ClientCcb); /* Initialize data list. */ if (Pipe->OutboundQuota) { - ClientFcb->Data = ExAllocatePool(PagedPool, Pipe->OutboundQuota); - if (ClientFcb->Data == NULL) + ClientCcb->Data = ExAllocatePool(PagedPool, Pipe->OutboundQuota); + if (ClientCcb->Data == NULL) { DPRINT("No memory!\n"); - ExFreePool(ClientFcb); - KeUnlockMutex(&Pipe->FcbListLock); + ExFreePool(ClientCcb); + KeUnlockMutex(&Pipe->CcbListLock); Irp->IoStatus.Status = STATUS_NO_MEMORY; IoCompleteRequest(Irp, IO_NO_INCREMENT); return STATUS_NO_MEMORY; @@ -195,50 +195,50 @@ } else { - ClientFcb->Data = NULL; - } - - ClientFcb->ReadPtr = ClientFcb->Data; - ClientFcb->WritePtr = ClientFcb->Data; - ClientFcb->ReadDataAvailable = 0; - ClientFcb->WriteQuotaAvailable = Pipe->OutboundQuota; - ClientFcb->MaxDataLength = Pipe->OutboundQuota; - ExInitializeFastMutex(&ClientFcb->DataListLock); - KeInitializeEvent(&ClientFcb->ConnectEvent, SynchronizationEvent, FALSE); - KeInitializeEvent(&ClientFcb->ReadEvent, SynchronizationEvent, FALSE); - KeInitializeEvent(&ClientFcb->WriteEvent, SynchronizationEvent, FALSE); + ClientCcb->Data = NULL; + } + + ClientCcb->ReadPtr = ClientCcb->Data; + ClientCcb->WritePtr = ClientCcb->Data; + ClientCcb->ReadDataAvailable = 0; + ClientCcb->WriteQuotaAvailable = Pipe->OutboundQuota; + ClientCcb->MaxDataLength = Pipe->OutboundQuota; + ExInitializeFastMutex(&ClientCcb->DataListLock); + KeInitializeEvent(&ClientCcb->ConnectEvent, SynchronizationEvent, FALSE); + KeInitializeEvent(&ClientCcb->ReadEvent, SynchronizationEvent, FALSE); + KeInitializeEvent(&ClientCcb->WriteEvent, SynchronizationEvent, FALSE); /* - * Step 3. Search for listening server FCB. + * Step 3. Search for listening server CCB. */ if (!SpecialAccess) { /* - * WARNING: Point of no return! Once we get the server FCB it's + * WARNING: Point of no return! Once we get the server CCB it's * possible that we completed a wait request and so we have to * complete even this request. */ - ServerFcb = NpfsFindListeningServerInstance(Pipe); - if (ServerFcb == NULL) + ServerCcb = NpfsFindListeningServerInstance(Pipe); + if (ServerCcb == NULL) { PLIST_ENTRY CurrentEntry; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; /* - * If no waiting server FCB was found then try to pick - * one of the listing server FCB on the pipe. + * If no waiting server CCB was found then try to pick + * one of the listing server CCB on the pipe. */ - CurrentEntry = Pipe->ServerFcbListHead.Flink; - while (CurrentEntry != &Pipe->ServerFcbListHead) + CurrentEntry = Pipe->ServerCcbListHead.Flink; + while (CurrentEntry != &Pipe->ServerCcbListHead) { - Fcb = CONTAINING_RECORD(CurrentEntry, NPFS_FCB, FcbListEntry); - if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE) + Ccb = CONTAINING_RECORD(CurrentEntry, NPFS_CCB, CcbListEntry); + if (Ccb->PipeState == FILE_PIPE_LISTENING_STATE) { - ServerFcb = Fcb; + ServerCcb = Ccb; break; } CurrentEntry = CurrentEntry->Flink; @@ -248,13 +248,13 @@ * No one is listening to me?! I'm so lonely... :( */ - if (ServerFcb == NULL) + if (ServerCcb == NULL) { /* Not found, bail out with error for FILE_OPEN requests. */ - DPRINT("No listening server fcb found!\n"); - if (ClientFcb->Data) - ExFreePool(ClientFcb->Data); - KeUnlockMutex(&Pipe->FcbListLock); + DPRINT("No listening server CCB found!\n"); + if (ClientCcb->Data) + ExFreePool(ClientCcb->Data); + KeUnlockMutex(&Pipe->CcbListLock); Irp->IoStatus.Status = STATUS_PIPE_BUSY; IoCompleteRequest(Irp, IO_NO_INCREMENT); return STATUS_PIPE_BUSY; @@ -264,37 +264,37 @@ { /* Signal the server thread and remove it from the waiter list */ /* FIXME: Merge this with the NpfsFindListeningServerInstance routine. */ - NpfsSignalAndRemoveListeningServerInstance(Pipe, ServerFcb); + NpfsSignalAndRemoveListeningServerInstance(Pipe, ServerCcb); } } - else if (IsListEmpty(&Pipe->ServerFcbListHead)) + else if (IsListEmpty(&Pipe->ServerCcbListHead)) { DPRINT("No server fcb found!\n"); - KeUnlockMutex(&Pipe->FcbListLock); + KeUnlockMutex(&Pipe->CcbListLock); Irp->IoStatus.Status = STATUS_UNSUCCESSFUL; IoCompleteRequest(Irp, IO_NO_INCREMENT); return STATUS_UNSUCCESSFUL; } /* - * Step 4. Add the client FCB to a list and connect it if possible. + * Step 4. Add the client CCB to a list and connect it if possible. */ - /* Add the client FCB to the pipe FCB list. */ - InsertTailList(&Pipe->ClientFcbListHead, &ClientFcb->FcbListEntry); + /* Add the client CCB to the pipe CCB list. */ + InsertTailList(&Pipe->ClientCcbListHead, &ClientCcb->CcbListEntry); /* Connect to listening server side */ - if (ServerFcb) - { - ClientFcb->OtherSide = ServerFcb; - ServerFcb->OtherSide = ClientFcb; - ClientFcb->PipeState = FILE_PIPE_CONNECTED_STATE; - ServerFcb->PipeState = FILE_PIPE_CONNECTED_STATE; - } - - KeUnlockMutex(&Pipe->FcbListLock); - - FileObject->FsContext = ClientFcb; + if (ServerCcb) + { + ClientCcb->OtherSide = ServerCcb; + ServerCcb->OtherSide = ClientCcb; + ClientCcb->PipeState = FILE_PIPE_CONNECTED_STATE; + ServerCcb->PipeState = FILE_PIPE_CONNECTED_STATE; + } + + KeUnlockMutex(&Pipe->CcbListLock); + + FileObject->FsContext2 = ClientCcb; FileObject->Flags |= FO_NAMED_PIPE; Irp->IoStatus.Status = STATUS_SUCCESS; @@ -314,7 +314,7 @@ PFILE_OBJECT FileObject; PNPFS_DEVICE_EXTENSION DeviceExt; PNPFS_PIPE Pipe; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; PNAMED_PIPE_CREATE_PARAMETERS Buffer; BOOLEAN NewPipe = FALSE; @@ -338,15 +338,15 @@ return STATUS_INVALID_PARAMETER; } - Fcb = ExAllocatePool(NonPagedPool, sizeof(NPFS_FCB)); - if (Fcb == NULL) + Ccb = ExAllocatePool(NonPagedPool, sizeof(NPFS_CCB)); + if (Ccb == NULL) { Irp->IoStatus.Status = STATUS_NO_MEMORY; IoCompleteRequest(Irp, IO_NO_INCREMENT); return STATUS_NO_MEMORY; } - Fcb->Thread = (struct ETHREAD *)Irp->Tail.Overlay.Thread; + Ccb->Thread = (struct ETHREAD *)Irp->Tail.Overlay.Thread; KeLockMutex(&DeviceExt->PipeListLock); /* @@ -365,7 +365,7 @@ if (Pipe->CurrentInstances >= Pipe->MaximumInstances) { DPRINT("Out of instances.\n"); - ExFreePool(Fcb); + ExFreePool(Ccb); Irp->IoStatus.Status = STATUS_PIPE_BUSY; IoCompleteRequest(Irp, IO_NO_INCREMENT); return STATUS_PIPE_BUSY; @@ -376,7 +376,7 @@ Pipe->TimeOut.QuadPart != Buffer->DefaultTimeout.QuadPart) { DPRINT("Asked for invalid pipe mode.\n"); - ExFreePool(Fcb); + ExFreePool(Ccb); Irp->IoStatus.Status = STATUS_ACCESS_DENIED; IoCompleteRequest(Irp, IO_NO_INCREMENT); return STATUS_ACCESS_DENIED; @@ -402,7 +402,7 @@ { KeUnlockMutex(&DeviceExt->PipeListLock); ExFreePool(Pipe); - ExFreePool(Fcb); + ExFreePool(Ccb); Irp->IoStatus.Status = STATUS_NO_MEMORY; Irp->IoStatus.Information = 0; IoCompleteRequest(Irp, IO_NO_INCREMENT); @@ -411,10 +411,10 @@ RtlCopyUnicodeString(&Pipe->PipeName, &FileObject->FileName); - InitializeListHead(&Pipe->ServerFcbListHead); - InitializeListHead(&Pipe->ClientFcbListHead); + InitializeListHead(&Pipe->ServerCcbListHead); + InitializeListHead(&Pipe->ClientCcbListHead); InitializeListHead(&Pipe->WaiterListHead); - KeInitializeMutex(&Pipe->FcbListLock, 0); + KeInitializeMutex(&Pipe->CcbListLock, 0); Pipe->PipeType = Buffer->NamedPipeType; Pipe->WriteMode = Buffer->ReadMode; @@ -490,10 +490,10 @@ if (Pipe->InboundQuota) { - Fcb->Data = ExAllocatePool(PagedPool, Pipe->InboundQuota); - if (Fcb->Data == NULL) - { - ExFreePool(Fcb); + Ccb->Data = ExAllocatePool(PagedPool, Pipe->InboundQuota); + if (Ccb->Data == NULL) + { + ExFreePool(Ccb); if (NewPipe) { @@ -511,35 +511,35 @@ } else { - Fcb->Data = NULL; + Ccb->Data = NULL; } - Fcb->ReadPtr = Fcb->Data; - Fcb->WritePtr = Fcb->Data; - Fcb->ReadDataAvailable = 0; - Fcb->WriteQuotaAvailable = Pipe->InboundQuota; - Fcb->MaxDataLength = Pipe->InboundQuota; - InitializeListHead(&Fcb->ReadRequestListHead); - ExInitializeFastMutex(&Fcb->DataListLock); + Ccb->ReadPtr = Ccb->Data; + Ccb->WritePtr = Ccb->Data; + Ccb->ReadDataAvailable = 0; + Ccb->WriteQuotaAvailable = Pipe->InboundQuota; + Ccb->MaxDataLength = Pipe->InboundQuota; + InitializeListHead(&Ccb->ReadRequestListHead); + ExInitializeFastMutex(&Ccb->DataListLock); Pipe->CurrentInstances++; - Fcb->Pipe = Pipe; - Fcb->PipeEnd = FILE_PIPE_SERVER_END; - Fcb->PipeState = FILE_PIPE_LISTENING_STATE; - Fcb->OtherSide = NULL; - - DPRINT("Fcb: %x\n", Fcb); - - KeInitializeEvent(&Fcb->ConnectEvent, SynchronizationEvent, FALSE); - KeInitializeEvent(&Fcb->ReadEvent, SynchronizationEvent, FALSE); - KeInitializeEvent(&Fcb->WriteEvent, SynchronizationEvent, FALSE); - - KeLockMutex(&Pipe->FcbListLock); - InsertTailList(&Pipe->ServerFcbListHead, &Fcb->FcbListEntry); - KeUnlockMutex(&Pipe->FcbListLock); - - FileObject->FsContext = Fcb; + Ccb->Pipe = Pipe; + Ccb->PipeEnd = FILE_PIPE_SERVER_END; + Ccb->PipeState = FILE_PIPE_LISTENING_STATE; + Ccb->OtherSide = NULL; + + DPRINT("CCB: %x\n", Ccb); + + KeInitializeEvent(&Ccb->ConnectEvent, SynchronizationEvent, FALSE); + KeInitializeEvent(&Ccb->ReadEvent, SynchronizationEvent, FALSE); + KeInitializeEvent(&Ccb->WriteEvent, SynchronizationEvent, FALSE); + + KeLockMutex(&Pipe->CcbListLock); + InsertTailList(&Pipe->ServerCcbListHead, &Ccb->CcbListEntry); + KeUnlockMutex(&Pipe->CcbListLock); + + FileObject->FsContext2 = Ccb; FileObject->Flags |= FO_NAMED_PIPE; Irp->IoStatus.Status = STATUS_SUCCESS; @@ -558,7 +558,7 @@ PNPFS_DEVICE_EXTENSION DeviceExt; PIO_STACK_LOCATION IoStack; PFILE_OBJECT FileObject; - PNPFS_FCB Fcb, OtherSide; + PNPFS_CCB Ccb, OtherSide; PNPFS_PIPE Pipe; BOOLEAN Server; @@ -567,9 +567,9 @@ IoStack = IoGetCurrentIrpStackLocation(Irp); DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension; FileObject = IoStack->FileObject; - Fcb = FileObject->FsContext; - - if (Fcb == NULL) + Ccb = FileObject->FsContext2; + + if (Ccb == NULL) { DPRINT("Success!\n"); Irp->IoStatus.Status = STATUS_SUCCESS; @@ -578,14 +578,14 @@ return STATUS_SUCCESS; } - DPRINT("Fcb %x\n", Fcb); - Pipe = Fcb->Pipe; + DPRINT("CCB %p\n", Ccb); + Pipe = Ccb->Pipe; DPRINT("Cleaning pipe %wZ\n", &Pipe->PipeName); - KeLockMutex(&Pipe->FcbListLock); - - Server = (Fcb->PipeEnd == FILE_PIPE_SERVER_END); + KeLockMutex(&Pipe->CcbListLock); + + Server = (Ccb->PipeEnd == FILE_PIPE_SERVER_END); if (Server) { @@ -596,19 +596,19 @@ { DPRINT("Client\n"); } - if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE) - { - OtherSide = Fcb->OtherSide; + if (Ccb->PipeState == FILE_PIPE_CONNECTED_STATE) + { + OtherSide = Ccb->OtherSide; /* Lock the server first */ if (Server) { - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); ExAcquireFastMutex(&OtherSide->DataListLock); } else { ExAcquireFastMutex(&OtherSide->DataListLock); - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); } OtherSide->PipeState = FILE_PIPE_DISCONNECTED_STATE; OtherSide->OtherSide = NULL; @@ -621,15 +621,15 @@ if (Server) { ExReleaseFastMutex(&OtherSide->DataListLock); - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); } else { - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); ExReleaseFastMutex(&OtherSide->DataListLock); } } - else if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE) + else if (Ccb->PipeState == FILE_PIPE_LISTENING_STATE) { PLIST_ENTRY Entry; PNPFS_WAITER_ENTRY WaitEntry = NULL; @@ -637,11 +637,11 @@ KIRQL oldIrql; PIRP tmpIrp; - Entry = Fcb->Pipe->WaiterListHead.Flink; - while (Entry != &Fcb->Pipe->WaiterListHead) + Entry = Ccb->Pipe->WaiterListHead.Flink; + while (Entry != &Ccb->Pipe->WaiterListHead) { WaitEntry = CONTAINING_RECORD(Entry, NPFS_WAITER_ENTRY, Entry); - if (WaitEntry->Fcb == Fcb) + if (WaitEntry->Ccb == Ccb) { RemoveEntryList(Entry); tmpIrp = CONTAINING_RECORD(WaitEntry, IRP, Tail.Overlay.DriverContext); @@ -664,19 +664,19 @@ } } - Fcb->PipeState = FILE_PIPE_CLOSING_STATE; - - KeUnlockMutex(&Pipe->FcbListLock); - - ExAcquireFastMutex(&Fcb->DataListLock); - if (Fcb->Data) - { - ExFreePool(Fcb->Data); - Fcb->Data = NULL; - Fcb->ReadPtr = NULL; - Fcb->WritePtr = NULL; - } - ExReleaseFastMutex(&Fcb->DataListLock); + Ccb->PipeState = FILE_PIPE_CLOSING_STATE; + + KeUnlockMutex(&Pipe->CcbListLock); + + ExAcquireFastMutex(&Ccb->DataListLock); + if (Ccb->Data) + { + ExFreePool(Ccb->Data); + Ccb->Data = NULL; + Ccb->ReadPtr = NULL; + Ccb->WritePtr = NULL; + } + ExReleaseFastMutex(&Ccb->DataListLock); Irp->IoStatus.Status = STATUS_SUCCESS; Irp->IoStatus.Information = 0; @@ -694,7 +694,7 @@ PNPFS_DEVICE_EXTENSION DeviceExt; PIO_STACK_LOCATION IoStack; PFILE_OBJECT FileObject; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; PNPFS_PIPE Pipe; BOOLEAN Server; @@ -703,9 +703,9 @@ IoStack = IoGetCurrentIrpStackLocation(Irp); DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension; FileObject = IoStack->FileObject; - Fcb = FileObject->FsContext; - - if (Fcb == NULL) + Ccb = FileObject->FsContext2; + + if (Ccb == NULL) { DPRINT("Success!\n"); Irp->IoStatus.Status = STATUS_SUCCESS; @@ -714,14 +714,14 @@ return STATUS_SUCCESS; } - DPRINT("Fcb %x\n", Fcb); - Pipe = Fcb->Pipe; + DPRINT("CCB %x\n", Ccb); + Pipe = Ccb->Pipe; DPRINT("Closing pipe %wZ\n", &Pipe->PipeName); - KeLockMutex(&Pipe->FcbListLock); - - Server = (Fcb->PipeEnd == FILE_PIPE_SERVER_END); + KeLockMutex(&Pipe->CcbListLock); + + Server = (Ccb->PipeEnd == FILE_PIPE_SERVER_END); if (Server) { @@ -733,18 +733,18 @@ DPRINT("Client\n"); } - ASSERT (Fcb->PipeState == FILE_PIPE_CLOSING_STATE); - - FileObject->FsContext = NULL; - - RemoveEntryList(&Fcb->FcbListEntry); - - ExFreePool(Fcb); - - KeUnlockMutex(&Pipe->FcbListLock); - - if (IsListEmpty(&Pipe->ServerFcbListHead) && - IsListEmpty(&Pipe->ClientFcbListHead)) + ASSERT(Ccb->PipeState == FILE_PIPE_CLOSING_STATE); + + FileObject->FsContext2 = NULL; + + RemoveEntryList(&Ccb->CcbListEntry); + + ExFreePool(Ccb); + + KeUnlockMutex(&Pipe->CcbListLock); + + if (IsListEmpty(&Pipe->ServerCcbListHead) && + IsListEmpty(&Pipe->ClientCcbListHead)) { RtlFreeUnicodeString(&Pipe->PipeName); KeLockMutex(&DeviceExt->PipeListLock); Modified: trunk/reactos/drivers/filesystems/np/finfo.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/np/finf…
============================================================================== --- trunk/reactos/drivers/filesystems/np/finfo.c (original) +++ trunk/reactos/drivers/filesystems/np/finfo.c Sun May 7 23:56:32 2006 @@ -18,7 +18,7 @@ static NTSTATUS NpfsSetPipeInformation(PDEVICE_OBJECT DeviceObject, - PNPFS_FCB Fcb, + PNPFS_CCB Ccb, PFILE_PIPE_INFORMATION Info, PULONG BufferLength) { @@ -27,21 +27,21 @@ DPRINT("NpfsSetPipeInformation()\n"); /* Get the Pipe and data */ - Pipe = Fcb->Pipe; + Pipe = Ccb->Pipe; Request = (PFILE_PIPE_INFORMATION)Info; - + /* Set Pipe Data */ Pipe->ReadMode = Request->ReadMode; Pipe->CompletionMode = Request->CompletionMode; /* Return Success */ - return STATUS_SUCCESS; + return STATUS_SUCCESS; } static NTSTATUS NpfsSetPipeRemoteInformation(PDEVICE_OBJECT DeviceObject, - PNPFS_FCB Fcb, + PNPFS_CCB Ccb, PFILE_PIPE_INFORMATION Info, PULONG BufferLength) { @@ -50,21 +50,21 @@ DPRINT("NpfsSetPipeRemoteInformation()\n"); /* Get the Pipe and data */ - Pipe = Fcb->Pipe; + Pipe = Ccb->Pipe; Request = (PFILE_PIPE_REMOTE_INFORMATION)Info; - + /* Set the Settings */ Pipe->TimeOut = Request->CollectDataTime; Pipe->InboundQuota = Request->MaximumCollectionCount; - + /* Return Success */ return STATUS_SUCCESS; } - -static + +static NTSTATUS NpfsQueryPipeInformation(PDEVICE_OBJECT DeviceObject, - PNPFS_FCB Fcb, + PNPFS_CCB Ccb, PFILE_PIPE_INFORMATION Info, PULONG BufferLength) { @@ -72,24 +72,24 @@ DPRINT("NpfsQueryPipeInformation()\n"); /* Get the Pipe */ - Pipe = Fcb->Pipe; - + Pipe = Ccb->Pipe; + /* Clear Info */ RtlZeroMemory(Info, sizeof(FILE_PIPE_INFORMATION)); /* Return Info */ Info->CompletionMode = Pipe->CompletionMode; Info->ReadMode = Pipe->ReadMode; - + /* Return success */ *BufferLength -= sizeof(FILE_PIPE_INFORMATION); return STATUS_SUCCESS; } -static +static NTSTATUS NpfsQueryPipeRemoteInformation(PDEVICE_OBJECT DeviceObject, - PNPFS_FCB Fcb, + PNPFS_CCB Ccb, PFILE_PIPE_REMOTE_INFORMATION Info, PULONG BufferLength) { @@ -97,15 +97,15 @@ DPRINT("NpfsQueryPipeRemoteInformation()\n"); /* Get the Pipe */ - Pipe = Fcb->Pipe; - + Pipe = Ccb->Pipe; + /* Clear Info */ RtlZeroMemory(Info, sizeof(FILE_PIPE_REMOTE_INFORMATION)); /* Return Info */ Info->MaximumCollectionCount = Pipe->InboundQuota; Info->CollectDataTime = Pipe->TimeOut; - + /* Return success */ *BufferLength -= sizeof(FILE_PIPE_REMOTE_INFORMATION); return STATUS_SUCCESS; @@ -114,7 +114,7 @@ static NTSTATUS NpfsQueryLocalPipeInformation(PDEVICE_OBJECT DeviceObject, - PNPFS_FCB Fcb, + PNPFS_CCB Ccb, PFILE_PIPE_LOCAL_INFORMATION Info, PULONG BufferLength) { @@ -122,7 +122,7 @@ DPRINT("NpfsQueryLocalPipeInformation()\n"); - Pipe = Fcb->Pipe; + Pipe = Ccb->Pipe; RtlZeroMemory(Info, sizeof(FILE_PIPE_LOCAL_INFORMATION)); @@ -133,18 +133,18 @@ Info->CurrentInstances = Pipe->CurrentInstances; Info->InboundQuota = Pipe->InboundQuota; Info->OutboundQuota = Pipe->OutboundQuota; - Info->NamedPipeState = Fcb->PipeState; - Info->NamedPipeEnd = Fcb->PipeEnd; - - if (Fcb->PipeEnd == FILE_PIPE_SERVER_END) - { - Info->ReadDataAvailable = Fcb->ReadDataAvailable; - Info->WriteQuotaAvailable = Fcb->WriteQuotaAvailable; - } - else if (Fcb->OtherSide != NULL) - { - Info->ReadDataAvailable = Fcb->OtherSide->ReadDataAvailable; - Info->WriteQuotaAvailable = Fcb->OtherSide->WriteQuotaAvailable; + Info->NamedPipeState = Ccb->PipeState; + Info->NamedPipeEnd = Ccb->PipeEnd; + + if (Ccb->PipeEnd == FILE_PIPE_SERVER_END) + { + Info->ReadDataAvailable = Ccb->ReadDataAvailable; + Info->WriteQuotaAvailable = Ccb->WriteQuotaAvailable; + } + else if (Ccb->OtherSide != NULL) + { + Info->ReadDataAvailable = Ccb->OtherSide->ReadDataAvailable; + Info->WriteQuotaAvailable = Ccb->OtherSide->WriteQuotaAvailable; } *BufferLength -= sizeof(FILE_PIPE_LOCAL_INFORMATION); @@ -160,7 +160,7 @@ FILE_INFORMATION_CLASS FileInformationClass; PFILE_OBJECT FileObject; PNPFS_DEVICE_EXTENSION DeviceExtension; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; PNPFS_PIPE Pipe; PVOID SystemBuffer; ULONG BufferLength; @@ -172,8 +172,8 @@ FileInformationClass = IoStack->Parameters.QueryFile.FileInformationClass; DeviceExtension = DeviceObject->DeviceExtension; FileObject = IoStack->FileObject; - Fcb = (PNPFS_FCB)FileObject->FsContext; - Pipe = Fcb->Pipe; + Ccb = (PNPFS_CCB)FileObject->FsContext2; + Pipe = Ccb->Pipe; SystemBuffer = Irp->AssociatedIrp.SystemBuffer; BufferLength = IoStack->Parameters.QueryFile.Length; @@ -187,21 +187,21 @@ { case FilePipeInformation: Status = NpfsQueryPipeInformation(DeviceObject, - Fcb, + Ccb, SystemBuffer, &BufferLength); break; case FilePipeLocalInformation: Status = NpfsQueryLocalPipeInformation(DeviceObject, - Fcb, + Ccb, SystemBuffer, &BufferLength); break; case FilePipeRemoteInformation: Status = NpfsQueryPipeRemoteInformation(DeviceObject, - Fcb, + Ccb, SystemBuffer, &BufferLength); break; @@ -229,7 +229,7 @@ PIO_STACK_LOCATION IoStack; FILE_INFORMATION_CLASS FileInformationClass; PFILE_OBJECT FileObject; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; PNPFS_PIPE Pipe; PVOID SystemBuffer; ULONG BufferLength; @@ -240,8 +240,8 @@ IoStack = IoGetCurrentIrpStackLocation (Irp); FileInformationClass = IoStack->Parameters.QueryFile.FileInformationClass; FileObject = IoStack->FileObject; - Fcb = (PNPFS_FCB)FileObject->FsContext; - Pipe = Fcb->Pipe; + Ccb = (PNPFS_CCB)FileObject->FsContext2; + Pipe = Ccb->Pipe; SystemBuffer = Irp->AssociatedIrp.SystemBuffer; BufferLength = IoStack->Parameters.QueryFile.Length; @@ -256,19 +256,19 @@ case FilePipeInformation: /* Call the handler */ Status = NpfsSetPipeInformation(DeviceObject, - Fcb, + Ccb, SystemBuffer, &BufferLength); break; - + case FilePipeLocalInformation: Status = STATUS_NOT_IMPLEMENTED; break; - + case FilePipeRemoteInformation: /* Call the handler */ Status = NpfsSetPipeRemoteInformation(DeviceObject, - Fcb, + Ccb, SystemBuffer, &BufferLength); break; Modified: trunk/reactos/drivers/filesystems/np/fsctrl.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/np/fsct…
============================================================================== --- trunk/reactos/drivers/filesystems/np/fsctrl.c (original) +++ trunk/reactos/drivers/filesystems/np/fsctrl.c Sun May 7 23:56:32 2006 @@ -25,14 +25,14 @@ Waiter = (PNPFS_WAITER_ENTRY)&Irp->Tail.Overlay.DriverContext; DPRINT1("NpfsListeningCancelRoutine() called for <%wZ>\n", - &Waiter->Fcb->Pipe->PipeName); + &Waiter->Ccb->Pipe->PipeName); IoReleaseCancelSpinLock(Irp->CancelIrql); - KeLockMutex(&Waiter->Fcb->Pipe->FcbListLock); + KeLockMutex(&Waiter->Ccb->Pipe->CcbListLock); RemoveEntryList(&Waiter->Entry); - KeUnlockMutex(&Waiter->Fcb->Pipe->FcbListLock); + KeUnlockMutex(&Waiter->Ccb->Pipe->CcbListLock); Irp->IoStatus.Status = STATUS_CANCELLED; Irp->IoStatus.Information = 0; @@ -42,26 +42,26 @@ static NTSTATUS NpfsAddListeningServerInstance(PIRP Irp, - PNPFS_FCB Fcb) + PNPFS_CCB Ccb) { PNPFS_WAITER_ENTRY Entry; KIRQL oldIrql; Entry = (PNPFS_WAITER_ENTRY)&Irp->Tail.Overlay.DriverContext; - Entry->Fcb = Fcb; - - KeLockMutex(&Fcb->Pipe->FcbListLock); + Entry->Ccb = Ccb; + + KeLockMutex(&Ccb->Pipe->CcbListLock); IoMarkIrpPending(Irp); - InsertTailList(&Fcb->Pipe->WaiterListHead, &Entry->Entry); + InsertTailList(&Ccb->Pipe->WaiterListHead, &Entry->Entry); IoAcquireCancelSpinLock(&oldIrql); if (!Irp->Cancel) { (void)IoSetCancelRoutine(Irp, NpfsListeningCancelRoutine); IoReleaseCancelSpinLock(oldIrql); - KeUnlockMutex(&Fcb->Pipe->FcbListLock); + KeUnlockMutex(&Ccb->Pipe->CcbListLock); return STATUS_PENDING; } IoReleaseCancelSpinLock(oldIrql); @@ -71,7 +71,7 @@ Irp->IoStatus.Status = STATUS_CANCELLED; Irp->IoStatus.Information = 0; IoCompleteRequest(Irp, IO_NO_INCREMENT); - KeUnlockMutex(&Fcb->Pipe->FcbListLock); + KeUnlockMutex(&Ccb->Pipe->CcbListLock); return STATUS_CANCELLED; } @@ -79,67 +79,67 @@ static NTSTATUS NpfsConnectPipe(PIRP Irp, - PNPFS_FCB Fcb) + PNPFS_CCB Ccb) { PNPFS_PIPE Pipe; PLIST_ENTRY current_entry; - PNPFS_FCB ClientFcb; + PNPFS_CCB ClientCcb; NTSTATUS Status; DPRINT("NpfsConnectPipe()\n"); - if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE) - { - KeResetEvent(&Fcb->ConnectEvent); + if (Ccb->PipeState == FILE_PIPE_CONNECTED_STATE) + { + KeResetEvent(&Ccb->ConnectEvent); return STATUS_PIPE_CONNECTED; } - if (Fcb->PipeState == FILE_PIPE_CLOSING_STATE) + if (Ccb->PipeState == FILE_PIPE_CLOSING_STATE) return STATUS_PIPE_CLOSING; DPRINT("Waiting for connection...\n"); - Pipe = Fcb->Pipe; + Pipe = Ccb->Pipe; /* search for a listening client fcb */ - KeLockMutex(&Pipe->FcbListLock); - - current_entry = Pipe->ClientFcbListHead.Flink; - while (current_entry != &Pipe->ClientFcbListHead) - { - ClientFcb = CONTAINING_RECORD(current_entry, - NPFS_FCB, - FcbListEntry); - - if (ClientFcb->PipeState == 0) + KeLockMutex(&Pipe->CcbListLock); + + current_entry = Pipe->ClientCcbListHead.Flink; + while (current_entry != &Pipe->ClientCcbListHead) + { + ClientCcb = CONTAINING_RECORD(current_entry, + NPFS_CCB, + CcbListEntry); + + if (ClientCcb->PipeState == 0) { - /* found a passive (waiting) client fcb */ - DPRINT("Passive (waiting) client fcb found -- wake the client\n"); - KeSetEvent(&ClientFcb->ConnectEvent, IO_NO_INCREMENT, FALSE); + /* found a passive (waiting) client CCB */ + DPRINT("Passive (waiting) client CCB found -- wake the client\n"); + KeSetEvent(&ClientCcb->ConnectEvent, IO_NO_INCREMENT, FALSE); break; } #if 0 - if (ClientFcb->PipeState == FILE_PIPE_LISTENING_STATE) + if (ClientCcb->PipeState == FILE_PIPE_LISTENING_STATE) { - /* found a listening client fcb */ - DPRINT("Listening client fcb found -- connecting\n"); - - /* connect client and server fcb's */ - Fcb->OtherSide = ClientFcb; - ClientFcb->OtherSide = Fcb; + /* found a listening client CCB */ + DPRINT("Listening client CCB found -- connecting\n"); + + /* connect client and server CCBs */ + Ccb->OtherSide = ClientCcb; + ClientCcb->OtherSide = Ccb; /* set connected state */ - Fcb->PipeState = FILE_PIPE_CONNECTED_STATE; - ClientFcb->PipeState = FILE_PIPE_CONNECTED_STATE; - - KeUnlockMutex(&Pipe->FcbListLock); + Ccb->PipeState = FILE_PIPE_CONNECTED_STATE; + ClientCcb->PipeState = FILE_PIPE_CONNECTED_STATE; + + KeUnlockMutex(&Pipe->CcbListLock); /* FIXME: create and initialize data queues */ /* signal client's connect event */ - DPRINT("Setting the ConnectEvent for %x\n", ClientFcb); - KeSetEvent(&ClientFcb->ConnectEvent, IO_NO_INCREMENT, FALSE); + DPRINT("Setting the ConnectEvent for %x\n", ClientCcb); + KeSetEvent(&ClientCcb->ConnectEvent, IO_NO_INCREMENT, FALSE); return STATUS_PIPE_CONNECTED; } @@ -151,11 +151,11 @@ /* no listening client fcb found */ DPRINT("No listening client fcb found -- waiting for client\n"); - Fcb->PipeState = FILE_PIPE_LISTENING_STATE; - - Status = NpfsAddListeningServerInstance(Irp, Fcb); - - KeUnlockMutex(&Pipe->FcbListLock); + Ccb->PipeState = FILE_PIPE_LISTENING_STATE; + + Status = NpfsAddListeningServerInstance(Irp, Ccb); + + KeUnlockMutex(&Pipe->CcbListLock); DPRINT("NpfsConnectPipe() done (Status %lx)\n", Status); @@ -164,39 +164,39 @@ static NTSTATUS -NpfsDisconnectPipe(PNPFS_FCB Fcb) +NpfsDisconnectPipe(PNPFS_CCB Ccb) { NTSTATUS Status; - PNPFS_FCB OtherSide; + PNPFS_CCB OtherSide; PNPFS_PIPE Pipe; BOOLEAN Server; DPRINT("NpfsDisconnectPipe()\n"); - Pipe = Fcb->Pipe; - KeLockMutex(&Pipe->FcbListLock); - - if (Fcb->PipeState == FILE_PIPE_DISCONNECTED_STATE) + Pipe = Ccb->Pipe; + KeLockMutex(&Pipe->CcbListLock); + + if (Ccb->PipeState == FILE_PIPE_DISCONNECTED_STATE) { DPRINT("Pipe is already disconnected\n"); Status = STATUS_SUCCESS; } - else if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE) + else if (Ccb->PipeState == FILE_PIPE_CONNECTED_STATE) { - Server = (Fcb->PipeEnd == FILE_PIPE_SERVER_END); - OtherSide = Fcb->OtherSide; - Fcb->OtherSide = NULL; - Fcb->PipeState = FILE_PIPE_DISCONNECTED_STATE; + Server = (Ccb->PipeEnd == FILE_PIPE_SERVER_END); + OtherSide = Ccb->OtherSide; + Ccb->OtherSide = NULL; + Ccb->PipeState = FILE_PIPE_DISCONNECTED_STATE; /* Lock the server first */ if (Server) { - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); ExAcquireFastMutex(&OtherSide->DataListLock); } else { ExAcquireFastMutex(&OtherSide->DataListLock); - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); } OtherSide->PipeState = FILE_PIPE_DISCONNECTED_STATE; OtherSide->OtherSide = NULL; @@ -209,27 +209,27 @@ if (Server) { ExReleaseFastMutex(&OtherSide->DataListLock); - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); } else { - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); ExReleaseFastMutex(&OtherSide->DataListLock); } Status = STATUS_SUCCESS; } - else if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE) + else if (Ccb->PipeState == FILE_PIPE_LISTENING_STATE) { PLIST_ENTRY Entry; PNPFS_WAITER_ENTRY WaitEntry = NULL; BOOLEAN Complete = FALSE; PIRP Irp = NULL; - Entry = Fcb->Pipe->WaiterListHead.Flink; - while (Entry != &Fcb->Pipe->WaiterListHead) + Entry = Ccb->Pipe->WaiterListHead.Flink; + while (Entry != &Ccb->Pipe->WaiterListHead) { WaitEntry = CONTAINING_RECORD(Entry, NPFS_WAITER_ENTRY, Entry); - if (WaitEntry->Fcb == Fcb) + if (WaitEntry->Ccb == Ccb) { RemoveEntryList(Entry); Irp = CONTAINING_RECORD(Entry, IRP, Tail.Overlay.DriverContext); @@ -248,10 +248,10 @@ IoCompleteRequest(Irp, IO_NO_INCREMENT); } } - Fcb->PipeState = FILE_PIPE_DISCONNECTED_STATE; + Ccb->PipeState = FILE_PIPE_DISCONNECTED_STATE; Status = STATUS_SUCCESS; } - else if (Fcb->PipeState == FILE_PIPE_CLOSING_STATE) + else if (Ccb->PipeState == FILE_PIPE_CLOSING_STATE) { Status = STATUS_PIPE_CLOSING; } @@ -259,44 +259,44 @@ { Status = STATUS_UNSUCCESSFUL; } - KeUnlockMutex(&Pipe->FcbListLock); + KeUnlockMutex(&Pipe->CcbListLock); return Status; } static NTSTATUS NpfsWaitPipe(PIRP Irp, - PNPFS_FCB Fcb) + PNPFS_CCB Ccb) { PNPFS_PIPE Pipe; PLIST_ENTRY current_entry; - PNPFS_FCB ServerFcb; + PNPFS_CCB ServerCcb; PFILE_PIPE_WAIT_FOR_BUFFER WaitPipe; NTSTATUS Status; DPRINT("NpfsWaitPipe\n"); WaitPipe = (PFILE_PIPE_WAIT_FOR_BUFFER)Irp->AssociatedIrp.SystemBuffer; - Pipe = Fcb->Pipe; - - if (Fcb->PipeState != 0) + Pipe = Ccb->Pipe; + + if (Ccb->PipeState != 0) { DPRINT("Pipe is not in passive (waiting) state!\n"); return STATUS_UNSUCCESSFUL; } /* search for listening server */ - current_entry = Pipe->ServerFcbListHead.Flink; - while (current_entry != &Pipe->ServerFcbListHead) - { - ServerFcb = CONTAINING_RECORD(current_entry, - NPFS_FCB, - FcbListEntry); - - if (ServerFcb->PipeState == FILE_PIPE_LISTENING_STATE) + current_entry = Pipe->ServerCcbListHead.Flink; + while (current_entry != &Pipe->ServerCcbListHead) + { + ServerCcb = CONTAINING_RECORD(current_entry, + NPFS_CCB, + CcbListEntry); + + if (ServerCcb->PipeState == FILE_PIPE_LISTENING_STATE) { - /* found a listening server fcb */ - DPRINT("Listening server fcb found -- connecting\n"); + /* found a listening server CCB */ + DPRINT("Listening server CCB found -- connecting\n"); return STATUS_SUCCESS; } @@ -305,7 +305,7 @@ } /* no listening server fcb found -- wait for one */ - Status = KeWaitForSingleObject(&Fcb->ConnectEvent, + Status = KeWaitForSingleObject(&Ccb->ConnectEvent, UserRequest, KernelMode, FALSE, @@ -341,25 +341,41 @@ ULONG OutputBufferLength; PNPFS_PIPE Pipe; PFILE_PIPE_PEEK_BUFFER Reply; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; NTSTATUS Status; - DPRINT("NpfsPeekPipe\n"); + DPRINT1("NpfsPeekPipe\n"); OutputBufferLength = IoStack->Parameters.DeviceIoControl.OutputBufferLength; + DPRINT1("OutputBufferLength: %lu\n", OutputBufferLength); /* Validate parameters */ if (OutputBufferLength < sizeof(FILE_PIPE_PEEK_BUFFER)) { - DPRINT("Buffer too small\n"); + DPRINT1("Buffer too small\n"); return STATUS_INVALID_PARAMETER; } - Fcb = IoStack->FileObject->FsContext; + Ccb = IoStack->FileObject->FsContext2; Reply = (PFILE_PIPE_PEEK_BUFFER)Irp->AssociatedIrp.SystemBuffer; - Pipe = Fcb->Pipe; - + Pipe = Ccb->Pipe; + + + Reply->NamedPipeState = Ccb->PipeState; + + Reply->ReadDataAvailable = Ccb->ReadDataAvailable; + DPRINT("ReadDataAvailable: %lu\n", Ccb->ReadDataAvailable); + + Reply->NumberOfMessages = 0; /* FIXME */ + Reply->MessageLength = 0; /* FIXME */ + Reply->Data[0] = 0; /* FIXME */ + +// Irp->IoStatus.Information = sizeof(FILE_PIPE_PEEK_BUFFER); + +// Status = STATUS_SUCCESS; Status = STATUS_NOT_IMPLEMENTED; + + DPRINT1("NpfsPeekPipe done\n"); return Status; } @@ -374,7 +390,7 @@ NTSTATUS Status; PNPFS_DEVICE_EXTENSION DeviceExt; PNPFS_PIPE Pipe; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; DPRINT("NpfsFileSystemContol(DeviceObject %p Irp %p)\n", DeviceObject, Irp); @@ -383,9 +399,9 @@ DPRINT("IoStack: %p\n", IoStack); FileObject = IoStack->FileObject; DPRINT("FileObject: %p\n", FileObject); - Fcb = FileObject->FsContext; - DPRINT("Fcb: %p\n", Fcb); - Pipe = Fcb->Pipe; + Ccb = FileObject->FsContext2; + DPRINT("CCB: %p\n", Ccb); + Pipe = Ccb->Pipe; DPRINT("Pipe: %p\n", Pipe); DPRINT("PipeName: %wZ\n", &Pipe->PipeName); @@ -400,12 +416,12 @@ case FSCTL_PIPE_DISCONNECT: DPRINT("Disconnecting pipe %wZ\n", &Pipe->PipeName); - Status = NpfsDisconnectPipe(Fcb); + Status = NpfsDisconnectPipe(Ccb); break; case FSCTL_PIPE_LISTEN: DPRINT("Connecting pipe %wZ\n", &Pipe->PipeName); - Status = NpfsConnectPipe(Irp, Fcb); + Status = NpfsConnectPipe(Irp, Ccb); break; case FSCTL_PIPE_PEEK: @@ -427,7 +443,7 @@ case FSCTL_PIPE_WAIT: DPRINT("Waiting for pipe %wZ\n", &Pipe->PipeName); - Status = NpfsWaitPipe(Irp, Fcb); + Status = NpfsWaitPipe(Irp, Ccb); break; case FSCTL_PIPE_IMPERSONATE: Modified: trunk/reactos/drivers/filesystems/np/npfs.h URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/np/npfs…
============================================================================== --- trunk/reactos/drivers/filesystems/np/npfs.h (original) +++ trunk/reactos/drivers/filesystems/np/npfs.h Sun May 7 23:56:32 2006 @@ -19,9 +19,9 @@ { UNICODE_STRING PipeName; LIST_ENTRY PipeListEntry; - KMUTEX FcbListLock; - LIST_ENTRY ServerFcbListHead; - LIST_ENTRY ClientFcbListHead; + KMUTEX CcbListLock; + LIST_ENTRY ServerCcbListHead; + LIST_ENTRY ClientCcbListHead; LIST_ENTRY WaiterListHead; LIST_ENTRY EmptyBufferListHead; ULONG PipeType; @@ -36,10 +36,10 @@ LARGE_INTEGER TimeOut; } NPFS_PIPE, *PNPFS_PIPE; -typedef struct _NPFS_FCB +typedef struct _NPFS_CCB { - LIST_ENTRY FcbListEntry; - struct _NPFS_FCB* OtherSide; + LIST_ENTRY CcbListEntry; + struct _NPFS_CCB* OtherSide; struct ETHREAD *Thread; PNPFS_PIPE Pipe; KEVENT ConnectEvent; @@ -58,7 +58,7 @@ ULONG MaxDataLength; FAST_MUTEX DataListLock; /* Data queue lock */ -} NPFS_FCB, *PNPFS_FCB; +} NPFS_CCB, *PNPFS_CCB; typedef struct _NPFS_CONTEXT { @@ -80,7 +80,7 @@ typedef struct _NPFS_WAITER_ENTRY { LIST_ENTRY Entry; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; } NPFS_WAITER_ENTRY, *PNPFS_WAITER_ENTRY; Modified: trunk/reactos/drivers/filesystems/np/rw.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/np/rw.c…
============================================================================== --- trunk/reactos/drivers/filesystems/np/rw.c (original) +++ trunk/reactos/drivers/filesystems/np/rw.c Sun May 7 23:56:32 2006 @@ -50,7 +50,7 @@ PNPFS_CONTEXT Context; PNPFS_DEVICE_EXTENSION DeviceExt; PIO_STACK_LOCATION IoStack; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; BOOLEAN Complete = FALSE; DPRINT("NpfsReadWriteCancelRoutine(DeviceObject %x, Irp %x)\n", DeviceObject, Irp); @@ -60,14 +60,14 @@ Context = (PNPFS_CONTEXT)&Irp->Tail.Overlay.DriverContext; DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension; IoStack = IoGetCurrentIrpStackLocation(Irp); - Fcb = IoStack->FileObject->FsContext; + Ccb = IoStack->FileObject->FsContext2; KeLockMutex(&DeviceExt->PipeListLock); - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); switch(IoStack->MajorFunction) { case IRP_MJ_READ: - if (Fcb->ReadRequestListHead.Flink != &Context->ListEntry) + if (Ccb->ReadRequestListHead.Flink != &Context->ListEntry) { /* we are not the first in the list, remove an complete us */ RemoveEntryList(&Context->ListEntry); @@ -75,13 +75,13 @@ } else { - KeSetEvent(&Fcb->ReadEvent, IO_NO_INCREMENT, FALSE); + KeSetEvent(&Ccb->ReadEvent, IO_NO_INCREMENT, FALSE); } break; default: KEBUGCHECK(0); } - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); KeUnlockMutex(&DeviceExt->PipeListLock); if (Complete) { @@ -105,7 +105,7 @@ PIO_STACK_LOCATION IoStack = NULL; PNPFS_CONTEXT Context; PNPFS_CONTEXT NextContext; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; KeLockMutex(&ThreadContext->DeviceExt->PipeListLock); @@ -166,16 +166,16 @@ if (Cancel) { - Fcb = IoStack->FileObject->FsContext; - ExAcquireFastMutex(&Fcb->DataListLock); + Ccb = IoStack->FileObject->FsContext2; + ExAcquireFastMutex(&Ccb->DataListLock); RemoveEntryList(&Context->ListEntry); switch (IoStack->MajorFunction) { case IRP_MJ_READ: - if (!IsListEmpty(&Fcb->ReadRequestListHead)) + if (!IsListEmpty(&Ccb->ReadRequestListHead)) { /* put the next request on the wait list */ - NextContext = CONTAINING_RECORD(Fcb->ReadRequestListHead.Flink, NPFS_CONTEXT, ListEntry); + NextContext = CONTAINING_RECORD(Ccb->ReadRequestListHead.Flink, NPFS_CONTEXT, ListEntry); ThreadContext->WaitObjectArray[ThreadContext->Count] = NextContext->WaitEvent; NextIrp = CONTAINING_RECORD(NextContext, IRP, Tail.Overlay.DriverContext); ThreadContext->WaitIrpArray[ThreadContext->Count] = NextIrp; @@ -186,7 +186,7 @@ default: KEBUGCHECK(0); } - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); } } else @@ -294,11 +294,11 @@ PFILE_OBJECT FileObject; NTSTATUS Status; NTSTATUS OriginalStatus = STATUS_SUCCESS; - PNPFS_FCB Fcb; + PNPFS_CCB Ccb; PNPFS_CONTEXT Context; KEVENT Event; ULONG Length; - ULONG Information; + ULONG Information = 0; ULONG CopyLength; ULONG TempLength; BOOLEAN IsOriginalRequest = TRUE; @@ -315,15 +315,15 @@ } FileObject = IoGetCurrentIrpStackLocation(Irp)->FileObject; - Fcb = FileObject->FsContext; + Ccb = FileObject->FsContext2; Context = (PNPFS_CONTEXT)&Irp->Tail.Overlay.DriverContext; - if (Fcb->OtherSide == NULL) + if (Ccb->OtherSide == NULL) { DPRINT("Pipe is NOT connected!\n"); - if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE) + if (Ccb->PipeState == FILE_PIPE_LISTENING_STATE) Status = STATUS_PIPE_LISTENING; - else if (Fcb->PipeState == FILE_PIPE_DISCONNECTED_STATE) + else if (Ccb->PipeState == FILE_PIPE_DISCONNECTED_STATE) Status = STATUS_PIPE_DISCONNECTED; else Status = STATUS_UNSUCCESSFUL; @@ -331,7 +331,7 @@ goto done; } - if (Fcb->Data == NULL) + if (Ccb->Data == NULL) { DPRINT1("Pipe is NOT readable!\n"); Status = STATUS_UNSUCCESSFUL; @@ -339,16 +339,16 @@ goto done; } - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); if (IoIsOperationSynchronous(Irp)) { - InsertTailList(&Fcb->ReadRequestListHead, &Context->ListEntry); - if (Fcb->ReadRequestListHead.Flink != &Context->ListEntry) + InsertTailList(&Ccb->ReadRequestListHead, &Context->ListEntry); + if (Ccb->ReadRequestListHead.Flink != &Context->ListEntry) { KeInitializeEvent(&Event, SynchronizationEvent, FALSE); Context->WaitEvent = &Event; - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); Status = KeWaitForSingleObject(&Event, Executive, KernelMode, @@ -358,21 +358,21 @@ { KEBUGCHECK(0); } - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); } Irp->IoStatus.Information = 0; } else { KIRQL oldIrql; - if (IsListEmpty(&Fcb->ReadRequestListHead) || - Fcb->ReadRequestListHead.Flink != &Context->ListEntry) + if (IsListEmpty(&Ccb->ReadRequestListHead) || + Ccb->ReadRequestListHead.Flink != &Context->ListEntry) { /* this is a new request */ Irp->IoStatus.Information = 0; - Context->WaitEvent = &Fcb->ReadEvent; - InsertTailList(&Fcb->ReadRequestListHead, &Context->ListEntry); - if (Fcb->ReadRequestListHead.Flink != &Context->ListEntry) + Context->WaitEvent = &Ccb->ReadEvent; + InsertTailList(&Ccb->ReadRequestListHead, &Context->ListEntry); + if (Ccb->ReadRequestListHead.Flink != &Context->ListEntry) { /* there was already a request on the list */ IoAcquireCancelSpinLock(&oldIrql); @@ -380,13 +380,13 @@ { IoReleaseCancelSpinLock(oldIrql); RemoveEntryList(&Context->ListEntry); - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); Status = STATUS_CANCELLED; goto done; } (void)IoSetCancelRoutine(Irp, NpfsReadWriteCancelRoutine); IoReleaseCancelSpinLock(oldIrql); - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); IoMarkIrpPending(Irp); Status = STATUS_PENDING; goto done; @@ -406,94 +406,94 @@ while (1) { - if (Fcb->ReadDataAvailable == 0) + if (Ccb->ReadDataAvailable == 0) { - if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE) - { - ASSERT(Fcb->OtherSide != NULL); - KeSetEvent(&Fcb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE); + if (Ccb->PipeState == FILE_PIPE_CONNECTED_STATE) + { + ASSERT(Ccb->OtherSide != NULL); + KeSetEvent(&Ccb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE); } if (Information > 0 && - (Fcb->Pipe->ReadMode != FILE_PIPE_BYTE_STREAM_MODE || - Fcb->PipeState != FILE_PIPE_CONNECTED_STATE)) + (Ccb->Pipe->ReadMode != FILE_PIPE_BYTE_STREAM_MODE || + Ccb->PipeState != FILE_PIPE_CONNECTED_STATE)) { break; } - if (Fcb->PipeState != FILE_PIPE_CONNECTED_STATE) - { - DPRINT("PipeState: %x\n", Fcb->PipeState); + if (Ccb->PipeState != FILE_PIPE_CONNECTED_STATE) + { + DPRINT("PipeState: %x\n", Ccb->PipeState); Status = STATUS_PIPE_BROKEN; break; } - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); if (IoIsOperationSynchronous(Irp)) { /* Wait for ReadEvent to become signaled */ - DPRINT("Waiting for readable data (%wZ)\n", &Fcb->Pipe->PipeName); - Status = KeWaitForSingleObject(&Fcb->ReadEvent, + DPRINT1("Waiting for readable data (%wZ)\n", &Ccb->Pipe->PipeName); + Status = KeWaitForSingleObject(&Ccb->ReadEvent, UserRequest, KernelMode, FALSE, NULL); - DPRINT("Finished waiting (%wZ)! Status: %x\n", &Fcb->Pipe->PipeName, Status); - ExAcquireFastMutex(&Fcb->DataListLock); + DPRINT("Finished waiting (%wZ)! Status: %x\n", &Ccb->Pipe->PipeName, Status); + ExAcquireFastMutex(&Ccb->DataListLock); } else { Context = (PNPFS_CONTEXT)&Irp->Tail.Overlay.DriverContext; - Context->WaitEvent = &Fcb->ReadEvent; + Context->WaitEvent = &Ccb->ReadEvent; Status = NpfsAddWaitingReadWriteRequest(DeviceObject, Irp); if (NT_SUCCESS(Status)) { Status = STATUS_PENDING; } - ExAcquireFastMutex(&Fcb->DataListLock); + ExAcquireFastMutex(&Ccb->DataListLock); break; } } ASSERT(IoGetCurrentIrpStackLocation(Irp)->FileObject != NULL); - if (Fcb->Pipe->ReadMode == FILE_PIPE_BYTE_STREAM_MODE) + if (Ccb->Pipe->ReadMode == FILE_PIPE_BYTE_STREAM_MODE) { DPRINT("Byte stream mode\n"); /* Byte stream mode */ - while (Length > 0 && Fcb->ReadDataAvailable > 0) - { - CopyLength = min(Fcb->ReadDataAvailable, Length); - if ((ULONG_PTR)Fcb->ReadPtr + CopyLength <= (ULONG_PTR)Fcb->Data + Fcb->MaxDataLength) + while (Length > 0 && Ccb->ReadDataAvailable > 0) + { + CopyLength = min(Ccb->ReadDataAvailable, Length); + if ((ULONG_PTR)Ccb->ReadPtr + CopyLength <= (ULONG_PTR)Ccb->Data + Ccb->MaxDataLength) { - memcpy(Buffer, Fcb->ReadPtr, CopyLength); - Fcb->ReadPtr = (PVOID)((ULONG_PTR)Fcb->ReadPtr + CopyLength); - if (Fcb->ReadPtr == (PVOID)((ULONG_PTR)Fcb->Data + Fcb->MaxDataLength)) + memcpy(Buffer, Ccb->ReadPtr, CopyLength); + Ccb->ReadPtr = (PVOID)((ULONG_PTR)Ccb->ReadPtr + CopyLength); + if (Ccb->ReadPtr == (PVOID)((ULONG_PTR)Ccb->Data + Ccb->MaxDataLength)) { - Fcb->ReadPtr = Fcb->Data; + Ccb->ReadPtr = Ccb->Data; } } else { - TempLength = (ULONG)((ULONG_PTR)Fcb->Data + Fcb->MaxDataLength - (ULONG_PTR)Fcb->ReadPtr); - memcpy(Buffer, Fcb->ReadPtr, TempLength); - memcpy((PVOID)((ULONG_PTR)Buffer + TempLength), Fcb->Data, CopyLength - TempLength); - Fcb->ReadPtr = (PVOID)((ULONG_PTR)Fcb->Data + CopyLength - TempLength); + TempLength = (ULONG)((ULONG_PTR)Ccb->Data + Ccb->MaxDataLength - (ULONG_PTR)Ccb->ReadPtr); + memcpy(Buffer, Ccb->ReadPtr, TempLength); + memcpy((PVOID)((ULONG_PTR)Buffer + TempLength), Ccb->Data, CopyLength - TempLength); + Ccb->ReadPtr = (PVOID)((ULONG_PTR)Ccb->Data + CopyLength - TempLength); } Buffer = (PVOID)((ULONG_PTR)Buffer + CopyLength); Length -= CopyLength; Information += CopyLength; - Fcb->ReadDataAvailable -= CopyLength; - Fcb->WriteQuotaAvailable += CopyLength; + Ccb->ReadDataAvailable -= CopyLength; + Ccb->WriteQuotaAvailable += CopyLength; } if (Length == 0) { - if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE) + if (Ccb->PipeState == FILE_PIPE_CONNECTED_STATE) { - KeSetEvent(&Fcb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE); + KeSetEvent(&Ccb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE); } - KeResetEvent(&Fcb->ReadEvent); + KeResetEvent(&Ccb->ReadEvent); break; } } @@ -502,11 +502,11 @@ DPRINT("Message mode\n"); /* Message mode */ - if (Fcb->ReadDataAvailable) + if (Ccb->ReadDataAvailable) { /* Truncate the message if the receive buffer is too small */ - CopyLength = min(Fcb->ReadDataAvailable, Length); - memcpy(Buffer, Fcb->Data, CopyLength); + CopyLength = min(Ccb->ReadDataAvailable, Length); + memcpy(Buffer, Ccb->Data, CopyLength); #ifndef NDEBUG DPRINT("Length %d Buffer %x\n",CopyLength,Buffer); @@ -515,22 +515,22 @@ Information = CopyLength; - if (Fcb->ReadDataAvailable > Length) + if (Ccb->ReadDataAvailable > Length) { - memmove(Fcb->Data, (PVOID)((ULONG_PTR)Fcb->Data + Length), - Fcb->ReadDataAvailable - Length); - Fcb->ReadDataAvailable -= Length; + memmove(Ccb->Data, (PVOID)((ULONG_PTR)Ccb->Data + Length), + Ccb->ReadDataAvailable - Length); + Ccb->ReadDataAvailable -= Length; Status = STATUS_MORE_ENTRIES; } else { - KeResetEvent(&Fcb->ReadEvent); - if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE) + KeResetEvent(&Ccb->ReadEvent); + if (Ccb->PipeState == FILE_PIPE_CONNECTED_STATE) { - KeSetEvent(&Fcb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE); + KeSetEvent(&Ccb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE); } - Fcb->ReadDataAvailable = 0; - Fcb->WriteQuotaAvailable = Fcb->MaxDataLength; + Ccb->ReadDataAvailable = 0; + Ccb->WriteQuotaAvailable = Ccb->MaxDataLength; } } @@ -548,12 +548,12 @@ if (IoIsOperationSynchronous(Irp)) { RemoveEntryList(&Context->ListEntry); - if (!IsListEmpty(&Fcb->ReadRequestListHead)) - { - Context = CONTAINING_RECORD(Fcb->ReadRequestListHead.Flink, NPFS_CONTEXT, ListEntry); + if (!IsListEmpty(&Ccb->ReadRequestListHead)) + { + Context = CONTAINING_RECORD(Ccb->ReadRequestListHead.Flink, NPFS_CONTEXT, ListEntry); KeSetEvent(Context->WaitEvent, IO_NO_INCREMENT, FALSE); } - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); IoCompleteRequest(Irp, IO_NO_INCREMENT); DPRINT("NpfsRead done (Status %lx)\n", Status); @@ -568,19 +568,19 @@ } if (Status == STATUS_PENDING) { - ExReleaseFastMutex(&Fcb->DataListLock); + ExReleaseFastMutex(&Ccb->DataListLock); DPRINT("NpfsRead done (Status %lx)\n", OriginalStatus); return OriginalStatus; } RemoveEntryList(&Context->ListEntry); IoCompleteRequest(Irp, IO_NO_INCREMENT); - if (IsListEmpty(&Fcb->ReadRequestListHead)) - { - ExReleaseFastMutex(&Fcb->DataListLock); + if (IsListEmpty(&Ccb->ReadRequestListHead)) + { + ExReleaseFastMutex(&Ccb->DataListLock); DPRINT("NpfsRead done (Status %lx)\n", OriginalStatus); return OriginalStatus; } - Context = CONTAINING_RECORD(Fcb->ReadRequestListHead.Flink, NPFS_CONTEXT, ListEntry); + Context = CONTAINING_RECORD(Ccb->ReadRequestListHead.Flink, NPFS_CONTEXT, ListEntry); Irp = CONTAINING_RECORD(Context, IRP, Tail.Overlay.DriverContext); } } @@ -603,8 +603,8 @@ { PIO_STACK_LOCATION IoStack; PFILE_OBJECT FileObject; - PNPFS_FCB Fcb = NULL; - PNPFS_FCB ReaderFcb; + PNPFS_CCB Ccb = NULL; + PNPFS_CCB ReaderCcb; PNPFS_PIPE Pipe = NULL; PUCHAR Buffer; NTSTATUS Status = STATUS_SUCCESS; @@ -621,9 +621,9 @@ DPRINT("FileObject %p\n", FileObject); DPRINT("Pipe name %wZ\n", &FileObject->FileName); - Fcb = FileObject->FsContext; - ReaderFcb = Fcb->OtherSide; - Pipe = Fcb->Pipe; + Ccb = FileObject->FsContext2; + ReaderCcb = Ccb->OtherSide; + Pipe = Ccb->Pipe; Length = IoStack->Parameters.Write.Length; Offset = IoStack->Parameters.Write.ByteOffset.u.LowPart; @@ -637,12 +637,12 @@ goto done; } - if (ReaderFcb == NULL) + if (ReaderCcb == NULL) { DPRINT("Pipe is NOT connected!\n"); - if (Fcb->PipeState == FILE_PIPE_LISTENING_STATE) + if (Ccb->PipeState == FILE_PIPE_LISTENING_STATE) Status = STATUS_PIPE_LISTENING; - else if (Fcb->PipeState == FILE_PIPE_DISCONNECTED_STATE) + else if (Ccb->PipeState == FILE_PIPE_DISCONNECTED_STATE) Status = STATUS_PIPE_DISCONNECTED; else Status = STATUS_UNSUCCESSFUL; @@ -650,7 +650,7 @@ goto done; } - if (ReaderFcb->Data == NULL) + if (ReaderCcb->Data == NULL) { DPRINT("Pipe is NOT writable!\n"); Status = STATUS_UNSUCCESSFUL; @@ -661,7 +661,7 @@ Status = STATUS_SUCCESS; Buffer = MmGetSystemAddressForMdl (Irp->MdlAddress); - ExAcquireFastMutex(&ReaderFcb->DataListLock); + ExAcquireFastMutex(&ReaderCcb->DataListLock); #ifndef NDEBUG DPRINT("Length %d Buffer %x Offset %x\n",Length,Buffer,Offset); HexDump(Buffer, Length); @@ -669,35 +669,35 @@ while(1) { - if (ReaderFcb->WriteQuotaAvailable == 0) - { - KeSetEvent(&ReaderFcb->ReadEvent, IO_NO_INCREMENT, FALSE); - if (Fcb->PipeState != FILE_PIPE_CONNECTED_STATE) + if (ReaderCcb->WriteQuotaAvailable == 0) + { + KeSetEvent(&ReaderCcb->ReadEvent, IO_NO_INCREMENT, FALSE); + if (Ccb->PipeState != FILE_PIPE_CONNECTED_STATE) { Status = STATUS_PIPE_BROKEN; - ExReleaseFastMutex(&ReaderFcb->DataListLock); + ExReleaseFastMutex(&ReaderCcb->DataListLock); goto done; } - ExReleaseFastMutex(&ReaderFcb->DataListLock); + ExReleaseFastMutex(&ReaderCcb->DataListLock); DPRINT("Waiting for buffer space (%S)\n", Pipe->PipeName.Buffer); - Status = KeWaitForSingleObject(&Fcb->WriteEvent, + Status = KeWaitForSingleObject(&Ccb->WriteEvent, UserRequest, KernelMode, FALSE, NULL); DPRINT("Finished waiting (%S)! Status: %x\n", Pipe->PipeName.Buffer, Status); - ExAcquireFastMutex(&ReaderFcb->DataListLock); + ExAcquireFastMutex(&ReaderCcb->DataListLock); /* * It's possible that the event was signaled because the * other side of pipe was closed. */ - if (Fcb->PipeState != FILE_PIPE_CONNECTED_STATE) + if (Ccb->PipeState != FILE_PIPE_CONNECTED_STATE) { - DPRINT("PipeState: %x\n", Fcb->PipeState); + DPRINT("PipeState: %x\n", Ccb->PipeState); Status = STATUS_PIPE_BROKEN; - ExReleaseFastMutex(&ReaderFcb->DataListLock); + ExReleaseFastMutex(&ReaderCcb->DataListLock); goto done; } } @@ -705,38 +705,38 @@ if (Pipe->WriteMode == FILE_PIPE_BYTE_STREAM_MODE) { DPRINT("Byte stream mode\n"); - while (Length > 0 && ReaderFcb->WriteQuotaAvailable > 0) + while (Length > 0 && ReaderCcb->WriteQuotaAvailable > 0) { - CopyLength = min(Length, ReaderFcb->WriteQuotaAvailable); - if ((ULONG_PTR)ReaderFcb->WritePtr + CopyLength <= (ULONG_PTR)ReaderFcb->Data + ReaderFcb->MaxDataLength) + CopyLength = min(Length, ReaderCcb->WriteQuotaAvailable); + if ((ULONG_PTR)ReaderCcb->WritePtr + CopyLength <= (ULONG_PTR)ReaderCcb->Data + ReaderCcb->MaxDataLength) { - memcpy(ReaderFcb->WritePtr, Buffer, CopyLength); - ReaderFcb->WritePtr = (PVOID)((ULONG_PTR)ReaderFcb->WritePtr + CopyLength); - if ((ULONG_PTR)ReaderFcb->WritePtr == (ULONG_PTR)ReaderFcb->Data + ReaderFcb->MaxDataLength) + memcpy(ReaderCcb->WritePtr, Buffer, CopyLength); + ReaderCcb->WritePtr = (PVOID)((ULONG_PTR)ReaderCcb->WritePtr + CopyLength); + if ((ULONG_PTR)ReaderCcb->WritePtr == (ULONG_PTR)ReaderCcb->Data + ReaderCcb->MaxDataLength) { - ReaderFcb->WritePtr = ReaderFcb->Data; + ReaderCcb->WritePtr = ReaderCcb->Data; } } else { - TempLength = (ULONG)((ULONG_PTR)ReaderFcb->Data + ReaderFcb->MaxDataLength - (ULONG_PTR)ReaderFcb->WritePtr); - memcpy(ReaderFcb->WritePtr, Buffer, TempLength); - memcpy(ReaderFcb->Data, Buffer + TempLength, CopyLength - TempLength); - ReaderFcb->WritePtr = (PVOID)((ULONG_PTR)ReaderFcb->Data + CopyLength - TempLength); + TempLength = (ULONG)((ULONG_PTR)ReaderCcb->Data + ReaderCcb->MaxDataLength - (ULONG_PTR)ReaderCcb->WritePtr); + memcpy(ReaderCcb->WritePtr, Buffer, TempLength); + memcpy(ReaderCcb->Data, Buffer + TempLength, CopyLength - TempLength); + ReaderCcb->WritePtr = (PVOID)((ULONG_PTR)ReaderCcb->Data + CopyLength - TempLength); } Buffer += CopyLength; Length -= CopyLength; Information += CopyLength; - ReaderFcb->ReadDataAvailable += CopyLength; - ReaderFcb->WriteQuotaAvailable -= CopyLength; + ReaderCcb->ReadDataAvailable += CopyLength; + ReaderCcb->WriteQuotaAvailable -= CopyLength; } if (Length == 0) { - KeSetEvent(&ReaderFcb->ReadEvent, IO_NO_INCREMENT, FALSE); - KeResetEvent(&Fcb->WriteEvent); + KeSetEvent(&ReaderCcb->ReadEvent, IO_NO_INCREMENT, FALSE); + KeResetEvent(&Ccb->WriteEvent); break; } } @@ -745,24 +745,24 @@ DPRINT("Message mode\n"); if (Length > 0) { - CopyLength = min(Length, ReaderFcb->WriteQuotaAvailable); - memcpy(ReaderFcb->Data, Buffer, CopyLength); + CopyLength = min(Length, ReaderCcb->WriteQuotaAvailable); + memcpy(ReaderCcb->Data, Buffer, CopyLength); Information = CopyLength; - ReaderFcb->ReadDataAvailable = CopyLength; - ReaderFcb->WriteQuotaAvailable = 0; + ReaderCcb->ReadDataAvailable = CopyLength; + ReaderCcb->WriteQuotaAvailable = 0; } if (Information > 0) { - KeSetEvent(&ReaderFcb->ReadEvent, IO_NO_INCREMENT, FALSE); - KeResetEvent(&Fcb->WriteEvent); + KeSetEvent(&ReaderCcb->ReadEvent, IO_NO_INCREMENT, FALSE); + KeResetEvent(&Ccb->WriteEvent); break; } } } - ExReleaseFastMutex(&ReaderFcb->DataListLock); + ExReleaseFastMutex(&ReaderCcb->DataListLock); done: Irp->IoStatus.Status = Status;
18 years, 7 months
1
0
0
0
[ion] 21844: [AUDIT] - Tditest: A TDI test application. - Floppy: Cleanly implemented by Vizzini. - VideoPort, VBE/VGA Miniports: Filip says these are clean, but the actual VGA driver/framebuffers need more through auditing.
by ion@svn.reactos.org
Author: ion Date: Sun May 7 23:34:23 2006 New Revision: 21844 URL:
http://svn.reactos.ru/svn/reactos?rev=21844&view=rev
Log: [AUDIT] - Tditest: A TDI test application. - Floppy: Cleanly implemented by Vizzini. - VideoPort, VBE/VGA Miniports: Filip says these are clean, but the actual VGA driver/framebuffers need more through auditing. Modified: trunk/reactos/drivers/network/tditest/DIRS (props changed) trunk/reactos/drivers/network/tditest/include/debug.h (props changed) trunk/reactos/drivers/network/tditest/include/tditest.h (props changed) trunk/reactos/drivers/network/tditest/readme.txt (props changed) trunk/reactos/drivers/network/tditest/tditest.def (props changed) trunk/reactos/drivers/network/tditest/tditest.rc (props changed) trunk/reactos/drivers/network/tditest/tditest/SOURCES (props changed) trunk/reactos/drivers/network/tditest/tditest/tditest.c (props changed) trunk/reactos/drivers/storage/floppy/SOURCES (props changed) trunk/reactos/drivers/storage/floppy/csqrtns.c (props changed) trunk/reactos/drivers/storage/floppy/csqrtns.h (props changed) trunk/reactos/drivers/storage/floppy/floppy.c (props changed) trunk/reactos/drivers/storage/floppy/floppy.h (props changed) trunk/reactos/drivers/storage/floppy/floppy.rc (props changed) trunk/reactos/drivers/storage/floppy/hardware.c (props changed) trunk/reactos/drivers/storage/floppy/hardware.h (props changed) trunk/reactos/drivers/storage/floppy/ioctl.c (props changed) trunk/reactos/drivers/storage/floppy/ioctl.h (props changed) trunk/reactos/drivers/storage/floppy/readwrite.c (props changed) trunk/reactos/drivers/storage/floppy/readwrite.h (props changed) trunk/reactos/drivers/video/miniport/vbe/vbemp.c (props changed) trunk/reactos/drivers/video/miniport/vbe/vbemp.h (props changed) trunk/reactos/drivers/video/miniport/vbe/vbemp.rc (props changed) trunk/reactos/drivers/video/miniport/vga/initvga.c (props changed) trunk/reactos/drivers/video/miniport/vga/vgamp.c (props changed) trunk/reactos/drivers/video/miniport/vga/vgamp.h (props changed) trunk/reactos/drivers/video/miniport/vga/vgamp.rc (props changed) trunk/reactos/drivers/video/miniport/vga/vgavideo.h (props changed) trunk/reactos/drivers/video/videoprt/agp.c (props changed) trunk/reactos/drivers/video/videoprt/ddc.c (props changed) trunk/reactos/drivers/video/videoprt/dispatch.c (props changed) trunk/reactos/drivers/video/videoprt/dma.c (props changed) trunk/reactos/drivers/video/videoprt/event.c (props changed) trunk/reactos/drivers/video/videoprt/int10.c (props changed) trunk/reactos/drivers/video/videoprt/interrupt.c (props changed) trunk/reactos/drivers/video/videoprt/resource.c (props changed) trunk/reactos/drivers/video/videoprt/services.c (props changed) trunk/reactos/drivers/video/videoprt/spinlock.c (props changed) trunk/reactos/drivers/video/videoprt/timer.c (props changed) trunk/reactos/drivers/video/videoprt/videoprt.c (props changed) trunk/reactos/drivers/video/videoprt/videoprt.def (props changed) trunk/reactos/drivers/video/videoprt/videoprt.h (props changed) trunk/reactos/drivers/video/videoprt/videoprt.rc (props changed) Propchange: trunk/reactos/drivers/network/tditest/DIRS ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/network/tditest/include/debug.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/network/tditest/include/tditest.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/network/tditest/readme.txt ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/network/tditest/tditest.def ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/network/tditest/tditest.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/network/tditest/tditest/SOURCES ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/network/tditest/tditest/tditest.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/SOURCES ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/csqrtns.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/csqrtns.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/floppy.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/floppy.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/floppy.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/hardware.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/hardware.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/ioctl.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/ioctl.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/readwrite.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/floppy/readwrite.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vbe/vbemp.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vbe/vbemp.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vbe/vbemp.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vga/initvga.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vga/vgamp.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vga/vgamp.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vga/vgamp.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/vga/vgavideo.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/agp.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/ddc.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/dispatch.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/dma.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/event.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/int10.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/interrupt.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/resource.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/services.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/spinlock.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/timer.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/videoprt.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/videoprt.def ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/videoprt.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/videoprt/videoprt.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 7 months
1
0
0
0
[greatlrd] 21843: [AUDIT] after looking through code no signs of reverse engineering were found.
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun May 7 23:23:37 2006 New Revision: 21843 URL:
http://svn.reactos.ru/svn/reactos?rev=21843&view=rev
Log: [AUDIT] after looking through code no signs of reverse engineering were found. Modified: trunk/reactos/drivers/filesystems/vfat/blockdev.c (props changed) trunk/reactos/drivers/filesystems/vfat/cleanup.c (props changed) trunk/reactos/drivers/filesystems/vfat/close.c (props changed) trunk/reactos/drivers/filesystems/vfat/create.c (props changed) trunk/reactos/drivers/filesystems/vfat/dir.c (props changed) trunk/reactos/drivers/filesystems/vfat/dirwr.c (props changed) trunk/reactos/drivers/filesystems/vfat/ea.c (props changed) trunk/reactos/drivers/filesystems/vfat/fastio.c (props changed) trunk/reactos/drivers/filesystems/vfat/fat.c (props changed) trunk/reactos/drivers/filesystems/vfat/fcb.c (props changed) trunk/reactos/drivers/filesystems/vfat/flush.c (props changed) trunk/reactos/drivers/filesystems/vfat/fsctl.c (props changed) trunk/reactos/drivers/filesystems/vfat/iface.c (props changed) trunk/reactos/drivers/filesystems/vfat/misc.c (props changed) Propchange: trunk/reactos/drivers/filesystems/vfat/blockdev.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/cleanup.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/close.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/create.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/dir.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/dirwr.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/ea.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/fastio.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/fat.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/fcb.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/flush.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/fsctl.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/iface.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/misc.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 7 months
1
0
0
0
[ion] 21842: [AUDIT] - Bootvid: Uses documented/typical VGA drawing routines. Actual NT implementation is comletely incompatible and has nothing to do with real Windows, so no taint here. - Debugout, green, diskdump: ROS-developed and non-NT drivers. Nothing they could've been tainted with, since NT doesn't have them. - Null: Trivial/obvious implementation of a driver which does nothing. - buslogic: Taken from VMWare source code almost entirely, minus some ROS hacks. - Xbox Video Miniport: Clean
by ion@svn.reactos.org
Author: ion Date: Sun May 7 23:16:11 2006 New Revision: 21842 URL:
http://svn.reactos.ru/svn/reactos?rev=21842&view=rev
Log: [AUDIT] - Bootvid: Uses documented/typical VGA drawing routines. Actual NT implementation is comletely incompatible and has nothing to do with real Windows, so no taint here. - Debugout, green, diskdump: ROS-developed and non-NT drivers. Nothing they could've been tainted with, since NT doesn't have them. - Null: Trivial/obvious implementation of a driver which does nothing. - buslogic: Taken from VMWare source code almost entirely, minus some ROS hacks. - Xbox Video Miniport: Cleanly developed by ros-xbox team with information from linux-xbox project. - CSQTest: CSQ Test written by vizzini. Uses documented CSQ information and is just a test app to show how CSQ works, written by himself. Modified: trunk/reactos/drivers/Doxyfile (props changed) trunk/reactos/drivers/base/bootvid/bootimage.bmp (props changed) trunk/reactos/drivers/base/bootvid/bootvid.c (props changed) trunk/reactos/drivers/base/bootvid/bootvid.h (props changed) trunk/reactos/drivers/base/bootvid/bootvid.rc (props changed) trunk/reactos/drivers/base/bootvid/ntbootvid.h (props changed) trunk/reactos/drivers/base/bootvid/pixelsup_i386.S (props changed) trunk/reactos/drivers/base/bootvid/resource.h (props changed) trunk/reactos/drivers/base/debugout/debugout.c (props changed) trunk/reactos/drivers/base/debugout/debugout.rc (props changed) trunk/reactos/drivers/base/green/createclose.c (props changed) trunk/reactos/drivers/base/green/dispatch.c (props changed) trunk/reactos/drivers/base/green/green.c (props changed) trunk/reactos/drivers/base/green/green.h (props changed) trunk/reactos/drivers/base/green/green.inf (props changed) trunk/reactos/drivers/base/green/green.rc (props changed) trunk/reactos/drivers/base/green/keyboard.c (props changed) trunk/reactos/drivers/base/green/misc.c (props changed) trunk/reactos/drivers/base/green/pnp.c (props changed) trunk/reactos/drivers/base/green/power.c (props changed) trunk/reactos/drivers/base/green/screen.c (props changed) trunk/reactos/drivers/base/null/null.c (props changed) trunk/reactos/drivers/base/null/null.h (props changed) trunk/reactos/drivers/base/null/null.rc (props changed) trunk/reactos/drivers/readme (props changed) trunk/reactos/drivers/storage/buslogic/BT958.bmf (props changed) trunk/reactos/drivers/storage/buslogic/BT958.mof (props changed) trunk/reactos/drivers/storage/buslogic/BT958dt.h (props changed) trunk/reactos/drivers/storage/buslogic/BusLogic958.c (props changed) trunk/reactos/drivers/storage/buslogic/BusLogic958.h (props changed) trunk/reactos/drivers/storage/buslogic/Log.c (props changed) trunk/reactos/drivers/storage/buslogic/Log.h (props changed) trunk/reactos/drivers/storage/buslogic/README.ReactOS (props changed) trunk/reactos/drivers/storage/buslogic/makefile.inc (props changed) trunk/reactos/drivers/storage/buslogic/makefile.original (props changed) trunk/reactos/drivers/storage/buslogic/resource.h (props changed) trunk/reactos/drivers/storage/buslogic/sources (props changed) trunk/reactos/drivers/storage/buslogic/wmi.c (props changed) trunk/reactos/drivers/storage/diskdump/diskdump.c (props changed) trunk/reactos/drivers/storage/diskdump/diskdump.def (props changed) trunk/reactos/drivers/storage/diskdump/diskdump.rc (props changed) trunk/reactos/drivers/storage/diskdump/diskdump_helper.S (props changed) trunk/reactos/drivers/test/csqtest/GNUmakefile (props changed) trunk/reactos/drivers/test/csqtest/SOURCES (props changed) trunk/reactos/drivers/test/csqtest/csqtest.c (props changed) trunk/reactos/drivers/test/csqtest/csqtest.rc (props changed) trunk/reactos/drivers/video/miniport/xboxvmp/xboxvmp.c (props changed) trunk/reactos/drivers/video/miniport/xboxvmp/xboxvmp.h (props changed) trunk/reactos/drivers/video/miniport/xboxvmp/xboxvmp.rc (props changed) Propchange: trunk/reactos/drivers/Doxyfile ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/bootvid/bootimage.bmp ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/bootvid/bootvid.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/bootvid/bootvid.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/bootvid/bootvid.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/bootvid/ntbootvid.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/bootvid/pixelsup_i386.S ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/bootvid/resource.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/debugout/debugout.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/debugout/debugout.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/createclose.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/dispatch.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/green.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/green.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/green.inf ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/green.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/keyboard.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/misc.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/pnp.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/power.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/green/screen.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/null/null.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/null/null.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/base/null/null.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/readme ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/BT958.bmf ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/BT958.mof ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/BT958dt.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/BusLogic958.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/BusLogic958.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/Log.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/Log.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/README.ReactOS ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/makefile.inc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/makefile.original ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/resource.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/sources ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/buslogic/wmi.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/diskdump/diskdump.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/diskdump/diskdump.def ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/diskdump/diskdump.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/storage/diskdump/diskdump_helper.S ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/test/csqtest/GNUmakefile ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/test/csqtest/SOURCES ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/test/csqtest/csqtest.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/test/csqtest/csqtest.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/xboxvmp/xboxvmp.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/xboxvmp/xboxvmp.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/video/miniport/xboxvmp/xboxvmp.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 7 months
1
0
0
0
[ion] 21841: [AUDIT] - HalUp is just a 3-line initialization stub. - Include directory contains public DMA/APIC/SMP hardware data or internal prototypes.
by ion@svn.reactos.org
Author: ion Date: Sun May 7 22:59:41 2006 New Revision: 21841 URL:
http://svn.reactos.ru/svn/reactos?rev=21841&view=rev
Log: [AUDIT] - HalUp is just a 3-line initialization stub. - Include directory contains public DMA/APIC/SMP hardware data or internal prototypes. Modified: trunk/reactos/hal/halx86/include/apic.h (props changed) trunk/reactos/hal/halx86/include/bus.h (props changed) trunk/reactos/hal/halx86/include/hal.h (props changed) trunk/reactos/hal/halx86/include/haldma.h (props changed) trunk/reactos/hal/halx86/include/halirq.h (props changed) trunk/reactos/hal/halx86/include/halp.h (props changed) trunk/reactos/hal/halx86/include/ioapic.h (props changed) trunk/reactos/hal/halx86/include/mps.h (props changed) trunk/reactos/hal/halx86/up/halinit_up.c (props changed) trunk/reactos/hal/halx86/up/halup.rc (props changed) Propchange: trunk/reactos/hal/halx86/include/apic.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/include/bus.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/include/hal.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/include/haldma.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/include/halirq.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/include/halp.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/include/ioapic.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/include/mps.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/up/halinit_up.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/up/halup.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 7 months
1
0
0
0
[ion] 21840: [AUDIT] - Generic HAL is just a bunch of stubs, no actual code. - XBOX HAL was cleanly developed by the ros-XBOX team using information from linux-xbox.
by ion@svn.reactos.org
Author: ion Date: Sun May 7 22:56:52 2006 New Revision: 21840 URL:
http://svn.reactos.ru/svn/reactos?rev=21840&view=rev
Log: [AUDIT] - Generic HAL is just a bunch of stubs, no actual code. - XBOX HAL was cleanly developed by the ros-XBOX team using information from linux-xbox. Modified: trunk/reactos/hal/hal/hal.c (props changed) trunk/reactos/hal/hal/hal.def (props changed) trunk/reactos/hal/hal/hal.rc (props changed) trunk/reactos/hal/halx86/xbox/display_xbox.c (props changed) trunk/reactos/hal/halx86/xbox/font.c (props changed) trunk/reactos/hal/halx86/xbox/halinit_xbox.c (props changed) trunk/reactos/hal/halx86/xbox/halxbox.h (props changed) trunk/reactos/hal/halx86/xbox/halxbox.rc (props changed) trunk/reactos/hal/halx86/xbox/part_xbox.c (props changed) trunk/reactos/hal/halx86/xbox/pci_xbox.c (props changed) Propchange: trunk/reactos/hal/hal/hal.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/hal/hal.def ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/hal/hal.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/xbox/display_xbox.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/xbox/font.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/xbox/halinit_xbox.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/xbox/halxbox.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/xbox/halxbox.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/xbox/part_xbox.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/hal/halx86/xbox/pci_xbox.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 7 months
1
0
0
0
[greatlrd] 21839: bug 1457: patch by w3seek : VFAT: Implement FileEaInformation for FAT32
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun May 7 22:50:18 2006 New Revision: 21839 URL:
http://svn.reactos.ru/svn/reactos?rev=21839&view=rev
Log: bug 1457: patch by w3seek : VFAT: Implement FileEaInformation for FAT32 Modified: trunk/reactos/drivers/filesystems/vfat/direntry.c trunk/reactos/drivers/filesystems/vfat/finfo.c trunk/reactos/drivers/filesystems/vfat/vfat.h Modified: trunk/reactos/drivers/filesystems/vfat/direntry.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/vfat/di…
============================================================================== --- trunk/reactos/drivers/filesystems/vfat/direntry.c (original) +++ trunk/reactos/drivers/filesystems/vfat/direntry.c Sun May 7 22:50:18 2006 @@ -21,8 +21,8 @@ if (pDeviceExt->FatInfo.FatType == FAT32) { - cluster = pFatDirEntry->Fat.FirstCluster + - pFatDirEntry->Fat.FirstClusterHigh * 65536; + cluster = pFatDirEntry->Fat.FirstCluster | + (pFatDirEntry->Fat.FirstClusterHigh << 16); } else if (pDeviceExt->Flags & VCB_IS_FATX) { Modified: trunk/reactos/drivers/filesystems/vfat/finfo.c URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/vfat/fi…
============================================================================== --- trunk/reactos/drivers/filesystems/vfat/finfo.c (original) +++ trunk/reactos/drivers/filesystems/vfat/finfo.c Sun May 7 22:50:18 2006 @@ -445,6 +445,28 @@ static NTSTATUS +VfatGetEaInformation(PFILE_OBJECT FileObject, + PVFATFCB Fcb, + PDEVICE_OBJECT DeviceObject, + PFILE_EA_INFORMATION Info, + PULONG BufferLength) +{ + PDEVICE_EXTENSION DeviceExt = DeviceObject->DeviceExtension; + + /* FIXME - use SEH to access the buffer! */ + Info->EaSize = 0; + *BufferLength -= sizeof(*Info); + if (DeviceExt->FatInfo.FatType == FAT12 || + DeviceExt->FatInfo.FatType == FAT16) + { + /* FIXME */ + DPRINT1("VFAT: FileEaInformation not implemented!\n"); + } + return STATUS_SUCCESS; +} + + +static NTSTATUS VfatGetAllInformation(PFILE_OBJECT FileObject, PVFATFCB Fcb, PDEVICE_OBJECT DeviceObject, @@ -585,8 +607,16 @@ } else { - Fcb->entry.Fat.FirstCluster = (unsigned short)(FirstCluster & 0x0000FFFF); - Fcb->entry.Fat.FirstClusterHigh = (unsigned short)((FirstCluster & 0xFFFF0000) >> 16); + if (DeviceExt->FatInfo.FatType == FAT32) + { + Fcb->entry.Fat.FirstCluster = (unsigned short)(FirstCluster & 0x0000FFFF); + Fcb->entry.Fat.FirstClusterHigh = FirstCluster >> 16; + } + else + { + ASSERT((FirstCluster >> 16) == 0); + Fcb->entry.Fat.FirstCluster = (unsigned short)(FirstCluster & 0x0000FFFF); + } } } else @@ -670,8 +700,15 @@ } else { - Fcb->entry.Fat.FirstCluster = 0; - Fcb->entry.Fat.FirstClusterHigh = 0; + if (DeviceExt->FatInfo.FatType == FAT32) + { + Fcb->entry.Fat.FirstCluster = 0; + Fcb->entry.Fat.FirstClusterHigh = 0; + } + else + { + Fcb->entry.Fat.FirstCluster = 0; + } } NCluster = Cluster = FirstCluster; @@ -778,6 +815,14 @@ IrpContext->DeviceObject, SystemBuffer, &BufferLength); + break; + + case FileEaInformation: + RC = VfatGetEaInformation(IrpContext->FileObject, + FCB, + IrpContext->DeviceObject, + SystemBuffer, + &BufferLength); break; case FileAlternateNameInformation: Modified: trunk/reactos/drivers/filesystems/vfat/vfat.h URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/drivers/filesystems/vfat/vf…
============================================================================== --- trunk/reactos/drivers/filesystems/vfat/vfat.h (original) +++ trunk/reactos/drivers/filesystems/vfat/vfat.h Sun May 7 22:50:18 2006 @@ -97,11 +97,50 @@ unsigned char lCase; unsigned char CreationTimeMs; unsigned short CreationTime,CreationDate,AccessDate; - unsigned short FirstClusterHigh; // higher + union + { + unsigned short FirstClusterHigh; // FAT32 + unsigned short ExtendedAttributes; // FAT12/FAT16 + }; unsigned short UpdateTime; //time create/update unsigned short UpdateDate; //date create/update unsigned short FirstCluster; unsigned long FileSize; +}; + +#define FAT_EAFILE "EA DATA. SF" + +typedef struct _EAFileHeader FAT_EA_FILE_HEADER, *PFAT_EA_FILE_HEADER; + +struct _EAFileHeader +{ + unsigned short Signature; // ED + unsigned short Unknown[15]; + unsigned short EASetTable[240]; +}; + +typedef struct _EASetHeader FAT_EA_SET_HEADER, *PFAT_EA_SET_HEADER; + +struct _EASetHeader +{ + unsigned short Signature; // EA + unsigned short Offset; // relative offset, same value as in the EASetTable + unsigned short Unknown1[2]; + char TargetFileName[12]; + unsigned short Unknown2[3]; + unsigned int EALength; + // EA Header +}; + +typedef struct _EAHeader FAT_EA_HEADER, *PFAT_EA_HEADER; + +struct _EAHeader +{ + unsigned char Unknown; + unsigned char EANameLength; + unsigned short EAValueLength; + // Name Data + // Value Data }; typedef struct _FATDirEntry FAT_DIR_ENTRY, *PFAT_DIR_ENTRY;
18 years, 7 months
1
0
0
0
[greatlrd] 21838: [AUDIT] after looking through code no signs of reverse engineering were found.
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun May 7 22:49:07 2006 New Revision: 21838 URL:
http://svn.reactos.ru/svn/reactos?rev=21838&view=rev
Log: [AUDIT] after looking through code no signs of reverse engineering were found. Modified: trunk/reactos/drivers/filesystems/vfat/rw.c (props changed) trunk/reactos/drivers/filesystems/vfat/shutdown.c (props changed) trunk/reactos/drivers/filesystems/vfat/string.c (props changed) trunk/reactos/drivers/filesystems/vfat/vfat005.1st (props changed) trunk/reactos/drivers/filesystems/vfat/vfat_fr.txt (props changed) trunk/reactos/drivers/filesystems/vfat/vfatfs.def (props changed) trunk/reactos/drivers/filesystems/vfat/vfatfs.rc (props changed) trunk/reactos/drivers/filesystems/vfat/volume.c (props changed) Propchange: trunk/reactos/drivers/filesystems/vfat/rw.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/shutdown.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/string.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/vfat005.1st ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/vfat_fr.txt ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/vfatfs.def ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/vfatfs.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/volume.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 7 months
1
0
0
0
[greatlrd] 21837: [AUDIT] after looking through code no signs of reverse engineering were found.
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun May 7 22:42:22 2006 New Revision: 21837 URL:
http://svn.reactos.ru/svn/reactos?rev=21837&view=rev
Log: [AUDIT] after looking through code no signs of reverse engineering were found. Modified: trunk/reactos/drivers/filesystems/vfat/finfo.c (props changed) trunk/reactos/drivers/filesystems/vfat/vfat.h (props changed) Propchange: trunk/reactos/drivers/filesystems/vfat/finfo.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/reactos/drivers/filesystems/vfat/vfat.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
18 years, 7 months
1
0
0
0
← Newer
1
...
27
28
29
30
31
32
33
...
38
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Results per page:
10
25
50
100
200