def doSFSChecks(files, isolvl): logger.logI(tn, logger.I, _("Checking the compressed filesystem")) size = fsutil.getSize(files) lvl2 = fsutil.sizeTrans({"G": 4}) lvl3 = fsutil.sizeTrans({"T": 8}) if size > lvl2 and isolvl < 3: dispiso9660(isolvl, lvl2, size) elif size > lvl3 and isolvl >= 3: # 8TB OS? That's a bit much xD dispiso9660(isolvl, lvl3, size)
def dispiso9660(level, maxs, size): logger.logE( tn, logger.E, _("Compressed filesystem is higher than the iso9660 level ") + level + " spec allows (" + fsutil.sizeTrans({"B": maxs}, "M") + _("MB, size is ") + fsutil.sizeTrans({"B": size}, "M") + "MB).") logger.logE( tn, logger.E, logger.MTab + _("Please try to either reduce the amount of data you are generating, or " ) + _("increase the ISO level"))
def dispiso9660(level, maxs, size): logger.logE(tn, logger.E, _("Compressed filesystem is higher than the iso9660 level ") + level + " spec allows (" + fsutil.sizeTrans({"B": maxs}, "M") + _("MB, size is ") + fsutil.sizeTrans({"B": size}, "M") + "MB).") logger.logE(tn, logger.E, logger.MTab + _("Please try to either reduce the amount of data you are generating, or ") + _("increase the ISO level"))