Package org.jnode.apps.vmware.disk.descriptor

Examples of org.jnode.apps.vmware.disk.descriptor.Header


        int nbSectors = ddb.getCylinders() * ddb.getHeads() * ddb.getSectors();
        LOG.info("buildDescriptor: allocated size=" + (nbSectors * IDEConstants.SECTOR_SIZE));

        // build Header
        Header header = new Header();
        header.setVersion("1");
        header.setContentID(0);
        header.setParentContentID(Header.CID_NOPARENT);
        header.setCreateType(CreateType.monolithicSparse);
        header.setParentFileNameHint("");

        // build extents
        List<Extent> extents = new ArrayList<Extent>();
        SparseExtent mainExtent = createMainExtent(mainFile, nbSectors);
        extents.add(mainExtent);
View Full Code Here

TOP

Related Classes of org.jnode.apps.vmware.disk.descriptor.Header

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.