Commit graph

15 commits

Author SHA1 Message Date
Amine Khaldi
0e4da5b660 [FASTFAT]
* Add some function annotations.
* Fix several debug print specifiers.
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58990
2013-05-11 11:03:12 +00:00
Pierre Schweitzer
bcf1cc76b6 [FASTFAT]
Revert r54788: it's not appropriate yet.

svn path=/trunk/; revision=54800
2012-01-01 17:15:25 +00:00
Pierre Schweitzer
5de2462b2a [FASTFAT]
Return appropriate status when requesting extended attributes on FAT32

svn path=/trunk/; revision=54788
2011-12-31 00:09:57 +00:00
Rafal Harabien
f6630535f2 [CDFS][FASTFAT][NPFS]
- Fix MSVC warnings

svn path=/trunk/; revision=52546
2011-07-05 13:55:39 +00:00
Pierre Schweitzer
ff0651e441 [FASTFAT]
Do not set file attributes in case they are set to 0 or -1

svn path=/trunk/; revision=50995
2011-03-07 20:28:42 +00:00
Pierre Schweitzer
18204992ea [FASTFAT]
MagicValue--;
ThanksTo(James, Amine);
/* EOF */

svn path=/trunk/; revision=50167
2010-12-27 18:11:35 +00:00
KJK::Hyperion
204b2befbb modified drivers/filesystems/fastfat/blockdev.c
modified   drivers/filesystems/fastfat/dirwr.c
modified   drivers/filesystems/fastfat/ea.c
modified   drivers/filesystems/fastfat/finfo.c
   Silence "argument unused" warnings
   Corrected several accesses to potentially uninitialized variables

modified   drivers/filesystems/fastfat/vfat.h
   Visual C++ is no longer a guarantee of compilation with the DDK

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41457
2009-06-19 00:21:21 +00:00
Stefan Ginsberg
88e9b2a513 - In Win32 DBG is defined to 0 for a non-debug build and to 1 for a debug build. In ReactOS we do this slightly different: DBG is correctly defined to 1 for debug, but not defined at all on non-debug/release build. Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree.
- Fix this by defining DBG on non-debug build too and deprecate all usage of #ifdef DBG.

svn path=/trunk/; revision=41436
2009-06-17 12:44:05 +00:00
Christoph von Wittich
599e30a39f -check for filesize in MmCanFileBeTruncated
-make use of MmCanFileBeTruncated in VfatSetAllocationSizeInformation
-make use of MmCanFileBeTruncated in VfatSetInformation (patch by arty with some fixes from me)
thanks to Alex for the hint that we miss the MmCanFileBeTruncated check
fixes "Anyone has referenced a cache segment behind the new size."
See issue #712 for more details.

svn path=/trunk/; revision=39314
2009-02-03 12:39:55 +00:00
Jeffrey Morlan
220378c764 VfatSetAllocationSizeInformation: The fast code for extending the size of a non-empty file did have a bug in that it didn't always set Fcb->LastCluster/Fcb->LastOffset but the OffsetToCluster call was made assuming that it did. However, the code that replaced it had a bug as well, in that it did not set Cluster to the original final cluster like the error handling code expected, so it would crash when out of disk space. Bringing back the fast code, but with its bug fixed.
svn path=/trunk/; revision=38179
2008-12-18 20:47:20 +00:00
Dmitry Gorbachev
32580ec32a Silence GCC warnings.
svn path=/trunk/; revision=37919
2008-12-07 21:52:22 +00:00
Aleksey Bragin
4983dabf35 - FASTFAT: when querying file name information, fill in the whole buffer provided by the caller, even if filename does not fully fit (driver by Microsoft(R) does the same). Also, return the actual amount of data written in IoSb.Information, even in case of buffer overflow result.
- CDFS: Fix a guaranteed buffer overwrite when zero-terminating a filename. Also apply the same fixes described above.

svn path=/trunk/; revision=37393
2008-11-17 11:25:36 +00:00
Aleksey Bragin
fc64051142 - VFAT fixes: Actually perform a mandatory call to CcPurgeCacheSection during file deletion (fixes real NT5 cache manager attempts to write section of a deleted file).
- VFAT fixes: When querying FileStandardInformation, NT's fastfat driver sets NumberOfLinks to 1, ours sets it to 0 somewhy. Change to 1 for compatibility.
- A couple of debug prints improvements in VFAT.
- Comment out UNIMPLEMENTED in CcPurgeCacheSection to prevent debug messages flood.

svn path=/trunk/; revision=36830
2008-10-19 13:23:00 +00:00
Pierre Schweitzer
0d8cccef41 Set default return of IRP_MJ_QUERY_INFORMATION to STATUS_INVALID_PARAMETER
svn path=/trunk/; revision=33671
2008-05-24 09:06:53 +00:00
Aleksey Bragin
21ab956cf9 - Rename vfatfs.sys to fastfat.sys for compatibility reasons.
svn path=/trunk/; revision=32193
2008-02-07 18:06:11 +00:00
Renamed from reactos/drivers/filesystems/vfat/finfo.c (Browse further)