Package org.jnode.apps.vmware.disk

Examples of org.jnode.apps.vmware.disk.ExtentDeclaration


        return descriptor;
    }

    private SparseExtent createMainExtent(File mainFile, int nbSectors) {
        long offset = 0L; // TODO should be changed ?
        ExtentDeclaration extentDecl =
                IOUtils.createExtentDeclaration(mainFile, mainFile.getName(), Access.RW, nbSectors,
                        ExtentType.SPARSE, offset);

        // create extent header
        SparseExtentHeader sparseHeader = new SparseExtentHeader();
View Full Code Here


            List<String> extentDecls = new ArrayList<String>();
            String lastLine = readExtents(br, extentDecls);
            DiskDatabase diskDatabase = readDiskDatabase(br, lastLine);

            List<Extent> extents = new ArrayList<Extent>(extentDecls.size());
            ExtentDeclaration mainExtentDecl = null;
            for (String decl : extentDecls) {
                ExtentDeclaration extentDecl = readExtentDeclaration(decl, file);
                if (extentDecl.isMainExtent()) {
                    mainExtentDecl = extentDecl;
                } else {
                    FileDescriptor fileDescriptor =
                            IOUtils.readFileDescriptor(extentDecl.getExtentFile());

                    Extent extent = createExtent(fileDescriptor, extentDecl);
                    extents.add(extent);
                }
            }
View Full Code Here

TOP

Related Classes of org.jnode.apps.vmware.disk.ExtentDeclaration

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.