*LengthRead = 0;
Ccb = (PVFATCCB)IrpContext->FileObject->FsContext2;
- Fcb = Ccb->pFcb;
+ Fcb = IrpContext->FileObject->FsContext;
BytesPerSector = DeviceExt->FatInfo.BytesPerSector;
BytesPerCluster = DeviceExt->FatInfo.BytesPerCluster;
assert (IrpContext->FileObject->FsContext2 != NULL);
Ccb = (PVFATCCB)IrpContext->FileObject->FsContext2;
- Fcb = Ccb->pFcb;
+ Fcb = IrpContext->FileObject->FsContext;
BytesPerCluster = DeviceExt->FatInfo.BytesPerCluster;
BytesPerSector = DeviceExt->FatInfo.BytesPerSector;
{
NTSTATUS Status;
PVFATFCB Fcb;
- PVFATCCB Ccb;
ULONG Length;
ULONG ReturnedLength = 0;
PERESOURCE Resource = NULL;
assert(IrpContext->DeviceExt);
assert(IrpContext->FileObject);
- Ccb = (PVFATCCB) IrpContext->FileObject->FsContext2;
- assert(Ccb);
- Fcb = Ccb->pFcb;
+ Fcb = IrpContext->FileObject->FsContext;
assert(Fcb);
DPRINT("<%S>\n", Fcb->PathName);
{
CacheSize = PAGE_SIZE;
}
- CcRosInitializeFileCache(IrpContext->FileObject, &Fcb->RFCB.Bcb, CacheSize);
+ CcRosInitializeFileCache(IrpContext->FileObject, CacheSize);
}
if (!CcCopyRead(IrpContext->FileObject, &ByteOffset, Length,
IrpContext->Flags & IRPCONTEXT_CANWAIT, Buffer,
NTSTATUS VfatWrite (PVFAT_IRP_CONTEXT IrpContext)
{
- PVFATCCB Ccb;
PVFATFCB Fcb;
PERESOURCE Resource = NULL;
LARGE_INTEGER ByteOffset;
assert(IrpContext->DeviceExt);
assert(IrpContext->FileObject);
- Ccb = (PVFATCCB) IrpContext->FileObject->FsContext2;
- assert(Ccb);
- Fcb = Ccb->pFcb;
+ Fcb = IrpContext->FileObject->FsContext;
assert(Fcb);
DPRINT("<%S>\n", Fcb->PathName);
{
CacheSize = PAGE_SIZE;
}
- CcRosInitializeFileCache(IrpContext->FileObject, &Fcb->RFCB.Bcb, CacheSize);
+ CcRosInitializeFileCache(IrpContext->FileObject, CacheSize);
}
if (ByteOffset.QuadPart > OldFileSize.QuadPart)
{