70717273747576
* (non-Javadoc) * * @see org.jnode.driver.bus.ide.IDEDeviceFactory#createIBMPartitionTable(byte[], org.jnode.driver.Device) */ public IBMPartitionTable createIBMPartitionTable(byte[] bs, Device dev) { return new IBMPartitionTable(new IBMPartitionTableType(), bs, dev); }
126127128129130131132
if (!MBR.containsPartitionTable()) throw new IOException("This device doesn't contain a valid partition table."); } public IBMPartitionTable getPartitionTable() { return new IBMPartitionTable(new IBMPartitionTableType(), MBR.array(), current); }
71727374757677
throws DriverException, IOException, NameNotFoundException { // Read the bootsector final byte[] bs = new byte[IDEConstants.SECTOR_SIZE]; read(0, ByteBuffer.wrap(bs)); return new IBMPartitionTable(new IBMPartitionTableType(), bs, this); }