Searched refs:bs (Results 1 – 8 of 8) sorted by relevance
44 private final BootSector bs; field in FatFileSystem69 this.bs = BootSector.read(device); in FatFileSystem()71 if (bs.getNrFats() <= 0) throw new IOException( in FatFileSystem()74 this.filesOffset = FatUtils.getFilesOffset(bs); in FatFileSystem()75 this.fatType = bs.getFatType(); in FatFileSystem()76 this.fat = Fat.read(bs, 0); in FatFileSystem()79 for (int i=1; i < bs.getNrFats(); i++) { in FatFileSystem()80 final Fat tmpFat = Fat.read(bs, i); in FatFileSystem()88 final Fat32BootSector f32bs = (Fat32BootSector) bs; in FatFileSystem()101 Fat16RootDirectory.read((Fat16BootSector) bs,readOnly); in FatFileSystem()[all …]
45 private final BootSector bs; field in Fat61 public static Fat read(BootSector bs, int fatNr) in read() argument64 if (fatNr > bs.getNrFats()) { in read()66 "boot sector says there are only " + bs.getNrFats() + in read()70 final long fatOffset = FatUtils.getFatOffset(bs, fatNr); in read()71 final Fat result = new Fat(bs, fatOffset); in read()86 public static Fat create(BootSector bs, int fatNr) in create() argument89 if (fatNr > bs.getNrFats()) { in create()91 "boot sector says there are only " + bs.getNrFats() + in create()95 final long fatOffset = FatUtils.getFatOffset(bs, fatNr); in create()[all …]
41 public static long getFatOffset(BootSector bs, int fatNr) { in getFatOffset() argument42 long sectSize = bs.getBytesPerSector(); in getFatOffset()43 long sectsPerFat = bs.getSectorsPerFat(); in getFatOffset()44 long resSects = bs.getNrReservedSectors(); in getFatOffset()61 public static long getRootDirOffset(BootSector bs) { in getRootDirOffset() argument62 long sectSize = bs.getBytesPerSector(); in getRootDirOffset()63 long sectsPerFat = bs.getSectorsPerFat(); in getRootDirOffset()64 int fats = bs.getNrFats(); in getRootDirOffset()66 long offset = getFatOffset(bs, 0); in getRootDirOffset()80 public static long getFilesOffset(BootSector bs) { in getFilesOffset() argument[all …]
167 private void initBootSector(BootSector bs) in initBootSector() argument170 bs.init(); in initBootSector()171 bs.setFileSystemTypeLabel(fatType.getLabel()); in initBootSector()172 bs.setNrReservedSectors(reservedSectors); in initBootSector()173 bs.setNrFats(fatCount); in initBootSector()174 bs.setSectorsPerCluster(sectorsPerCluster); in initBootSector()175 bs.setMediumDescriptor(MEDIUM_DESCRIPTOR_HD); in initBootSector()176 bs.setSectorsPerTrack(DEFAULT_SECTORS_PER_TRACK); in initBootSector()177 bs.setNrHeads(DEFAULT_HEADS); in initBootSector()178 bs.setOemName(oemName); in initBootSector()[all …]
34 private Fat16RootDirectory(Fat16BootSector bs, boolean readOnly) { in Fat16RootDirectory() argument35 super(bs.getRootDirEntryCount(), readOnly, true); in Fat16RootDirectory()37 if (bs.getRootDirEntryCount() <= 0) throw new IllegalArgumentException( in Fat16RootDirectory()38 "root directory size is " + bs.getRootDirEntryCount()); in Fat16RootDirectory()40 this.deviceOffset = FatUtils.getRootDirOffset(bs); in Fat16RootDirectory()41 this.device = bs.getDevice(); in Fat16RootDirectory()54 Fat16BootSector bs, boolean readOnly) throws IOException { in read() argument56 final Fat16RootDirectory result = new Fat16RootDirectory(bs, readOnly); in read()71 Fat16BootSector bs) throws IOException { in create() argument73 final Fat16RootDirectory result = new Fat16RootDirectory(bs, false); in create()
73 final Fat32BootSector bs = (Fat32BootSector) fat.getBootSector(); in createRoot() local77 bs.setRootDirFirstCluster(cc.getStartCluster()); in createRoot()
... getArgs () com.google.protobuf.ByteString bs String s Object ref public com.google.protobuf ...
META-INF/ META-INF/MANIFEST.MF META-INF/LICENSE.txt META ...