Lines Matching refs:device_name
216 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument
221 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device()
228 fprintf(f, "Device: %s\n", fs->device_name); in collect_info()
233 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info()
234 close_device(fs->device_name, fs); in collect_info()
242 com_err(fs->device_name, retval, "while collecting chunk info"); in collect_info()
243 close_device(fs->device_name, fs); in collect_info()
249 static void open_device(char *device_name, ext2_filsys *fs) in open_device() argument
254 retval = ext2fs_open(device_name, flag, 0, 0, unix_io_manager, fs); in open_device()
256 com_err(device_name, retval, "while opening filesystem"); in open_device()
282 char *device_name; in do_freefrag() local
319 device_name = argv[optind]; in do_freefrag()
321 open_device(device_name, &fs); in do_freefrag()
333 close_device(device_name, fs); in do_freefrag()