-/*
+/*
* FFS File System Driver for Windows
*
* fsctl.c
PAGED_CODE();
Disklabel = (PDISKLABEL)ExAllocatePoolWithTag(PagedPool, sizeof(DISKLABEL), FFS_POOL_TAG);
-
+
FFSReadDisk(Vcb, (LABELSECTOR * SECTOR_SIZE + LABELOFFSET), sizeof(DISKLABEL), (PVOID)Disklabel, FALSE);
if (Disklabel->d_magic == DISKMAGIC)
}
FS_VERSION = 1;
-
+
if (i == (int)Vcb->PartitionNumber)
{
Vcb->ffs_super_block = FFSSb;
VcbResourceAcquired = TRUE;
- Status = FFSLockVcb(Vcb, IrpSp->FileObject);
+ Status = FFSLockVcb(Vcb, IrpSp->FileObject);
}
_SEH2_FINALLY
VolumeDeviceObject->StackSize = (CCHAR)(TargetDeviceObject->StackSize + 1);
- if (TargetDeviceObject->AlignmentRequirement >
+ if (TargetDeviceObject->AlignmentRequirement >
VolumeDeviceObject->AlignmentRequirement)
{
- VolumeDeviceObject->AlignmentRequirement =
+ VolumeDeviceObject->AlignmentRequirement =
TargetDeviceObject->AlignmentRequirement;
}
Vcb->BlockSize = FFSSb->fs_bsize;
Vcb->SectorBits = FFSLog2(SECTOR_SIZE);
- Status = FFSInitializeVcb(IrpContext, Vcb, FFSSb, TargetDeviceObject,
+ Status = FFSInitializeVcb(IrpContext, Vcb, FFSSb, TargetDeviceObject,
VolumeDeviceObject, IoStackLocation->Parameters.MountVolume.Vpb);
if (NT_SUCCESS(Status))
_SEH2_LEAVE;
}
- /*
+ /*
if (!FlagOn(Vcb->Flags, VCB_VOLUME_LOCKED))
{
FFSPrint((DBG_ERROR, "FFSDismount: Volume is not locked.\n"));
#define TAG_VPB ' bpV'
- NewVpb = ExAllocatePoolWithTag(NonPagedPoolMustSucceed,
+ NewVpb = ExAllocatePoolWithTag(NonPagedPoolMustSucceed,
sizeof(VPB), TAG_VPB);
NewVpb->Type = IO_TYPE_VPB;
!IsFlagOn(Fcb->Vcb->Flags, VCB_WRITE_PROTECTED))
{
- FFSPrint((DBG_INFO, "FFSPurgeFile: CcFlushCache on %s.\n",
+ FFSPrint((DBG_INFO, "FFSPurgeFile: CcFlushCache on %s.\n",
Fcb->AnsiFileName.Buffer));
ExAcquireSharedStarveExclusive(&Fcb->PagingIoResource, TRUE);
if (Fcb->SectionObject.ImageSectionObject)
{
- FFSPrint((DBG_INFO, "FFSPurgeFile: MmFlushImageSection on %s.\n",
+ FFSPrint((DBG_INFO, "FFSPurgeFile: MmFlushImageSection on %s.\n",
Fcb->AnsiFileName.Buffer));
MmFlushImageSection(&Fcb->SectionObject, MmFlushForWrite);