def page_file_allocation(): inp = request.args['input'] if inp == 'contigous': inp = 1 else: inp = 0 file_allocator.init(inp) return app.send_static_file('file_allocation.html')
def mvt_change_fit(): fit = request.args['fit'] print fit if file_allocator.mvt is not None: file_allocator.execute(4, '0') file_allocator.init(4) print file_allocator.execute(4, '0 100 ' + fit) return "Success"
def mft_init(): inp = request.args['input'] if file_allocator.mft is not None: file_allocator.execute(5, '0') file_allocator.init(5) out = file_allocator.execute(5, inp) print out return out
def page_indexed_file_allocation(): file_allocator.init(3) return app.send_static_file('indexed_file_allocation.html')
def page_linked_file_allocation(): file_allocator.init(2) return app.send_static_file('linked_file_allocation.html')
def page_contigous_file_allocation(): file_allocator.init(1) return app.send_static_file('contigous_file_allocation.html')