@Override public final void setModificationTime(long modificationTime) { referred.setModificationTime(modificationTime); }
/** Set the last modification time of inode. */ public final INode setModificationTime(long modificationTime, int latestSnapshotId) { recordModification(latestSnapshotId); setModificationTime(modificationTime); return this; }
@Override public final void setModificationTime(long modificationTime) { referred.setModificationTime(modificationTime); }
@Override public final void setModificationTime(long modificationTime) { referred.setModificationTime(modificationTime); }
static boolean unprotectedSetTimes( FSDirectory fsd, INodesInPath iip, long mtime, long atime, boolean force) throws QuotaExceededException { assert fsd.hasWriteLock(); boolean status = false; INode inode = iip.getLastINode(); int latest = iip.getLatestSnapshotId(); if (mtime != -1) { inode = inode.setModificationTime(mtime, latest); status = true; } // if the last access time update was within the last precision interval, // then no need to store access time if (atime != -1 && (status || force || atime > inode.getAccessTime() + fsd.getAccessTimePrecision())) { inode.setAccessTime(atime, latest, fsd.getFSNamesystem().getSnapshotManager(). getSkipCaptureAccessTimeOnlyChange()); status = true; } return status; } }
/** Set the last modification time of inode. */ public final INode setModificationTime(long modificationTime, int latestSnapshotId) { recordModification(latestSnapshotId); setModificationTime(modificationTime); return this; }
/** Set the last modification time of inode. */ public final INode setModificationTime(long modificationTime, int latestSnapshotId) { recordModification(latestSnapshotId); setModificationTime(modificationTime); return this; }
inodes[inodes.length-2].setModificationTime(modificationTime);
srcInodes[srcInodes.length-2].setModificationTime(timestamp); dstInodes[dstInodes.length-2].setModificationTime(timestamp); return true; } else {
totalFiles--; inodes[inodes.length-2].setModificationTime(modificationTime);
srcInodes[srcInodes.length-2].setModificationTime(timestamp); dstInodes[dstInodes.length-2].setModificationTime(timestamp);
private static boolean unprotectedSetTimes( FSDirectory fsd, INode inode, long mtime, long atime, boolean force, int latest) throws QuotaExceededException { assert fsd.hasWriteLock(); boolean status = false; if (mtime != -1) { inode = inode.setModificationTime(mtime, latest); status = true; } // if the last access time update was within the last precision interval, // then no need to store access time if (atime != -1 && (status || force || atime > inode.getAccessTime() + fsd.getFSNamesystem().getAccessTimePrecision())) { inode.setAccessTime(atime, latest); status = true; } return status; } }
private static boolean unprotectedSetTimes( FSDirectory fsd, INode inode, long mtime, long atime, boolean force, int latest) throws QuotaExceededException { assert fsd.hasWriteLock(); boolean status = false; if (mtime != -1) { inode = inode.setModificationTime(mtime, latest); status = true; } // if the last access time update was within the last precision interval, // then no need to store access time if (atime != -1 && (status || force || atime > inode.getAccessTime() + fsd.getFSNamesystem().getAccessTimePrecision())) { inode.setAccessTime(atime, latest); status = true; } return status; } }
/** 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()); }