stubbed out rest of storage things
This commit is contained in:
13
aif/utils.py
13
aif/utils.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user