Package org.jnode.driver.bus.ide

Examples of org.jnode.driver.bus.ide.IDEDeviceFactory


            // Read the bootsector twice, since the first read seems to fail.
            // todo: THIS IS A WORKAROUND
            final byte[] bs = new byte[SECTOR_SIZE];
            read(0, ByteBuffer.wrap(bs));

            IDEDeviceFactory factory;
            try {
                factory = IDEDriverUtils.getIDEDeviceFactory();
            } catch (NamingException ex) {
                throw new DriverException(ex);
            }
            log.debug("Creating partition table object on " + dev.getId());
            this.pt = factory.createIBMPartitionTable(bs, dev);
            log.debug("Created partition table object");

            int partIndex = 0;
            int i = 0;
            for (IBMPartitionTableEntry pte : pt) {
View Full Code Here

TOP

Related Classes of org.jnode.driver.bus.ide.IDEDeviceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.