Lines Matching refs:device_name
180 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online()
183 com_err(fs->device_name, retval, "while checking mount status"); in scan_online()
196 com_err(fs->device_name, errno, "while allocating memory"); in scan_online()
213 com_err(fs->device_name, errno, "while calling fsmap"); in scan_online()
327 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument
332 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device()
340 fprintf(f, "Device: %s\n", fs->device_name); in collect_info()
349 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info()
350 close_device(fs->device_name, fs); in collect_info()
356 com_err(fs->device_name, retval, "while dumping chunk info"); in collect_info()
357 close_device(fs->device_name, fs); in collect_info()
363 static void open_device(char *device_name, ext2_filsys *fs) in open_device() argument
368 retval = ext2fs_open(device_name, flag, 0, 0, unix_io_manager, fs); in open_device()
370 com_err(device_name, retval, "while opening filesystem"); in open_device()
397 char *device_name; in do_freefrag() local
434 device_name = argv[optind]; in do_freefrag()
436 open_device(device_name, &fs); in do_freefrag()
448 close_device(device_name, fs); in do_freefrag()