Home
last modified time | relevance | path

Searched refs:CLUST_FIRST (Results 1 – 10 of 10) sorted by relevance

/freebsd-13.1/sbin/fsck_msdosfs/
H A Ddir.c318 off = (startcl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in delete()
376 if ((endcl == curcl) || (startcl < CLUST_FIRST)) in removede()
485 off = (cl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in check_subdirectory()
597 off = (cl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in readDosDirSection()
1115 if (lfcl < CLUST_FIRST || lfcl >= boot->NumClusters) { in reconnect()
1121 lfoff = (lfcl - CLUST_FIRST) * boot->ClusterSize in reconnect()
H A Ddosfs.h87 #define CLUST_FIRST 2 /* 2 is the minimum valid cluster number */ macro
H A Dboot.c289 if (boot->bpbRootClust < CLUST_FIRST || in readboot()
328 boot->NumClusters += CLUST_FIRST; in readboot()
H A Dfat.c561 return (cl >= CLUST_FIRST && cl < boot->NumClusters); in valid_cl()
966 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) { in readfat()
1264 for (head = CLUST_FIRST; in checklost()
1316 for (head = CLUST_FIRST; head < boot->NumClusters; head++) in checklost()
/freebsd-13.1/sys/fs/msdosfs/
H A Dfat.h61 #define CLUST_FIRST 2 /* first legal cluster number */ macro
H A Dmsdosfs_fat.c502 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()
583 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
711 pmp->pm_nxtfree = CLUST_FIRST; in chainalloc()
837 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
H A Dmsdosfs_vfsops.c617 if (pmp->pm_maxcluster <= ((CLUST_RSRVD - CLUST_FIRST) & in mountmsdosfs()
693 pmp->pm_nxtfree = CLUST_FIRST; in mountmsdosfs()
707 if (pmp->pm_nxtfree < CLUST_FIRST) in mountmsdosfs()
708 pmp->pm_nxtfree = CLUST_FIRST; in mountmsdosfs()
H A Dmsdosfsmount.h208 (de_cn2bn((pmp), (cn)-CLUST_FIRST) + (pmp)->pm_firstcluster)
/freebsd-13.1/usr.sbin/makefs/msdos/
H A Dmsdosfs_fat.c489 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()
571 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
696 pmp->pm_nxtfree = CLUST_FIRST; in chainalloc()
817 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
H A Dmsdosfs_vfsops.c210 <= ((CLUST_RSRVD - CLUST_FIRST) & FAT12_MASK)) { in msdosfs_mount()