Home
last modified time | relevance | path

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

/freebsd/sbin/fsck_msdosfs/
H A Ddir.c316 off = (startcl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in delete()
374 if ((endcl == curcl) || (startcl < CLUST_FIRST)) in removede()
496 off = (cl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in check_subdirectory()
608 off = (cl - CLUST_FIRST) * boot->bpbSecPerClust + boot->FirstCluster; in readDosDirSection()
1126 if (lfcl < CLUST_FIRST || lfcl >= boot->NumClusters) { in reconnect()
1132 lfoff = (lfcl - CLUST_FIRST) * boot->ClusterSize in reconnect()
H A Ddosfs.h86 #define CLUST_FIRST 2 /* 2 is the minimum valid cluster number */ macro
H A Dboot.c287 if (boot->bpbRootClust < CLUST_FIRST || in readboot()
326 boot->NumClusters += CLUST_FIRST; in readboot()
H A Dfat.c559 return (cl >= CLUST_FIRST && cl < boot->NumClusters); in valid_cl()
964 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) { in readfat()
1262 for (head = CLUST_FIRST; in checklost()
1314 for (head = CLUST_FIRST; head < boot->NumClusters; head++) in checklost()
/freebsd/sys/fs/msdosfs/
H A Dfat.h60 #define CLUST_FIRST 2 /* first legal cluster number */ macro
H A Dmsdosfs_fat.c507 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()
588 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
716 pmp->pm_nxtfree = CLUST_FIRST; in chainalloc()
842 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
H A Dmsdosfsmount.h208 (de_cn2bn((pmp), (cn)-CLUST_FIRST) + (pmp)->pm_firstcluster)
H A Dmsdosfs_vfsops.c785 pmp->pm_nxtfree = CLUST_FIRST; in mountmsdosfs()
799 if (pmp->pm_nxtfree < CLUST_FIRST) in mountmsdosfs()
800 pmp->pm_nxtfree = CLUST_FIRST; in mountmsdosfs()
1058 sbp->f_blocks = pmp->pm_maxcluster - CLUST_FIRST + 1; in msdosfs_statfs()
/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_fat.c486 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()
568 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
693 pmp->pm_nxtfree = CLUST_FIRST; in chainalloc()
814 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
H A Dmsdosfs_vfsops.c202 <= ((CLUST_RSRVD - CLUST_FIRST) & FAT12_MASK)) { in m_msdosfs_mount()