@Override public String toString() { return getLocalName(); }
"File name \"" + inode.getLocalName() + "\" is reserved and cannot " + "be created. If this is during upgrade change the name of the " + "existing file or directory to another name before upgrading "
private static String toString(INode inode) { return inode == null? null: inode.getLocalName(); }
if (result == 0) { FSImage.LOG.error( "Name '" + d.getLocalName() + "' is repeated in the " + "'deleted' difflist of directory " + dir.getFullPathName() + ", INodeId=" + dir.getId());
/** * Dump tree recursively. * @param prefix The prefix string that each line should print. */ @VisibleForTesting public void dumpTreeRecursively(PrintWriter out, StringBuilder prefix, int snapshotId) { out.print(prefix); out.print(" "); final String name = getLocalName(); out.print(name.isEmpty()? "/": name); out.print(" ("); out.print(getObjectString()); out.print("), "); out.print(getParentString()); out.print(", " + getPermissionStatus(snapshotId)); }
private static void checkNotSymlink(INode inode, byte[][] components, int i) throws UnresolvedPathException { if (inode != null && inode.isSymlink()) { final int last = components.length - 1; final String path = getPath(components, 0, last); final String preceding = getPath(components, 0, i - 1); final String remainder = getPath(components, i + 1, last); final String target = inode.asSymlink().getSymlinkString(); if (LOG.isDebugEnabled()) { final String link = inode.getLocalName(); LOG.debug("UnresolvedPathException " + " path: " + path + " preceding: " + preceding + " count: " + i + " link: " + link + " target: " + target + " remainder: " + remainder); } throw new UnresolvedPathException(path, preceding, remainder, target); } }
private void addToParent(INodeDirectory parent, INode child) { if (parent == dir.rootDir && FSDirectory.isReservedName(child)) { throw new HadoopIllegalArgumentException("File name \"" + child.getLocalName() + "\" is reserved. Please " + " change the name of the existing file or directory to another " + "name before upgrading to this release."); } // NOTE: This does not update space counts for parents if (!parent.addChild(child)) { return; } dir.cacheName(child); if (child.isFile()) { updateBlocksMap(child.asFile(), fsn.getBlockManager()); } }
@Override public String toString() { return getLocalName(); }
@Override public String toString() { return getLocalName(); }
private static String toString(INode inode) { return inode == null? null: inode.getLocalName(); }
private static String toString(INode inode) { return inode == null? null: inode.getLocalName(); }
!ucFile.asFile().isUnderConstruction()) { LOG.warn("File {} is not under construction. Skipping add to " + "low redundancy open files!", ucFile.getLocalName()); } else { lowRedundancyBlocksInOpenFiles++;
/** Return the name of the path represented by inodes at [0, pos] */ private static String getFullPathName(INode[] inodes, int pos) { StringBuilder fullPathName = new StringBuilder(); for (int i=1; i<=pos; i++) { fullPathName.append(Path.SEPARATOR_CHAR).append(inodes[i].getLocalName()); } return fullPathName.toString(); }
/** Return the name of the path represented by inodes at [0, pos] */ private static String getFullPathName(INode[] inodes, int pos) { StringBuilder fullPathName = new StringBuilder(); for (int i=1; i<=pos; i++) { fullPathName.append(Path.SEPARATOR_CHAR).append(inodes[i].getLocalName()); } return fullPathName.toString(); }
/** {@inheritDoc} */ public String toString() { return "\"" + getLocalName() + "\":" + getPermissionStatus(); }
/** {@inheritDoc} */ public String toString() { return "\"" + getLocalName() + "\":" + getPermissionStatus(); }
static String toString(INode inode) { return inode == null? null : inode.getLocalName() + ":" + inode.getModificationTime(); }
static void assertINodeFile(INode inode, Path path) { assertEquals(path.getName(), inode.getLocalName()); assertEquals(INodeFile.class, inode.getClass()); }
/** copy constructor * * @param other Other node to be copied */ INode(INode other) { setLocalName(other.getLocalName()); this.parent = other.getParent(); setPermissionStatus(other.getPermissionStatus()); setModificationTime(other.getModificationTime()); setAccessTime(other.getAccessTime()); }
/** copy constructor * * @param other Other node to be copied */ INode(INode other) { setLocalName(other.getLocalName()); this.parent = other.getParent(); setPermissionStatus(other.getPermissionStatus()); setModificationTime(other.getModificationTime()); setAccessTime(other.getAccessTime()); }