Add disk format support to function create_local_disk.