Home
last modified time | relevance | path

Searched refs:BytesPerCluster (Results 1 – 23 of 23) sorted by relevance

/reactos/drivers/filesystems/vfatfs/
H A Drw.c136 ULONG BytesPerCluster; in VfatReadFileData() local
144 ASSERT(DeviceExt->FatInfo.BytesPerCluster); in VfatReadFileData()
156 BytesPerCluster = DeviceExt->FatInfo.BytesPerCluster; in VfatReadFileData()
272 … BytesDone = min (Length, BytesPerCluster - (ReadOffset.u.LowPart % BytesPerCluster)); in VfatReadFileData()
280 BytesDone += BytesPerCluster; in VfatReadFileData()
295 …b->LastOffset = ROUND_DOWN(ReadOffset.u.LowPart, BytesPerCluster) + (ClusterCount - 1) * BytesPerC… in VfatReadFileData()
347 ULONG BytesPerCluster; in VfatWriteFileData() local
357 ASSERT(DeviceExt->FatInfo.BytesPerCluster); in VfatWriteFileData()
362 BytesPerCluster = DeviceExt->FatInfo.BytesPerCluster; in VfatWriteFileData()
487 … BytesDone = min (Length, BytesPerCluster - (WriteOffset.u.LowPart % BytesPerCluster)); in VfatWriteFileData()
[all …]
H A Ddirwr.c285 size = DeviceExt->FatInfo.BytesPerCluster / SizeDirEntry; in vfatFindDirSpace()
304 FileOffset.u.LowPart += DeviceExt->FatInfo.BytesPerCluster; in vfatFindDirSpace()
345 … AllocationSize.QuadPart = pDirFcb->RFCB.FileSize.u.LowPart + DeviceExt->FatInfo.BytesPerCluster; in vfatFindDirSpace()
354 DeviceExt->FatInfo.BytesPerCluster); in vfatFindDirSpace()
366 memset(pFatEntry, 0xff, DeviceExt->FatInfo.BytesPerCluster); in vfatFindDirSpace()
368 RtlZeroMemory(pFatEntry, DeviceExt->FatInfo.BytesPerCluster); in vfatFindDirSpace()
702 i = DeviceExt->FatInfo.BytesPerCluster / sizeof(FAT_DIR_ENTRY); in FATAddEntry()
728 size = DeviceExt->FatInfo.BytesPerCluster - in FATAddEntry()
729 (DirContext.StartIndex * sizeof(FAT_DIR_ENTRY)) % DeviceExt->FatInfo.BytesPerCluster; in FATAddEntry()
794 …CcPinRead((*Fcb)->FileObject, &FileOffset, DeviceExt->FatInfo.BytesPerCluster, PIN_WAIT, &Context,… in FATAddEntry()
[all …]
H A Ddir.c205 DeviceExt->FatInfo.BytesPerCluster); in VfatGetFileDirectoryInformation()
239 DeviceExt->FatInfo.BytesPerCluster); in VfatGetFileDirectoryInformation()
313 DeviceExt->FatInfo.BytesPerCluster); in VfatGetFileFullDirectoryInformation()
337 DeviceExt->FatInfo.BytesPerCluster); in VfatGetFileFullDirectoryInformation()
420 DeviceExt->FatInfo.BytesPerCluster); in VfatGetFileBothInformation()
462 …onSize.u.LowPart = ROUND_UP(DirContext->DirEntry.Fat.FileSize, DeviceExt->FatInfo.BytesPerCluster); in VfatGetFileBothInformation()
H A Dfsctl.c21 #define CACHEPAGESIZE(pDeviceExt) ((pDeviceExt)->FatInfo.BytesPerCluster > PAGE_SIZE ? \
22 (pDeviceExt)->FatInfo.BytesPerCluster : PAGE_SIZE)
197 FatInfo.BytesPerCluster = FatInfo.BytesPerSector * FatInfo.SectorsPerCluster; in VfatHasFileSystem()
295 FatInfo.BytesPerCluster = BootFatX->SectorsPerCluster * DiskGeometry.BytesPerSector; in VfatHasFileSystem()
974 if (Vcn.QuadPart >= Fcb->RFCB.AllocationSize.QuadPart / DeviceExt->FatInfo.BytesPerCluster) in VfatGetRetrievalPointers()
982 Vcn.u.LowPart * DeviceExt->FatInfo.BytesPerCluster, in VfatGetRetrievalPointers()
H A Dfcb.c464 Size += Vcb->FatInfo.BytesPerCluster; in vfatInitFCBFromDirEntry()
488 Fcb->RFCB.AllocationSize.QuadPart = ROUND_UP_64(Size, Vcb->FatInfo.BytesPerCluster); in vfatInitFCBFromDirEntry()
680 Size += pVCB->FatInfo.BytesPerCluster; in vfatMakeRootFCB()
H A Dfinfo.c358 ASSERT(DeviceExt->FatInfo.BytesPerCluster != 0); in VfatSetDispositionInformation()
1027 …(LONGLONG)vfatDirEntryGetFirstCluster(DeviceExt, &Fcb->entry) * DeviceExt->FatInfo.BytesPerCluster; in VfatGetInternalInformation()
1221 ULONG ClusterSize = DeviceExt->FatInfo.BytesPerCluster; in VfatSetAllocationSizeInformation()
H A Dfat.c18 #define CACHEPAGESIZE(pDeviceExt) ((pDeviceExt)->FatInfo.BytesPerCluster > PAGE_SIZE ? \
19 (pDeviceExt)->FatInfo.BytesPerCluster : PAGE_SIZE)
H A Dvfat.h262 ULONG BytesPerCluster; member
/reactos/drivers/filesystems/fastfat/
H A Deasup.c419 ULONG BytesPerCluster; in _Requires_lock_held_() local
540 BytesPerCluster ); in _Requires_lock_held_()
1042 ULONG BytesPerCluster; in _Requires_lock_held_() local
1466 BytesPerCluster, in FatReadEaSet()
1495 && CbList > BytesPerCluster ) { in FatReadEaSet()
1502 & ~(BytesPerCluster - 1); in FatReadEaSet()
1718 BytesPerCluster, in _Requires_lock_held_()
1755 if (EaSetLength > BytesPerCluster) { in _Requires_lock_held_()
2372 & ~(BytesPerCluster - 1); in _Requires_lock_held_()
2584 EaSetVbo += BytesPerCluster; in _Requires_lock_held_()
[all …]
H A Dallocsup.c673 ULONG BytesPerCluster; in _Requires_lock_held_() local
760 CurrentVbo -= (BytesPerCluster - 1); in _Requires_lock_held_()
761 CurrentLbo -= (BytesPerCluster - 1); in _Requires_lock_held_()
821 (CurrentVbo % BytesPerCluster == 0) ); in _Requires_lock_held_()
839 CurrentVbo += BytesPerCluster; in _Requires_lock_held_()
1466 ULONG BytesPerCluster; in _Requires_lock_held_() local
1809 ULONG BytesPerCluster; in _Requires_lock_held_() local
1850 BytesPerCluster = 1 << LogOfBytesPerCluster; in _Requires_lock_held_()
1852 *ByteCount = (*ByteCount + (BytesPerCluster - 1)) in _Requires_lock_held_()
1853 & ~(BytesPerCluster - 1); in _Requires_lock_held_()
[all …]
H A Dwrite.c1876 ULONG BytesPerCluster; local
1915 BytesPerCluster = 1 << Vcb->AllocationSupport.LogOfBytesPerCluster;
1924 ClusterAlignedFileSize = ((FileSize) + (BytesPerCluster - 1)) &
1925 ~(BytesPerCluster - 1);
1942 (BytesPerCluster >> 5)) /
1960 if (TargetAllocation > ~BytesPerCluster + 1) {
1962 TargetAllocation = ~BytesPerCluster + 1;
1973 ApproximateClusterCount = (AddedAllocation / BytesPerCluster);
H A Dea.c851 ULONG BytesPerCluster; in FatCommonSetEa()
980 BytesPerCluster = 1 << Vcb->AllocationSupport.LogOfBytesPerCluster; in FatCommonSetEa()
984 + BytesPerCluster - 1) in FatCommonSetEa()
985 & ~(BytesPerCluster - 1); in FatCommonSetEa()
1096 BytesPerCluster ); in FatCommonSetEa()
H A Dfatprocs.h969 IN ULONG BytesPerCluster
/reactos/modules/rosapps/applications/rosinternals/ntfsinfo/
H A Dntfsinfo.c133 VolumeSize = VolumeInfo.TotalClusters.QuadPart * VolumeInfo.BytesPerCluster; in _tmain()
138 …I64u%% of drive)\n"), (VolumeInfo.FreeClusters.QuadPart * VolumeInfo.BytesPerCluster) >> 20, (Volu… in _tmain()
142 _tprintf(_T("Bytes per cluster\t: %lu\n"), VolumeInfo.BytesPerCluster); in _tmain()
151 …size\t\t: %I64u MB (%I64u%% of drive)\n"), (MftClusters * VolumeInfo.BytesPerCluster) >> 20, (MftC… in _tmain()
/reactos/drivers/filesystems/ntfs/
H A Dmft.c763 ULONG BytesPerCluster = Vcb->NtfsInfo.BytesPerCluster; in SetNonResidentAttributeDataLength() local
764 ULONGLONG AllocationSize = ROUND_UP(DataSize->QuadPart, BytesPerCluster); in SetNonResidentAttributeDataLength()
773 ULONG ClustersNeeded = (AllocationSize / BytesPerCluster) - ExistingClusters; in SetNonResidentAttributeDataLength()
1168 CurrentOffset += DataRunLength * Vcb->NtfsInfo.BytesPerCluster; in ReadAttribute()
1199 CurrentOffset += DataRunLength * Vcb->NtfsInfo.BytesPerCluster; in ReadAttribute()
1241 CurrentOffset += DataRunLength * Vcb->NtfsInfo.BytesPerCluster; in ReadAttribute()
1496 CurrentOffset += DataRunLength * Vcb->NtfsInfo.BytesPerCluster; in WriteAttribute()
1538 CurrentOffset += DataRunLength * Vcb->NtfsInfo.BytesPerCluster; in WriteAttribute()
1567 DataRunStartLCN * Vcb->NtfsInfo.BytesPerCluster, in WriteAttribute()
1600 CurrentOffset += DataRunLength * Vcb->NtfsInfo.BytesPerCluster; in WriteAttribute()
[all …]
H A Dfsctl.c249 NtfsInfo->BytesPerCluster = BootSector->BPB.BytesPerSector * BootSector->BPB.SectorsPerCluster; in NtfsGetVolumeData()
257 … NtfsInfo->BytesPerFileRecord = BootSector->EBPB.ClustersPerMftRecord * NtfsInfo->BytesPerCluster; in NtfsGetVolumeData()
261 …tfsInfo->BytesPerIndexRecord = BootSector->EBPB.ClustersPerIndexRecord * NtfsInfo->BytesPerCluster; in NtfsGetVolumeData()
619 DataBuffer->BytesPerCluster = DeviceExt->NtfsInfo.BytesPerCluster; in GetNfsVolumeData()
621 …erFileRecordSegment = DeviceExt->NtfsInfo.BytesPerFileRecord / DeviceExt->NtfsInfo.BytesPerCluster; in GetNfsVolumeData()
H A Dbtree.c266 *NewVCN = NextNodeNumber * (IndexBufferSize / DeviceExt->NtfsInfo.BytesPerCluster); in AllocateIndexNode()
942 if (NewIndexRoot->SizeOfEntry < DeviceExt->NtfsInfo.BytesPerCluster) in CreateIndexRootFromBTree()
945 …ndexRoot->ClustersPerIndexRecord = NewIndexRoot->SizeOfEntry / DeviceExt->NtfsInfo.BytesPerCluster; in CreateIndexRootFromBTree()
1634 if (IndexBufferSize < DeviceExt->NtfsInfo.BytesPerCluster) in GetAllocationOffsetFromVCN()
1637 return Vcn * DeviceExt->NtfsInfo.BytesPerCluster; in GetAllocationOffsetFromVCN()
H A Dattrib.c647 …ConvertLargeMCBToDataRuns(&AttrContext->DataRunsMCB, RunBuffer, Vcb->NtfsInfo.BytesPerCluster, &Ru… in AddRun()
1176 …ConvertLargeMCBToDataRuns(&AttrContext->DataRunsMCB, RunBuffer, Vcb->NtfsInfo.BytesPerCluster, &Ru… in FreeClusters()
H A Dntfs.h69 ULONG BytesPerCluster; member
/reactos/boot/freeldr/freeldr/lib/fs/
H A Dfat.c1202 UINT32 NextClusterNumber, BytesPerCluster; in FatReadFile() local
1257 BytesPerCluster = Volume->SectorsPerCluster * Volume->BytesPerSector; in FatReadFile()
1263 if (FatFileInfo->FilePointer % BytesPerCluster) in FatReadFile()
1268 UINT32 OffsetInCluster = FatFileInfo->FilePointer % BytesPerCluster; in FatReadFile()
1269 UINT32 LengthInCluster = min(BytesToRead, BytesPerCluster - OffsetInCluster); in FatReadFile()
1271 ASSERT(LengthInCluster <= BytesPerCluster && LengthInCluster > 0); in FatReadFile()
1289 if ((LengthInCluster + OffsetInCluster) == BytesPerCluster) in FatReadFile()
1309 UINT32 NumberOfClusters = BytesToRead / BytesPerCluster; in FatReadFile()
1315 UINT32 BytesReadHere = NumberOfClusters * BytesPerCluster; in FatReadFile()
/reactos/base/applications/cmdutils/fsutil/
H A Dfsinfo.c213 _ftprintf(stdout, _T("Bytes per cluster:\t\t\t%d\n"), Data.BytesPerCluster); in NtfsInfoMain()
/reactos/sdk/include/psdk/
H A Dwinioctl.h806 DWORD BytesPerCluster; member
/reactos/sdk/include/xdk/
H A Diotypes.h6246 ULONG BytesPerCluster; member