public BlockStoragePolicySuite getBlockStoragePolicySuite() { Preconditions.checkState((bsps != null || fsn != null), "BlockStoragePolicySuite must be either initialized or available via" + " FSNameSystem"); return (bsps != null) ? bsps: fsn.getBlockManager().getStoragePolicySuite(); }
public BlockStoragePolicySuite getBlockStoragePolicySuite() { return getBlockManager().getStoragePolicySuite(); }
CommonConfigurationKeysPublic.HADOOP_SECURITY_KEY_PROVIDER_PATH, ""), blockManager.getStoragePolicySuite().getDefaultPolicy().getId());
public BlockStoragePolicySuite getBlockStoragePolicySuite() { Preconditions.checkState((bsps != null || fsn != null), "BlockStoragePolicySuite must be either initialized or available via" + " FSNameSystem"); return (bsps != null) ? bsps: fsn.getBlockManager().getStoragePolicySuite(); } }
public BlockStoragePolicySuite getBlockStoragePolicySuite() { return getBlockManager().getStoragePolicySuite(); }
public BlockStoragePolicySuite getBlockStoragePolicySuite() { return getBlockManager().getStoragePolicySuite(); }
public BlockStoragePolicySuite getBlockStoragePolicySuite() { Preconditions.checkState((bsps != null || fsn != null), "BlockStoragePolicySuite must be either initialized or available via" + " FSNameSystem"); return (bsps != null) ? bsps: fsn.getBlockManager().getStoragePolicySuite(); } }
getStoragePolicySuite()).getLength(); final long pos = fileLength - lastBlock.getNumBytes(); return createLocatedBlock(null, lastBlock, pos,
FSEditLog.closeAllStreams(editStreams); updateCountForQuota(target.getBlockManager().getStoragePolicySuite(), target.dir.rootDir, quotaInitThreads);
getFSDirectory().getBlockManager().getStoragePolicySuite(), root, 1); scanDirsWithQuota(root, nsMap, dsMap, true); getFSDirectory().getBlockManager().getStoragePolicySuite(), root, 2); scanDirsWithQuota(root, nsMap, dsMap, true); getFSDirectory().getBlockManager().getStoragePolicySuite(), root, 4); scanDirsWithQuota(root, nsMap, dsMap, true);
FSEditLog.closeAllStreams(editStreams); updateCountForQuota(target.getBlockManager().getStoragePolicySuite(), target.dir.rootDir);
/** Load the fsimage from a temp file */ private void loadFSImageFromTempFile(File imageFile) throws IOException { FSImageFormat.LoaderDelegator loader = FSImageFormat.newLoader(conf, fsn); fsn.writeLock(); fsn.getFSDirectory().writeLock(); try { loader.load(imageFile, false); FSImage.updateCountForQuota(fsn.getBlockManager().getStoragePolicySuite(), INodeDirectory.valueOf(fsn.getFSDirectory().getINode("/"), "/"), 4); } finally { fsn.getFSDirectory().writeUnlock(); fsn.writeUnlock(); } }
final long fileLength = bc.computeContentSummary(getStoragePolicySuite()).getLength(); final long pos = fileLength - ucBlock.getNumBytes(); return createLocatedBlock(ucBlock, pos, AccessMode.WRITE);
final long fileLength = bc.computeContentSummary(getStoragePolicySuite()).getLength(); final long pos = fileLength - ucBlock.getNumBytes(); return createLocatedBlock(ucBlock, pos, AccessMode.WRITE);
fnode.computeQuotaUsage(fsn.getBlockManager().getStoragePolicySuite(), counts, true); assertEquals(fnode.dumpTreeRecursively().toString(), 1, counts.getNameSpace());
fnode.computeQuotaUsage(fsn.getBlockManager().getStoragePolicySuite(), counts, true); assertEquals(fnode.dumpTreeRecursively().toString(), 0, counts.getTypeSpaces().get(StorageType.SSD));
sub1Node.computeQuotaUsage(fsn.getBlockManager().getStoragePolicySuite(), counts1, true); assertEquals(sub1Node.dumpTreeRecursively().toString(), file1Len, counts1.getTypeSpaces().get(StorageType.SSD)); sub1Node.computeQuotaUsage(fsn.getBlockManager().getStoragePolicySuite(), counts2, true); assertEquals(sub1Node.dumpTreeRecursively().toString(), 0, counts2.getTypeSpaces().get(StorageType.SSD));