/// <exception cref="System.IO.IOException"/> internal static CachePoolInfo AddCachePool(FSNamesystem fsn, CacheManager cacheManager , CachePoolInfo req, bool logRetryCache) { FSPermissionChecker pc = GetFsPermissionChecker(fsn); if (pc != null) { pc.CheckSuperuserPrivilege(); } CachePoolInfo info = cacheManager.AddCachePool(req); fsn.GetEditLog().LogAddCachePool(info, logRetryCache); return(info); }