mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:43:22 +00:00
Call VfatUpdateEntry on each write operation.
svn path=/trunk/; revision=3986
This commit is contained in:
parent
3ce30c75e1
commit
0f02fa7c0d
1 changed files with 2 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
/* $Id: rw.c,v 1.52 2003/01/04 02:07:18 hbirr Exp $
|
/* $Id: rw.c,v 1.53 2003/01/11 16:01:28 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1021,13 +1021,7 @@ NTSTATUS VfatWrite (PVFAT_IRP_CONTEXT IrpContext)
|
||||||
&Fcb->entry.UpdateTime);
|
&Fcb->entry.UpdateTime);
|
||||||
Fcb->entry.AccessDate = Fcb->entry.UpdateDate;
|
Fcb->entry.AccessDate = Fcb->entry.UpdateDate;
|
||||||
// update dates/times and length
|
// update dates/times and length
|
||||||
if (OldAllocationSize != Fcb->RFCB.AllocationSize.u.LowPart)
|
VfatUpdateEntry (IrpContext->DeviceExt, IrpContext->FileObject);
|
||||||
{
|
|
||||||
VfatUpdateEntry (IrpContext->DeviceExt, IrpContext->FileObject);
|
|
||||||
Fcb->Flags &= ~FCB_UPDATE_DIRENTRY;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
Fcb->Flags |= FCB_UPDATE_DIRENTRY;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue