Commit graph

853 commits

Author SHA1 Message Date
Amine Khaldi 024dcc7549 [MUP][NTOS] Fix some misspellings. By Jared Smudde. CORE-10984
svn path=/trunk/; revision=71021
2016-03-18 10:29:46 +00:00
Pierre Schweitzer cfec64a66a [FS_REC]
Implement support for recognizing the Btrfs volumes.

Patch by Peter Hater.

CORE-10892 #comment The fs_rec part has been committed, thanks!

svn path=/trunk/; revision=70955
2016-03-05 13:01:11 +00:00
Pierre Schweitzer cb7c75c1d1 [FS_REC]
--MagicValues;

svn path=/trunk/; revision=70796
2016-02-28 11:27:05 +00:00
Pierre Schweitzer 3355fd5594 [FASTFAT]
Don't mark a pending IRP twice

svn path=/trunk/; revision=70788
2016-02-25 20:52:55 +00:00
Pierre Schweitzer 0f01876900 [NTFS]
Add a missing lock

svn path=/trunk/; revision=70787
2016-02-25 20:49:31 +00:00
Pierre Schweitzer c0be6ae94e [NTFS]
Properly queue the IRP for deferred execution in case we got pending status

svn path=/trunk/; revision=70780
2016-02-24 07:54:20 +00:00
Pierre Schweitzer 5876421913 [NTFS]
Even more locking

svn path=/trunk/; revision=70779
2016-02-23 22:19:38 +00:00
Pierre Schweitzer 3d8efb5447 [NTFS]
Moar locking
Any resemblance to previous commit, living or dead, is purely coincidental

svn path=/trunk/; revision=70778
2016-02-23 20:45:11 +00:00
Pierre Schweitzer 2bda155345 [NTFS]
Moar locking

svn path=/trunk/; revision=70777
2016-02-23 19:57:10 +00:00
Pierre Schweitzer 3283c55709 [NTFS]
r70772b

svn path=/trunk/; revision=70773
2016-02-22 22:23:08 +00:00
Pierre Schweitzer a8644f7a2d [NTFS]
- Implement IRP_MJ_CLEANUP (minus the cases we can't deal with yet)
- Implement open handles count for FCB & VCB
- Implement volume locking (so useful)

svn path=/trunk/; revision=70772
2016-02-22 22:20:54 +00:00
Pierre Schweitzer dcef60424d [NTFS]
Cowardly refuse to continue processing (enumerating/reading) when stumbling upon a compressed entry.
This avoids infinite loops when enumerating, incorrect files contents when reading.

CORE-10814 #resolve #comment 'Fixed' with r70750

svn path=/trunk/; revision=70750
2016-02-14 22:44:54 +00:00
Pierre Schweitzer 364edfc021 [FASTFAT]
[NTFS]
Thanks to r70746, now, drop our beloved fix/hack/whatever about non-initialized floppy disks.

svn path=/trunk/; revision=70748
2016-02-14 19:56:17 +00:00
Pierre Schweitzer a8410e8c47 [EXT2]
Revert r70746, more appropriate fix was committed in r70746

svn path=/trunk/; revision=70747
2016-02-14 19:54:54 +00:00
Pierre Schweitzer f79fbfbb61 [EXT2]
Add the ReactOS famous... hack? fix? whatever? already present in FastFAT, NTFS...:
When accessing a floppy disk, our floppy storage stack can return that the disk type is unknown (some would say it's legit - see comments in FastFAT) and will also return a disk sector size of 0.
Then, when trying to read the floppy disk with said size, everything goes wrong (null length read is never a good thing). So, as in any other FSD in ReactOS, for disk sector size to 512 bytes in this really specific case.

This fixes BSOD when having a floppy drive in ReactOS (whatever its filesystem).

CORE-10464 #resolve #comment Fixed with r70725

svn path=/trunk/; revision=70725
2016-02-13 09:16:45 +00:00
Hermès Bélusca-Maïto 10bff42ab6 Remove redundant extra terminating ';' in all of our C code.
svn path=/trunk/; revision=70690
2016-02-04 20:42:07 +00:00
Thomas Faber 8b9fb19bab [FASTFAT]
- Always use the full path name when looking for FCB hashes
CORE-10483 #resolve

svn path=/trunk/; revision=70304
2015-12-08 12:57:45 +00:00
Thomas Faber 95fa8202a5 [FASTFAT]
- Gracefully handle empty filenames found on disk, and warn about them.

svn path=/trunk/; revision=70216
2015-11-30 11:25:14 +00:00
Thomas Faber 51c131bcb5 [FASTFAT]
- Handle multiple trailing backslashes without asserting
CORE-10483

svn path=/trunk/; revision=70214
2015-11-29 20:23:43 +00:00
Thomas Faber 774ff48872 [FASTFAT]
- Fail attempts to open files relative to the volume

svn path=/trunk/; revision=70208
2015-11-29 18:43:50 +00:00
Thomas Faber 5d85efdaa2 [FASTFAT]
- Don't leak FCBs, Arch ;)

svn path=/trunk/; revision=70042
2015-11-22 21:46:58 +00:00
Eric Kohl 2a6b240439 [FASTFAT]
Fail, if we try to overwrite an existing directory.

svn path=/trunk/; revision=69941
2015-11-19 16:36:39 +00:00
Thomas Faber 352bcdb0e1 [FASTFAT]
- Correctly track the buffer length in VfatGetAllInformation. Fixes pool corruption when running ntdll_winetest:file

svn path=/trunk/; revision=69898
2015-11-16 13:58:39 +00:00
Thomas Faber 5a28e79ccc [CDFS]
- Don't access file name buffer if its Length is zero in CdfsMakeAbsoluteFilename
CORE-10459

svn path=/trunk/; revision=69896
2015-11-16 11:01:36 +00:00
Eric Kohl 8d8012fbfb [FASTFAT]
Ooops! That should not have been committed!

svn path=/trunk/; revision=69892
2015-11-14 21:10:02 +00:00
Eric Kohl ad4b705148 [FASTFAT]
VfatGetAllInformation: Return as much information as possible, but do not fail if the name string does not fit into the buffer.

svn path=/trunk/; revision=69891
2015-11-14 20:41:59 +00:00
Eric Kohl 014a85563d [FASTFAT]
Deny access when trying to overwrite a read-only file.

svn path=/trunk/; revision=69880
2015-11-13 19:03:34 +00:00
Thomas Faber 668e97e38d [FASTFAT]
- Return the appropriate status code when encountering file system corruption
- When encountering corruption, print a message by default instead of breaking into the debugger

svn path=/trunk/; revision=69768
2015-11-01 08:55:47 +00:00
Amine Khaldi f89d6ba125 [EXT2FS] Do not define _X86_ unconditionally. Spotted by Sergey Chernov. CORE-10448
svn path=/trunk/; revision=69746
2015-10-31 10:33:28 +00:00
Thomas Faber b329beb092 [EXT2FS]
- Fix warnings

svn path=/trunk/; revision=69586
2015-10-18 07:32:09 +00:00
Pierre Schweitzer b4ebfdcfc0 [FILESYSTEMS]
This wasn't meant to be committed.

svn path=/trunk/; revision=69578
2015-10-17 22:40:14 +00:00
Pierre Schweitzer af6c248ac3 [FS_REC]
Implement ExtX support in FS_REC, this allows it to autoload ext2fs.sys 

Starting with this revision, browsing ExtX volumes in ReactOS works without any other modifications.

Thanks to Peter Hater for his initial work and to Thomas for his reviews

svn path=/trunk/; revision=69577
2015-10-17 22:39:13 +00:00
Pierre Schweitzer b9b583fd22 [EXT2]
[EXT2_NEW]
Get rid of old ext2 driver and use new one

svn path=/trunk/; revision=69576
2015-10-17 22:35:20 +00:00
Pierre Schweitzer b8f112b151 [EXT2_NEW]
Fix Linux build

svn path=/trunk/; revision=69574
2015-10-17 22:29:09 +00:00
Thomas Faber 13312423b0 [NPFS]
- Don't leave the critical region before releasing ERESOURCE

svn path=/trunk/; revision=69535
2015-10-15 08:03:40 +00:00
Amine Khaldi b792e060da [EXT2_NEW] Addendum to r69509. CORE-10272 CR-82
svn path=/trunk/; revision=69511
2015-10-12 11:16:25 +00:00
Amine Khaldi 897634ce5b [EXT2_NEW] Add Matt Wu's ext2 filesystem driver. Not enabled by default just yet. Brought to you by Peter Hater with reviews and improvements by Thomas Faber and Pierre Schweitzer. CORE-10272 CR-82
svn path=/trunk/; revision=69509
2015-10-12 10:19:10 +00:00
Pierre Schweitzer 6da1a0b9b0 [MSFS]
Fix a FIXME: properly reset timer when re-using a queued IRP for reading.
Also fix a possible race condition between time out DPC and IRP re-use.

Thanks to Thomas for his help with DPC & timers.

CORE-10245

svn path=/trunk/; revision=69483
2015-10-10 12:50:33 +00:00
Pierre Schweitzer 9b2b4cbee8 [MSFS]
- Remove an useless (and unsafe!) counter
- Use the message counter in a thread-safe way in RW operations

svn path=/trunk/; revision=69482
2015-10-10 12:33:22 +00:00
Pierre Schweitzer 1d4d8588ef [MSFS]
MessageEvent is no longer used, remove it

svn path=/trunk/; revision=69481
2015-10-10 12:16:17 +00:00
Pierre Schweitzer 4b5eca57a3 [MSFS]
Prevent a race condition on reading message from list.
Spotted by Thomas

svn path=/trunk/; revision=69480
2015-10-10 12:08:45 +00:00
Pierre Schweitzer ecba06ffa2 [MSFS]
Addendum to r69475
By Thomas Faber

svn path=/trunk/; revision=69477
2015-10-10 08:37:36 +00:00
Pierre Schweitzer a5031d7982 [MSFS]
Addendum to r69475

svn path=/trunk/; revision=69476
2015-10-10 08:31:25 +00:00
Pierre Schweitzer ead10526aa [MSFS]
Implement asynchronous reading from mailslot.
Patch by Nikita Pechenkin

Adjustements, style fixing by myself.

CORE-10245 #resolve #comment Modified patch committed with r69475. I have tested kernel32:mailslot and your provided test, both are passing 100%. Thanks!

svn path=/trunk/; revision=69475
2015-10-10 08:29:05 +00:00
Alex Ionescu bde25860e7 [FS_REC]: Guard against ROUND_UP/DOWN already being defined.
svn path=/trunk/; revision=69442
2015-10-04 17:14:24 +00:00
Stefan Ginsberg 0fbe4b9b8e Remove legacy _KeNumberProcessors hack. While we are at it fix its type (CCHAR not UCHAR) and remove it from the NDK as it is a public global provided by the DDK (where we properly define it with the "__CREATE_NTOS_DATA_IMPORT_ALIAS" fix when needed. Also, the variable KeActiveProcessors is not even exported from NTOS so move it to an internal header. Fix missed fix in UDFS as well in uncompiled file.
svn path=/trunk/; revision=69416
2015-09-29 18:34:33 +00:00
Thomas Faber eb834cf62f [MSFS]
- Use a NULL timeout for infinite waits instead of waiting for 100 ns. CORE-10188 #resolve
- Wait for available read data in user mode to handle thread termination
- Return STATUS_IO_TIMEOUT also for a zero-length timeout. Fixes Wine tests
- Avoid MmGetSystemAddressForMdl
- Acquiring a mutex is not a UserRequest

svn path=/trunk/; revision=69236
2015-09-15 09:40:30 +00:00
Alex Ionescu 51d5eadd25 [CDFS_NEW]
- Resurrect back 7 years later (revert commit 34622).
- Add correct MS-PL (Public) License. Not added to build/used, but I need some of the headers/data structures in here.
- Source: https://github.com/Microsoft/Windows-driver-samples/blob/master/filesys/cdfs

svn path=/trunk/; revision=69180
2015-09-11 04:02:21 +00:00
Pierre Schweitzer 7584156a40 [FASTFAT]
Move VfatInitFastIoRoutines to the INIT section

svn path=/trunk/; revision=69175
2015-09-10 21:35:15 +00:00
Stefan Ginsberg 7fc480a7c1 Fix the FSDs to use the INIT_SECTION-style and add the alloc_text-s required for MSVC. Please make sure to add section declarations for both compilers for any new functions!
svn path=/trunk/; revision=69170
2015-09-10 12:00:28 +00:00