Package org.jnode.partitions.ibm

Examples of org.jnode.partitions.ibm.IBMPartitionTypes


    private void modifyPartition(PartitionHelper helper, int id, PrintWriter out)
        throws IOException {
        long start = ARG_START.getValue();
        long size = ARG_SECTORS.isSet() ? ARG_SECTORS.getValue() : ARG_BYTES.getValue();
        IBMPartitionTypes type = ARG_TYPE.getValue();

        out.println("Init " + id + " with start = " + start + ", size = " + size + ", fs = " +
            Integer.toHexString(type.getCode()));
        boolean sizeUnit = ARG_BYTES.isSet() ? PartitionHelper.BYTES : PartitionHelper.SECTORS;
        helper.modifyPartition(id, false, start, size, sizeUnit, type);
    }
View Full Code Here


        }
        out.println("Device Boot    Start       End    Blocks   System");
        IBMPartitionTable partitionTable = helper.getPartitionTable();
        int i = 0;
        for (IBMPartitionTableEntry entry : partitionTable) {
            IBMPartitionTypes si = entry.getSystemIndicator();
            if (!entry.isEmpty()) {
                long sectors = entry.getNrSectors();

                out.println("ID " + i + " " + (entry.getBootIndicator() ? "Boot" : "No") + "    " +
                    entry.getStartLba() + "    " + (entry.getStartLba() + sectors) + "    " +
View Full Code Here

TOP

Related Classes of org.jnode.partitions.ibm.IBMPartitionTypes

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.