def main(): #check if metadata exists. if it doesnt, call _blank_fs_init, if it DOES exist call persist_metadata try: f = open("lind.metadata", 'r') lind_fs_calls.restore_metadata("lind.metadata") f.close() except IOError, e: lind_fs_calls._blank_fs_init()
def main(): # check if there is existing metadata, if there is none, create a blank one try: open("lind.metadata", "r") # load the metadata lind_fs_calls.restore_metadata("lind.metadata") # start the loop to go through the table go_through_inode_table() except IOError, e: lind_fs_calls._blank_fs_init()