Searched refs:fat (Results 1 - 17 of 17) sorted by relevance

/freebsd-11.0-release/sbin/fsck_msdosfs/
H A Dfat.c29 __RCSID("$NetBSD: fat.c,v 1.18 2006/06/05 16:51:18 christos Exp $");
31 "$FreeBSD: releng/11.0/sbin/fsck_msdosfs/fat.c 268632 2014-07-14 20:58:02Z pfg $";
133 checkclnum(struct bootblock *boot, u_int fat, cl_t cl, cl_t *next) argument
148 cl, fat,
202 struct fatEntry *fat; local
213 fat = malloc(len = boot->NumClusters * sizeof(struct fatEntry));
214 if (fat == NULL) {
219 (void)memset(fat, 0, len);
284 fat[cl].next = p[0] + (p[1] << 8)
286 fat[c
419 clearchain(struct bootblock *boot, struct fatEntry *fat, cl_t head) argument
433 tryclear(struct bootblock *boot, struct fatEntry *fat, cl_t head, cl_t *truncp) argument
457 checkfat(struct bootblock *boot, struct fatEntry *fat) argument
558 writefat(int fs, struct bootblock *boot, struct fatEntry *fat, int correct_fat) argument
668 checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat) argument
[all...]
H A DMakefile10 SRCS= main.c check.c boot.c fat.c dir.c fsutil.c
H A Dcheck.c48 struct fatEntry *fat = NULL; local
95 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat);
110 mod |= comparefat(&boot, fat, currentFat, i);
119 mod |= checkfat(&boot, fat);
127 mod |= resetDosDirSection(&boot, fat);
133 mod |= handleDirTree(dosfs, &boot, fat);
140 mod |= checklost(dosfs, &boot, fat);
147 mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT);
171 mod |= writefat(dosfs, &boot, fat, 1);
187 free(fat);
[all...]
H A Ddir.c216 resetDosDirSection(struct bootblock *boot, struct fatEntry *fat) argument
252 cl = fat[boot->bpbRootClust].next;
255 || fat[boot->bpbRootClust].head != boot->bpbRootClust) {
266 fat[boot->bpbRootClust].next = CLUST_FREE;
272 fat[boot->bpbRootClust].flags |= FAT_USED;
313 delete(int f, struct bootblock *boot, struct fatEntry *fat, cl_t startcl, argument
346 startcl = fat[startcl].next;
353 removede(int f, struct bootblock *boot, struct fatEntry *fat, u_char *start, argument
370 if (delete(f, boot, fat,
390 checksize(struct bootblock *boot, struct fatEntry *fat, u_cha argument
444 readDosDirSection(int f, struct bootblock *boot, struct fatEntry *fat, struct dosDirEntry *dir) argument
884 handleDirTree(int dosfs, struct bootblock *boot, struct fatEntry *fat) argument
925 reconnect(int dosfs, struct bootblock *boot, struct fatEntry *fat, cl_t head) argument
[all...]
/freebsd-11.0-release/sys/fs/fuse/
H A Dfuse_internal.h204 struct fuse_attr *fat,
208 "node #%ju, mode 0%o\n", (uintmax_t)fat->ino, fat->mode);
213 vap->va_fileid = fat->ino; /* XXX cast from 64 bits to 32 */
214 vap->va_mode = fat->mode & ~S_IFMT;
215 vap->va_nlink = fat->nlink;
216 vap->va_uid = fat->uid;
217 vap->va_gid = fat->gid;
218 vap->va_rdev = fat->rdev;
219 vap->va_size = fat
203 fuse_internal_attr_fat2vat(struct mount *mp, struct fuse_attr *fat, struct vattr *vap) argument
[all...]
/freebsd-11.0-release/sys/boot/efi/boot1/
H A Dgenerate-fat.sh12 # $FreeBSD: releng/11.0/sys/boot/efi/boot1/generate-fat.sh 297871 2016-04-12 20:52:28Z emaste $
34 OUTPUT_FILE=fat-${ARCH}.tmpl
70 echo '# This file autogenerated by generate-fat.sh - DO NOT EDIT' > Makefile.fat
71 echo "# \$FreeBSD\$" >> Makefile.fat
72 echo "BOOT1_OFFSET=0x$BOOT1_OFFSET" >> Makefile.fat
73 echo "BOOT1_MAXSIZE=$BOOT1_MAXSIZE" >> Makefile.fat
76 echo 'FAT template boot filesystem created by generate-fat.sh' > $OUTPUT_FILE.bz2.uu
H A DMakefile100 # created by generate-fat.sh
102 .include "${.CURDIR}/Makefile.fat"
113 uudecode ${.CURDIR}/fat-${MACHINE}.tmpl.bz2.uu
114 mv fat-${MACHINE}.tmpl.bz2 ${.TARGET}.bz2
/freebsd-11.0-release/sbin/newfs_msdos/
H A Dmkfs_msdos.c75 #define mincls(fat) ((fat) == 12 ? MINCLS12 : \
76 (fat) == 16 ? MINCLS16 : \
79 #define maxcls(fat) ((fat) == 12 ? MAXCLS12 : \
80 (fat) == 16 ? MAXCLS16 : \
244 u_int fat, bss, rds, cls, dir, lsn, x, x1, x2; local
352 if (!(fat = o.fat_type)) {
354 fat = 12;
356 fat
[all...]
/freebsd-11.0-release/lib/libstand/
H A Ddosfs.c136 * fat cache metadata
140 int size; /* buffer (and fat) size in sectors */
144 static struct fatcache fat; variable in typeref:struct:fatcache
164 if (fat.buf != NULL) { /* can we reuse old buffer? */
165 if (fat.size != fs->spf) {
166 free(fat.buf); /* no, free old buffer */
167 fat.buf = NULL;
171 if (fat.buf == NULL)
172 fat.buf = malloc(secbyt(fs->spf));
174 if (fat
[all...]
/freebsd-11.0-release/lib/libprocstat/
H A Dmsdosfs.c55 #include <fs/msdosfs/fat.h>
/freebsd-11.0-release/sys/fs/msdosfs/
H A Dmsdosfs_denode.c66 #include <fs/msdosfs/fat.h>
162 fc_purge(ldep, 0); /* init the fat cache for this denode */
H A Dmsdosfs_fat.c60 #include <fs/msdosfs/fat.h>
177 * Rummage around in the fat cache, maybe we can avoid tromping
178 * through every fat entry for the file. And, keep track of how far
245 /* update last file cluster entry in the fat cache */
251 * Find the closest entry in the fat cache to the cluster we are looking
277 * Purge the fat cache in denode dep of all entries relating to file
296 * Update the fat.
297 * If mirroring the fat, update all copies, with the first copy as last.
298 * Else update only the current fat (ignoring the others).
301 * bp - addr of modified fat bloc
[all...]
H A Dmsdosfs_lookup.c61 #include <fs/msdosfs/fat.h>
H A Dmsdosfs_vfsops.c75 #include <fs/msdosfs/fat.h>
623 * sure that one fat entry will not be split across
736 * If they want fat updates to be synchronous then let them suffer
738 * the fat being correct just about all the time. I suppose this
H A Dmsdosfs_vnops.c74 #include <fs/msdosfs/fat.h>
729 * for the fat table. (see msdosfs_strategy)
/freebsd-11.0-release/sys/boot/i386/boot2/
H A Dboot1.S72 .word 0 # sectors/fat
/freebsd-11.0-release/sys/dev/cxgbe/common/
H A Dt4_hw.c3695 int fat; local
3698 fat = t4_handle_intr_status(adapter,
3707 fat = t4_handle_intr_status(adapter, A_PCIE_INT_CAUSE,
3709 if (fat)
3861 int fat; local
3866 fat = t4_handle_intr_status(adapter, A_CIM_HOST_INT_CAUSE,
3870 if (fat)
4051 int fat; local
4053 fat = t4_handle_intr_status(adapter, A_MPS_RX_PERR_INT_CAUSE,
4070 if (fat)
[all...]

Completed in 119 milliseconds