Lines Matching refs:device_name
215 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument
220 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device()
227 fprintf(f, "Device: %s\n", fs->device_name); in collect_info()
232 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info()
233 close_device(fs->device_name, fs); in collect_info()
241 com_err(fs->device_name, retval, "while collecting chunk info"); in collect_info()
242 close_device(fs->device_name, fs); in collect_info()
248 static void open_device(char *device_name, ext2_filsys *fs) in open_device() argument
253 retval = ext2fs_open(device_name, flag, 0, 0, unix_io_manager, fs); in open_device()
255 com_err(device_name, retval, "while opening filesystem"); in open_device()
280 char *device_name; in do_freefrag() local
317 device_name = argv[optind]; in do_freefrag()
319 open_device(device_name, &fs); in do_freefrag()
331 close_device(device_name, fs); in do_freefrag()