Commit graph

531 commits

Author SHA1 Message Date
Pierre Schweitzer 52858fdcec [NTFS]
Allow opening the NTFS volume in NtfsCreateFile()

svn path=/trunk/; revision=64290
2014-09-25 20:21:34 +00:00
Pierre Schweitzer 17b30a2024 [NTFS]
- Create the volume FCB and save it in VCB.
- Fix a memory leak

svn path=/trunk/; revision=64288
2014-09-25 20:15:00 +00:00
Pierre Schweitzer 6feab772ca [NTFS]
Compute index record size on mount and save it.

svn path=/trunk/; revision=64265
2014-09-25 06:36:14 +00:00
Pierre Schweitzer cff39969d6 [NTFS]
Also add missing defines about index size and index header for INDEX_ROOT attribute.
Implemented their support in NtfsDumpFileAttributes().

svn path=/trunk/; revision=64233
2014-09-22 20:26:21 +00:00
Pierre Schweitzer d907725b5d [NTFS]
Add missing defines about INDEX_ROOT attributes and collation rules.
Implemented their support in NtfsDumpFileAttributes().

Sources: http://ftp.kolibrios.org/users/Asper/docs/NTFS/ntfsdoc.html#attribute_index_root and Linux kernel.

svn path=/trunk/; revision=64232
2014-09-22 19:59:45 +00:00
Amine Khaldi db90bb6299 [CMAKE]
* Don't set -Wno-unused-but-set-variable until http://llvm.org/bugs/show_bug.cgi?id=20906 is fixed or the warnings are fixed upstream.
CORE-8516

svn path=/trunk/; revision=64114
2014-09-11 10:43:57 +00:00
Hervé Poussineau 364fbd6cea [CDFS]
- Correctly decode address of first session, which now uses MSF format since r64106

svn path=/trunk/; revision=64112
2014-09-10 19:45:57 +00:00
Hervé Poussineau fa4b180304 [CDFS] Use IOCTL_CDROM_READ_TOC instead of IOCTL_CDROM_GET_LAST_SESSION, which is not always available
svn path=/trunk/; revision=64106
2014-09-10 16:02:02 +00:00
Thomas Faber 49a3d49fe5 [FASTFAT]
- Do not use direct I/O since it limits read/write operations to 64 MB
CORE-8410 #resolve

svn path=/trunk/; revision=63953
2014-08-26 13:41:57 +00:00
Thomas Faber b82e2bf972 [FASTFAT]
- Properly handle errors in CcInitializeCacheMap, CcCopyRead and CcCopyWrite
CORE-8410

svn path=/trunk/; revision=63928
2014-08-24 03:28:01 +00:00
Hermès Bélusca-Maïto 4ba08b1994 [NPFS]: The third argument of ObLogSecurityDescriptor is an integer, not a boolean.
svn path=/trunk/; revision=63904
2014-08-18 17:45:26 +00:00
Thomas Faber ccacbf8050 [NPFS]
- Fix list walk in NpCancelWaiter -- we cannot access the list entry after using RemoveEntryList on it
- Make the logic in NpCancelWaiter more readable
CORE-8442 #resolve

svn path=/trunk/; revision=63883
2014-08-14 19:35:00 +00:00
Thomas Faber 9ae009c260 [NPFS]
- Avoid magic values, remove a few casts and don't name an IO_STATUS_BLOCK Status. No code changes.

svn path=/trunk/; revision=63827
2014-08-07 10:24:07 +00:00
Thomas Faber beb99d9992 [NPFS]
- Base data queue entry on the right struct member in NpCompleteStalledWrites. Fixes list entry corruption found in CORE-8419.

svn path=/trunk/; revision=63826
2014-08-07 10:10:02 +00:00
Pierre Schweitzer 580d1cb2bb [NPFS]
Properly declare with FORCEINLINE

svn path=/trunk/; revision=63146
2014-05-04 09:38:36 +00:00
Pierre Schweitzer ae707e1952 [FASTFAT]
Disable SL_OPEN_TARGET_DIRECTORY for the moment.

CORE-8128 #resolve

svn path=/trunk/; revision=63081
2014-04-30 18:48:03 +00:00
Pierre Schweitzer 09a8dc268a [FASTFAT]
Fix the most stupid bug ever in ReactOS history (at least!).

Dear Pierre, you pretend you're modifying the FileObject->FileName field, but, as you were told in the early when you learnt C, you're at that point in your code dealing with a local copy of the unicode string. So, if modifying the Buffer field is fine, because it's a pointer to memory zone, containing the wchar string, modifying the Length field is totally pointless because it won't magically modify the unicode string in the file object, and will just be forgotten as long the function will be unstacked.

So REALLY modify the file object. VfatSetRenameInformation receives less garbage information now...

svn path=/trunk/; revision=63049
2014-04-29 20:50:51 +00:00
Pierre Schweitzer 4d286e5a49 [FASTFAT]
Properly handle files at root.

CORE-8125 #resolve

svn path=/trunk/; revision=63045
2014-04-29 18:25:02 +00:00
Pierre Schweitzer 336b78eeba [FASTFAT]
Fix typo.

svn path=/trunk/; revision=63038
2014-04-28 20:33:57 +00:00
Pierre Schweitzer 56a5ebef81 [FASTFAT]
Implement part 2/3 (first part was in ntoskrnl, remember ;-)) of renaming support in ReactOS.

Here, we implement support for SL_OPEN_TARGET_DIRECTORY for IRP_MJ_CREATE in fastfat. The code is not the best ever, but we can't do miracles with fastfat.
This fixes a few tests in KmTests:IoCreateFile and also shows failures I still don't get and that will require deeper attention.

Last part will be to effectively bring support of FileRenameInformation in IRP_MJ_SET_INFORMATION. But this is yet another story.

svn path=/trunk/; revision=63034
2014-04-28 19:40:26 +00:00
Thomas Faber b0bdd6c8c8 [FS_REC]
- Remove a meaningless DPRINT

svn path=/trunk/; revision=62978
2014-04-26 16:31:14 +00:00
Christoph von Wittich 0373d3643b [fastfat]
fix typo in comment

svn path=/trunk/; revision=62966
2014-04-25 17:09:37 +00:00
Hermès Bélusca-Maïto f4dcf7950b [CDFS]: Fix typo spotted by Alexander and confirmed by Pierre (see rev 62779).
svn path=/trunk/; revision=62807
2014-04-19 15:17:28 +00:00
Pierre Schweitzer ad56db3061 [CDFS]
Rely on RTL when possible. Spotted by Thomas.

svn path=/trunk/; revision=62799
2014-04-19 11:03:26 +00:00
Pierre Schweitzer c023028768 [CDFS]
Fix MSVC build

svn path=/trunk/; revision=62792
2014-04-19 06:38:25 +00:00
Pierre Schweitzer 4c86c611f1 [CDFS]
Don't attempt anything during the cleanup of stream file (or of an unopened file).
Fix crash on boot.

svn path=/trunk/; revision=62791
2014-04-19 06:32:58 +00:00
Pierre Schweitzer 8b86c3ee99 [CDFS]
Allow registering notifications.
None implemented yet.

svn path=/trunk/; revision=62780
2014-04-18 21:49:12 +00:00
Pierre Schweitzer 81f368964f [CDFS]
Convert FCB pathname from simple buffer to unicode string.
Please carefully review if I missed something

svn path=/trunk/; revision=62779
2014-04-18 21:40:02 +00:00
Eric Kohl 15ceab25f8 [FASTFAT]
Add file and directory removal notification.

svn path=/trunk/; revision=62772
2014-04-18 12:07:55 +00:00
Pierre Schweitzer c48b6ad954 [NPFS]
Fix failing tests

CORE-7451

svn path=/trunk/; revision=62724
2014-04-12 21:15:55 +00:00
Pierre Schweitzer 1f6df38614 [CDFS]
- Fix CdfsWSubString() prototype
- Use it in CdfsCreateFCB() for string copy

CID #511047

svn path=/trunk/; revision=62676
2014-04-06 21:02:21 +00:00
Pierre Schweitzer f7bab18907 [NPFS]
- Also call NpQueryNameInfo() in FileAllInformation and return its status. This prevents from returning uninit status
- By default, return STATUS_ILLEGAL_FUNCTION in NpImpersonate(). This prevents from returning uninit status
- Fix comparison in NpQueryFsVolumeInfo() (remaining len is to be used)
- Properly set the string without space. This allows setting the complete string with 18 bytes.

CID #1102019
CID #1102505
CID #1102506

svn path=/trunk/; revision=62663
2014-04-06 16:15:06 +00:00
Pierre Schweitzer c58c9e039c [FASTFAT]
Remove dead code

CID #502185

svn path=/trunk/; revision=62661
2014-04-06 15:49:38 +00:00
Pierre Schweitzer 9315f42c8f [CDFS]
- Fix broken if statement
- Remove deadcode

CID #502181
CID #502438
CID #716663

svn path=/trunk/; revision=62660
2014-04-06 15:43:06 +00:00
Thomas Faber f3d151acd3 [NPFS]
- Fix some uninitialized and over-initialized variables and some DPRINTs. CID 1102515

svn path=/trunk/; revision=62641
2014-04-06 07:54:57 +00:00
Thomas Faber c362a06522 [CMAKE]
- Remove unnecessary allow_warnings throughout the code base
- Make -Wnarrowing an error unless excepted specifically (only done in explorer)

svn path=/trunk/; revision=62566
2014-03-26 11:08:45 +00:00
Hermès Bélusca-Maïto 5399c9a10c [EXT2]: Revert the change of rev 62562 before finding a better fix...
svn path=/trunk/; revision=62564
2014-03-25 23:16:02 +00:00
Hermès Bélusca-Maïto fe4af53ff0 [EXT2]
try_return() == try_return(S) with nothing in S . The code sometimes use it.
Shut up MSVC warning C4003: not enough actual parameters for macro 'try_return'.

svn path=/trunk/; revision=62562
2014-03-24 22:20:52 +00:00
Pierre Schweitzer 6d582f3f95 [FASTFAT]
Also cleanup ongoing notifications during cleanup.

This fixes kernel32:change winetests crash.
This gets us from 300 tests executed, 134 failed to 312 executed, 33 failed.

CORE-2582

svn path=/trunk/; revision=62485
2014-03-12 19:58:11 +00:00
Pierre Schweitzer cb87e96df6 [FASTFAT]
Add support for more notifications on file modification.

CORE-2582

svn path=/trunk/; revision=62471
2014-03-11 07:22:28 +00:00
Timo Kreuzer dc64b5bd63 [NPFS/NTOSKRNL]
Silence 2 more debug prints that are not so useful.

svn path=/trunk/; revision=62457
2014-03-08 11:37:03 +00:00
Pierre Schweitzer a101d80ab6 [FASTFAT]
Properly handle directories when notifying the kernel about creation.

This makes the MS test application fully passing on ReactOS.
You can find it at: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365261%28v=vs.85%29.aspx

CORE-2582

svn path=/trunk/; revision=62446
2014-03-07 20:30:29 +00:00
Pierre Schweitzer 3d38a13543 [FASTFAT]
Add really limited support for file system notifications.
In case of file creation, we report this.

More cases are missing, such as: dir creation, attributes change, size change, last write change.
See: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364417%28v=vs.85%29.aspx as a reference

CORE-2582

svn path=/trunk/; revision=62445
2014-03-07 19:46:37 +00:00
Pierre Schweitzer d315b7bb39 [FASTFAT]
- Implement VfatNotifyChangeDirectory which handles file system notifications registration
- Also add support to dispatch routine for not queuing IRPs when pending and not required
CORE-2582

svn path=/trunk/; revision=62444
2014-03-07 19:42:54 +00:00
Pierre Schweitzer 0ef03fcf25 [FASTFAT]
Add required fields to handle file system notifications to device extension/VCB and properly initialize them on volume mount

svn path=/trunk/; revision=62443
2014-03-07 19:38:35 +00:00
James Tabor 5729a923fe - Remove debug print.
svn path=/trunk/; revision=62348
2014-02-27 13:20:59 +00:00
James Tabor 9b4d645ad0 [Ext2fs]
- Fixed the driver start up for Ext2 partitions and drives. Now the driver loads.
- At one time this driver worked on the same hardware I have today, same drives nothing has changed. Now since all the changes else where, guessing it broke something.
- Don't assign and bug reports to me, if so, I will remove them!

svn path=/trunk/; revision=62326
2014-02-25 03:39:23 +00:00
Amine Khaldi a4a1fab753 [DRIVERS]
* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62077
2014-02-09 17:28:01 +00:00
Amine Khaldi 117c9232e4 [NPFS]
* Add header guards to the main header.
* Improve header inclusions.
CORE-7716

svn path=/trunk/; revision=62015
2014-02-06 19:08:00 +00:00
Amine Khaldi 27557e4cd0 [MUP]
* Add header guards to the main header.
* Improve header inclusions.
CORE-7716

svn path=/trunk/; revision=62014
2014-02-06 18:05:58 +00:00