stubbed out rest of storage things

This commit is contained in:
brent s
2019-11-06 03:47:08 -05:00
parent d4de31dd67
commit 7e6736f6a2
8 changed files with 169 additions and 59 deletions

View File

@@ -1,3 +1,4 @@
import math
import os
import re
import subprocess
@@ -42,6 +43,18 @@ def hasBin(binary_name):
return(False)
def hasSafeChunks(n):
if (n % 4) != 0:
return(False)
return(True)
def isPowerofTwo(n):
# So dumb.
isPowerOf2 = math.ceil(math.log(n, 2)) == math.floor(math.log(n, 2))
return(isPowerOf2)
def kernelFilesystems():
# I wish there was a better way of doing this.
# https://unix.stackexchange.com/a/98680