def comp_meta(file_bef, file_aft, mode="<STR_LIT>"):
if env():<EOL><INDENT>cij.err("<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>nvme = cij.env_to_dict(PREFIX, EXPORTED + REQUIRED)<EOL>num_chk = int(nvme["<STR_LIT>"])<EOL>meta_bef = cij.bin.Buffer(types=get_descriptor_table(nvme['<STR_LIT>']), length=num_chk)<EOL>meta_aft = cij.bin.Buffer(types=get_descriptor_table(nvme['<STR_LIT>']), length=num_chk)<EOL>meta_bef.read(file_bef)<EOL>meta_aft.read(file_aft)<EOL>for chk in range(num_chk):<EOL><INDENT>ignore = ["<STR_LIT>", "<STR_LIT>"]<EOL>if mode == "<STR_LIT>" and meta_bef[chk].CS == <NUM_LIT:4>:<EOL><INDENT>ignore.append("<STR_LIT>")<EOL><DEDENT>if meta_bef.compare(meta_aft, chk, ignore=ignore):<EOL><INDENT>cij.warn("<STR_LIT>" % chk)<EOL>meta_bef.dump(chk)<EOL>cij.warn("<STR_LIT>" % chk)<EOL>meta_aft.dump(chk)<EOL>cij.err("<STR_LIT>" % chk)<EOL>return <NUM_LIT:1><EOL><DEDENT><DEDENT>return <NUM_LIT:0><EOL>
Compare chunk meta, mode=[pfail, power, reboot]