2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>

* drivers/fs/vfat/create.c (VfatSupersedeFile): Only notify cache manager
	about change in file size if caching is initiated on the file stream.

svn path=/trunk/; revision=3999
This commit is contained in:
Casper Hornstrup 2003-01-15 19:53:49 +00:00
parent 594558c6e2
commit f811f37004
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
* drivers/fs/vfat/create.c (VfatSupersedeFile): Only notify cache manager
about change in file size if caching is initiated on the file stream.
2003-01-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
* boot.bat: Use DOS end-of-line characters.

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: create.c,v 1.50 2003/01/02 16:04:31 hbirr Exp $
/* $Id: create.c,v 1.51 2003/01/15 19:53:49 chorns Exp $
*
* PROJECT: ReactOS kernel
* FILE: services/fs/vfat/create.c
@ -529,7 +529,12 @@ VfatSupersedeFile(PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT FileObject,
Fcb->RFCB.AllocationSize.QuadPart = 0;
Fcb->RFCB.FileSize.QuadPart = 0;
Fcb->RFCB.ValidDataLength.QuadPart = 0;
CcSetFileSizes(FileObject, (PCC_FILE_SIZES)&Fcb->RFCB.AllocationSize);
/* Notify cache manager about the change in file size if caching is
initialized on the file stream */
if (FileObject->SectionObjectPointers->SharedCacheMap != NULL)
{
CcSetFileSizes(FileObject, (PCC_FILE_SIZES)&Fcb->RFCB.AllocationSize);
}
}
while (Cluster != 0xffffffff && Cluster > 1)
{