Lines Matching refs:devpath

34         _cleanup_free_ char *devpath = NULL, *main_devpath = NULL;  in resize_crypt_luks_device()  local
57 r = device_path_make_major_minor(S_IFBLK, devno, &devpath); in resize_crypt_luks_device()
61 r = sym_crypt_init(&cd, devpath); in resize_crypt_luks_device()
63 return log_error_errno(r, "crypt_init(\"%s\") failed: %m", devpath); in resize_crypt_luks_device()
69 return log_debug_errno(r, "Failed to load LUKS metadata for %s: %m", devpath); in resize_crypt_luks_device()
76 return log_error_errno(r, "crypt_resize() of %s failed: %m", devpath); in resize_crypt_luks_device()
80 devpath); in resize_crypt_luks_device()
89 _cleanup_free_ char *fstype = NULL, *devpath = NULL; in maybe_resize_underlying_device() local
111 r = device_path_make_major_minor(S_IFBLK, devno, &devpath); in maybe_resize_underlying_device()
115 r = probe_filesystem(devpath, &fstype); in maybe_resize_underlying_device()
117 …turn log_warning_errno(r, "Cannot reliably determine probe \"%s\", refusing to proceed.", devpath); in maybe_resize_underlying_device()
119 return log_warning_errno(r, "Failed to probe \"%s\": %m", devpath); in maybe_resize_underlying_device()
126 log_debug("Don't know how to resize %s of type %s, ignoring.", devpath, strnull(fstype)); in maybe_resize_underlying_device()
199 _cleanup_free_ char *devpath = NULL; in run() local
232 r = device_path_make_major_minor(S_IFBLK, devno, &devpath); in run()
236 devfd = open(devpath, O_RDONLY|O_CLOEXEC); in run()
238 return log_error_errno(errno, "Failed to open \"%s\": %m", devpath); in run()
241 return log_error_errno(errno, "Failed to query size of \"%s\": %m", devpath); in run()