Package org.jnode.fs.hfsplus.catalog

Examples of org.jnode.fs.hfsplus.catalog.Catalog


     */
    private FSEntry createDirectoryEntry(final String name) throws IOException {
        if (getFileSystem().isReadOnly()) {
            throw new ReadOnlyFileSystemException();
        }
        Catalog catalog = ((HfsPlusFileSystem) getFileSystem()).getCatalog();
        SuperBlock volumeHeader = ((HfsPlusFileSystem) getFileSystem()).getVolumeHeader();
        CatalogLeafNode node =
            catalog.createNode(name, this.folder.getFolderId(),
                new CatalogNodeId(volumeHeader.getNextCatalogId()),
                CatalogFolder.RECORD_TYPE_FOLDER_THREAD);
        folder.incrementValence();

        HfsPlusEntry newEntry =
View Full Code Here


            extentOverflow = new Extent(this);
        } catch (IOException e) {
            throw new FileSystemException(e);
        }
        try {
            catalog = new Catalog(this);
        } catch (IOException e) {
            throw new FileSystemException(e);
        }
    }
View Full Code Here

                - ((volumeHeader.getBlockSize() == 512) ? 2 : 1);
            // ---
            log.debug("Write allocation bitmap bits to disk.");
            writeAllocationFile((int) volumeBlockUsed);
            log.debug("Write Catalog to disk.");
            Catalog catalog = new Catalog(params, this);
            catalog.update();
            extentOverflow = new Extent(params);
            log.debug("Write volume header to disk.");
            volumeHeader.update();
            flush();
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.jnode.fs.hfsplus.catalog.Catalog

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.