HomeSort by relevance Sort by last modified time
    Searched refs:fat (Results 1 - 25 of 50) sorted by null

1 2

  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
package-info.java 20 * Contains the classes implementing the FAT(12/16/32) file system.
22 package de.waldheinz.fs.fat;
ClusterChain.java 19 package de.waldheinz.fs.fat;
28 * A chain of clusters as stored in a {@link Fat}.
33 protected final Fat fat; field in class:ClusterChain
43 * @param fat the {@code Fat} that holds the new chain
46 public ClusterChain(Fat fat, boolean readOnly) {
47 this(fat, 0, readOnly);
50 public ClusterChain(Fat fat, long startCluster, boolean readOnly)
    [all...]
FatFileSystem.java 20 package de.waldheinz.fs.fat;
29 * Implements the {@code FileSystem} interface for the FAT family of file
33 * For creating (aka "formatting") FAT file systems please refer to the
42 private final Fat fat; field in class:FatFileSystem
76 this.fat = Fat.read(bs, 0);
80 final Fat tmpFat = Fat.read(bs, i);
81 if (!fat.equals(tmpFat))
    [all...]
DirectoryFullException.java 19 package de.waldheinz.fs.fat;
ClusterChainDirectory.java 20 package de.waldheinz.fs.fat;
34 * According to the FAT specification, this is the maximum size a FAT
66 public static ClusterChainDirectory createRoot(Fat fat) throws IOException {
68 if (fat.getFatType() != FatType.FAT32) {
73 final Fat32BootSector bs = (Fat32BootSector) fat.getBootSector();
74 final ClusterChain cc = new ClusterChain(fat, false);
FatLfnDirectory.java 20 package de.waldheinz.fs.fat;
35 * The {@link FsDirectory} implementation for FAT file systems. This
36 * implementation aims to fully comply to the FAT specification, including
51 * directory. The FAT specification says that file names must be unique
56 private final Fat fat; field in class:FatLfnDirectory
65 FatLfnDirectory(AbstractDirectory dir, Fat fat, boolean readOnly)
70 if ((dir == null) || (fat == null)) throw new NullPointerException();
72 this.fat = fat
    [all...]
FatFile.java 19 package de.waldheinz.fs.fat;
30 * FAT file system.
46 static FatFile get(Fat fat, FatDirectoryEntry entry)
53 fat, entry.getStartCluster(), entry.isReadonlyFlag());
SuperFloppyFormatter.java 19 package de.waldheinz.fs.fat;
27 * Allows to create FAT file systems on {@link BlockDevice}s which follow the
30 * a single FAT file system.
236 final Fat fat = Fat.create(bs, 0); local
240 rootDirStore = ClusterChainDirectory.createRoot(fat);
241 fsi.setFreeClusterCount(fat.getFreeClusterCount());
242 fsi.setLastAllocatedCluster(fat.getLastAllocatedCluster());
249 new FatLfnDirectory(rootDirStore, fat, false)
    [all...]
FatUtils.java 20 package de.waldheinz.fs.fat;
34 * Gets the offset (in bytes) of the fat with the given index
DosUtils.java 20 package de.waldheinz.fs.fat;
26 * and the format known from DOS filesystems (e.g. fat)
Dummy83BufferGenerator.java 19 package de.waldheinz.fs.fat;
Fat16RootDirectory.java 19 package de.waldheinz.fs.fat;
LittleEndian.java 20 package de.waldheinz.fs.fat;
Sector.java 19 package de.waldheinz.fs.fat;
Fat16BootSector.java 19 package de.waldheinz.fs.fat;
57 * The offset to the sectors per FAT value.
75 * Offset to the FAT file system type string.
136 * Gets the number of sectors/fat for FAT 12/16.
146 * Sets the number of sectors/fat
148 * @param v the new number of sectors per fat
Fat32BootSector.java 19 package de.waldheinz.fs.fat;
38 * The offset to the 4 bytes specifying the sectors per FAT value.
71 * Returns the first cluster in the FAT that contains the root directory.
FsInfoSector.java 19 package de.waldheinz.fs.fat;
102 * @see Fat#getFreeClusterCount()
115 * @see Fat#getFreeClusterCount()
122 * Sets the last allocated cluster that was used in the {@link Fat}.
124 * @param value the FAT's last allocated cluster number
125 * @see Fat#getLastAllocatedCluster()
134 * Returns the last allocated cluster number of the {@link Fat} of the
138 * @see Fat#getLastAllocatedCluster()
160 setLastAllocatedCluster(Fat.FIRST_CLUSTER);
  /external/fsck_msdos/
fat.c 36 __RCSID("$NetBSD: fat.c,v 1.12 2000/10/10 20:24:52 is Exp $");
38 "$FreeBSD: src/sbin/fsck_msdosfs/fat.c,v 1.9 2008/01/31 13:22:13 yar Exp $";
56 * The first 2 FAT entries contain pseudo-cluster numbers with the following
88 perror("No space for FAT");
93 perror("Unable to read FAT");
98 perror("Unable to read FAT");
103 * If we don't understand the FAT, then the file system must be
138 checkclnum(struct bootblock *boot, int fat, cl_t cl, cl_t *next)
152 pwarn("Cluster %u in FAT %d continues with %s cluster number %u\n",
153 cl, fat,
209 struct fatEntry *fat; local
    [all...]
Android.mk 5 LOCAL_SRC_FILES := boot.c check.c dir.c fat.c main.c
check.c 52 * If the FAT > this size then skip comparing, lest we risk
63 struct fatEntry *fat = NULL; local
108 printf("** Phase 1 - Read FAT (compare skipped)\n");
112 printf("** Phase 1 - Read FAT\n");
115 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat);
133 mod |= comparefat(&boot, fat, currentFat, i);
136 printf("Fatal error during FAT comparison\n");
144 mod |= checkfat(&boot, fat);
146 printf("Fatal error during FAT check\n");
154 mod |= resetDosDirSection(&boot, fat);
    [all...]
dir.c 224 resetDosDirSection(struct bootblock *boot, struct fatEntry *fat)
246 cl = fat[boot->RootCl].next;
249 || fat[boot->RootCl].head != boot->RootCl) {
260 fat[boot->RootCl].next = CLUST_FREE;
266 fat[boot->RootCl].flags |= FAT_USED;
307 delete(int f, struct bootblock *boot, struct fatEntry *fat, cl_t startcl,
348 startcl = fat[startcl].next;
355 removede(int f, struct bootblock *boot, struct fatEntry *fat, u_char *start,
371 if (delete(f, boot, fat,
390 checksize(struct bootblock *boot, struct fatEntry *fat, u_char *p
    [all...]
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/
FileSystemFactory.java 21 import de.waldheinz.fs.fat.FatFileSystem;
  /prebuilts/devtools/tools/lib/
fat32lib.jar 
  /system/core/toolbox/
newfs_msdos.c 72 #define RESFTE 2 /* reserved FAT entries */
80 #define mincls(fat) ((fat) == 12 ? MINCLS12 : \
81 (fat) == 16 ? MINCLS16 : \
84 #define maxcls(fat) ((fat) == 12 ? MAXCLS12 : \
85 (fat) == 16 ? MAXCLS16 : \
119 u_int8_t spf[2]; /* sectors per FAT */
127 u_int8_t bspf[4]; /* big sectors per FAT */
128 u_int8_t xflg[2]; /* FAT control flags *
263 u_int fat, bss, rds, cls, dir, lsn, x, x1, x2; local
    [all...]
  /sdk/emulator/mksdcard/src/source/
mksdcard.c 62 static Byte s_fat_head [ BYTES_PER_SECTOR ]; /* first FAT sector */
130 POKES( boot + 0xe, RESERVED_SECTORS ); /* reserved sectors before first FAT */
135 POKES( boot + 0x16, 0 ); /* Sectors per FAT for FAT12/16, 0 for FAT32 */
142 POKEW( boot + 0x24, sectors_per_fat ); /* Sectors per FAT */
143 POKES( boot + 0x28, 0 ); /* FAT flags */
152 memcpy( boot + 0x52, "FAT32 ", 8 ); /* FAT system type, padded with 0x20 */
168 fat_init( Bytes fat )
170 POKEW( fat, 0x0ffffff8 ); /* reserve cluster 1, media id in low byte */
171 POKEW( fat + 4, 0x0fffffff ); /* reserve cluster 2 */
172 POKEW( fat + 8, 0x0fffffff ); /* end of clust chain for root dir *
    [all...]

Completed in 151 milliseconds

1 2