Home
last modified time | relevance | path

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

/openbsd/sbin/fsck_msdos/
H A Dfat.c57 if (*next < CLUST_FIRST in checkclnum()
150 for (cl = CLUST_FIRST; cl < boot->NumClusters;) { in readfat()
281 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) in comparefat()
313 for (p = head; p >= CLUST_FIRST && p < boot->NumClusters; in tryclear()
337 for (head = CLUST_FIRST; head < boot->NumClusters; head++) { in checkfat()
346 p >= CLUST_FIRST && p < boot->NumClusters && in checkfat()
362 for (head = CLUST_FIRST; head < boot->NumClusters; head++) { in checkfat()
384 if (n < CLUST_FIRST || n >= boot->NumClusters) { in checkfat()
405 p >= CLUST_FIRST && p < boot->NumClusters; in checkfat()
463 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) { in writefat()
[all …]
H A Ddir.c227 if (boot->RootCl < CLUST_FIRST || boot->RootCl >= boot->NumClusters) { in resetDosDirSection()
290 while (startcl >= CLUST_FIRST && startcl < boot->NumClusters) { in delete()
367 if (dir->head < CLUST_FIRST || dir->head >= boot->NumClusters) in checksize()
427 if (dir->parent && (cl < CLUST_FIRST || cl >= boot->NumClusters)) { in readDosDirSection()
681 } else if (dirent.head < CLUST_FIRST in readDosDirSection()
690 else if (dirent.head < CLUST_FIRST in readDosDirSection()
725 if (dirent.head >= CLUST_FIRST && dirent.head < boot->NumClusters) in readDosDirSection()
832 } while ((cl = fat[cl].next) >= CLUST_FIRST && cl < boot->NumClusters); in readDosDirSection()
932 if (lfcl < CLUST_FIRST || lfcl >= boot->NumClusters) { in reconnect()
H A Ddosfs.h91 #define CLUST_FIRST 2 /* 2 is the minimum valid cluster number */ macro
H A Dboot.c243 - CLUST_FIRST * boot->SecPerClust; in readboot()
/openbsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_fat.c241 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) { in pcbmap()
243 cn, (u_long)CLUST_FIRST, pmp->pm_maxcluster)); in pcbmap()
560 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()
636 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
858 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
929 for (cn = CLUST_FIRST; cn <= pmp->pm_maxcluster; cn++) { in fillinusemap()
H A Dfat.h59 #define CLUST_FIRST 2 /* first legal cluster number */ macro
H A Dmsdosfsmount.h199 (de_cn2bn((pmp), (cn)-CLUST_FIRST) + (pmp)->pm_firstcluster)
H A Dmsdosfs_vfsops.c213 <= ((CLUST_RSRVD - CLUST_FIRST) & FAT12_MASK)) { in msdosfs_mount()
/openbsd/sys/msdosfs/
H A Dfat.h57 #define CLUST_FIRST 2 /* first legal cluster number */ macro
H A Dmsdosfs_fat.c504 if (cn < CLUST_FIRST || cn > pmp->pm_maxcluster) in fatentry()
585 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
820 while (cluster >= CLUST_FIRST && cluster <= pmp->pm_maxcluster) { in freeclusterchain()
892 for (cn = CLUST_FIRST; cn <= pmp->pm_maxcluster; cn++) { in fillinusemap()
H A Dmsdosfsmount.h179 (de_cn2bn((pmp), (cn)-CLUST_FIRST) + (pmp)->pm_firstcluster)
H A Dmsdosfs_vfsops.c378 <= ((CLUST_RSRVD - CLUST_FIRST) & FAT12_MASK)) { in msdosfs_mountfs()