Fix user buffer handling for FSCTL_GET_NTFS_VOLUME_DATA. It fixes NTFSInfo.
We're just lacking a few information in the output data now
CORE-8725
svn path=/trunk/; revision=68327
Time to free some Sysinternals tool: ntfsinfo.
To make it short, this tool dumps various information about a NTFS volume and its reserved meta-data files
Our version comes with three advantages compared to the Russinovich's tool:
- It's FLOSS
- It works properly on NT5+ (developed with W2K3 & W7) whereas R's cannot display meta-data files information
- It will open a volume by default if none provided
One issue so far: it doesn't work properly on ReactOS!
CORE-8725
svn path=/trunk/; revision=68326
- Skip msi:msi test if running on Windows in non-interactive mode. This should allow WHS-Testbot to get a bit further
ROSTESTS-180
ONLINE-441 ROSTESTS-179
svn path=/trunk/; revision=68319
Add CmpDestroySecurityCache() and CmpDestroyHiveViewList() stubs and call them in CmpDestroyHive and CmUnloadKey().
CORE-6492 #resolve #comment Thank you Hermes! This is exactly what I needed!
svn path=/trunk/; revision=68313
Validate the stream we're trying to open properly exists.
This check might have to be moved later on when the driver switches to RW
svn path=/trunk/; revision=68309
Always gather the size of the unnamed stream for directory display.
This fixes file size display when there are several data streams available
svn path=/trunk/; revision=68308
- Do not forget to initialize LoadDll->NamePointer in DbgkMapViewOfSection!!
- Just copy the NamePointer (pointer to pointer to file name) in DbgUiConvertStateChangeStructure. See the description of the lpImageName member of the LOAD_DLL_DEBUG_INFO structure in https://msdn.microsoft.com/en-us/library/windows/desktop/ms680351(v=vs.85).aspx for more details.
This fixes some debugging stuff with GDB (see the below-mentioned report).
Adapted from a patch by andy-123 (whom I don't remember his name^^),
CORE-7019 #resolve #comment Fixed in r68306
CORE-8622 #comment An updated fix was committed in r68306
svn path=/trunk/; revision=68306
HvFree:
- Free the BaseBlock.
- Do not free the hive itself because the HHIVE is part of the CMHIVE structure and freeing it here could be an unpleasant surprise.
[NTOSKRNL]
CmpDestroyHive: Free the CMHIVE after calling HvFree.
CmUnloadKey: Free the hive storage, the hive locks and the CMHIVE properly.
svn path=/trunk/; revision=68303
Implement support for NTFS $DATA streams:
- The driver is now able to read various streams for a same file, using the same syntax as Windows.
- This fixes to read (in general) files with multiple streams where reading unnamed stream was leading to read beyond file end
- Also fix reading small files which are smaller than a sector
For demo, see: http://www.heisspiter.net/~Pierre/rostests/NTFS_Streams.png
svn path=/trunk/; revision=68302
While handling IRP_MN_QUERY_DIRECTORY, in case there is no $FILE_NAME attribute, dump file attributes & MFT ID.
This fixes ASSERT failure when browsing some Win7 volumes
svn path=/trunk/; revision=68290
Don't attempt to open the unnamed stream from $DATA attribute on file lookup. It was unused & leaking.
It fixes opening files that don't have unnamed stream (even though we cannot read there contents yet as we only support unnamed stream)
svn path=/trunk/; revision=68285