Motr
M0
|
Go to the source code of this file.
Namespaces | |
error_injection | |
Functions | |
def | RecordOffset (record, i, size) |
def | ReadTypeSize (byte) |
def | EditMetadata (offset) |
def | ReadMetadata (offset) |
def | ReadCompleteRecord (offset) |
def | ReadBeBNode (offset) |
def | InduceCorruption (recordType, noOfErr) |
def | InduceRandomCorruption (noOfErr) |
def | InduceErrInAllRecord () |
def | InduceErrInGMDRecords () |
def | InduceErrInDMDRecords () |
def | InduceHugeError () |
def | Induce512kbError () |
def | ConvertAdstob2Cob (stob_f_container, stob_f_key) |
def | ConvertCobAdstob (cob_f_container, cob_f_key) |
def | CorruptEmap (recordType, stob_f_container, stob_f_key) |
def | ListAllEmapPerDevice () |
def | VerifyLengthOfRecord (recordDict) |
def | read_metadata_file () |
Variables | |
timestr = time.strftime("%Y%m%d-%H%M%S") | |
string | log_filename = "hole_creation_" + timestr + ".log" |
logger = logging.getLogger() | |
fh = logging.FileHandler(log_filename) | |
ch = logging.StreamHandler() | |
fformatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s') | |
cformatter = logging.Formatter('%(levelname)s : %(message)s') | |
parser = argparse.ArgumentParser(description="Basic Arguments to run the script") | |
action | |
default | |
False | |
dest | |
help | |
type | |
int | |
float | |
args = parser.parse_args() | |
results = parser.parse_args() | |
filename = args.mfile | |
recordType = args.Record_Type | |
noOfErr = args.noOfErr | |
seed = args.seed | |
string | header = b'33011ca5e511de77' |
string | footer = b'33f007e7f007e777' |
dictionary | typeDict |
dictionary | recordDict |
dictionary | sizeDict |
list | DMDList = ['BE_BNODE', 'BE_EMAP_KEY', 'BE_EMAP_REC', 'COB_NSREC', 'BALLOC_GROUP_DESC'] |
list | GMDList |
dictionary | btreeType |
dictionary | BeBnodeTypeKeys = {} |
int | noOfErrs = 0 |
cob_f_container = hex(int(_f_container, 16)) | |
cob_f_key = hex(int(_f_key, 16)) | |
stob_f_container | |
stob_f_key | |