Package org.jnode.fs.hfsplus.catalog

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


        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 =
            new HfsPlusEntry((HfsPlusFileSystem) getFileSystem(), this, name, node.getNodeRecord(0));
        newEntry.setDirty();
        volumeHeader.incrementFolderCount();
        log.debug("New volume header :\n" + volumeHeader.toString());
        volumeHeader.update();
View Full Code Here

TOP

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

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.