Home
last modified time | relevance | path

Searched refs:devpath (Results 1 – 13 of 13) sorted by relevance

/systemd-251/test/
Dudev-test.pl83 devpath => $tgt,
115devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
119devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
130devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
142devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
154devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
166devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
177devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
200devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
213devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1",
[all …]
/systemd-251/src/partition/
Dgrowfs.c34 _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()
[all …]
/systemd-251/src/test/
Dtest-udev.c90 const char *devpath, *devname, *action; in run() local
124 devpath = argv[2]; in run()
129 syspath = strjoina("/sys", devpath); in run()
132 return log_debug_errno(r, "Failed to open device '%s'", devpath); in run()
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c142 const char *devpath; in device_set_syspath() local
240 assert_se(devpath = startswith(syspath, "/sys")); in device_set_syspath()
241 if (devpath[0] != '/') in device_set_syspath()
244 r = device_add_property_internal(device, "DEVPATH", devpath); in device_set_syspath()
249 device->devpath = devpath; in device_set_syspath()
937 const char *devpath, *drivers, *p; in device_set_drivers_subsystem() local
942 r = sd_device_get_devpath(device, &devpath); in device_set_drivers_subsystem()
946 drivers = strstr(devpath, "/drivers/"); in device_set_drivers_subsystem()
948 drivers = endswith(devpath, "/drivers"); in device_set_drivers_subsystem()
953 r = path_find_last_component(devpath, /* accept_dot_dot= */ false, &drivers, &p); in device_set_drivers_subsystem()
[all …]
Ddevice-enumerator.c309 static bool devpath_is_late_block(const char *devpath) { in devpath_is_late_block() argument
310 assert(devpath); in devpath_is_late_block()
312 return strstr(devpath, "/block/md") || strstr(devpath, "/block/dm-"); in devpath_is_late_block()
Ddevice-internal.h62 const char *devpath; member
Ddevice-private.c422 if (!device->devpath || !device->subsystem || device->action < 0 || device->seqnum == 0) in device_verify()
1076 path, device->devpath); in device_update_db()
1084 …device: Failed to create %s file '%s' for '%s'", has_info ? "db" : "empty", path, device->devpath); in device_update_db()
/systemd-251/src/udev/
Dudevadm-monitor.c31 const char *devpath = NULL, *subsystem = NULL; in device_monitor_handler() local
39 (void) sd_device_get_devpath(device, &devpath); in device_monitor_handler()
48 devpath, subsystem); in device_monitor_handler()
Dudevadm-info.c438 const char *devpath; in query_device() local
440 r = sd_device_get_devpath(device, &devpath); in query_device()
444 printf("%s\n", devpath); in query_device()
Dudevd.c855 const char *subsystem, *devpath, *devpath_old = NULL; in event_is_blocked() local
912 r = sd_device_get_devpath(event->dev, &devpath); in event_is_blocked()
916 devpath_len = strlen(devpath); in event_is_blocked()
976 if (!strneq(devpath, loop_devpath, common)) in event_is_blocked()
984 if (devpath[common] == '/') in event_is_blocked()
/systemd-251/src/libudev/
Dlibudev-device.c520 const char *devpath; in udev_device_get_devpath() local
525 r = sd_device_get_devpath(udev_device->device, &devpath); in udev_device_get_devpath()
529 return devpath; in udev_device_get_devpath()
/systemd-251/shell-completion/zsh/
D_udevadm8 '--path=[The devpath of the device to query.]:sys files:_files -P /sys/ -W /sys' \
85 '*::devpath:_files -P /sys/ -W /sys'
115 '*::devpath:_files -P /dev/ -W /dev'
/systemd-251/src/journal/
Djournalctl.c195 static int add_matches_for_device(sd_journal *j, const char *devpath) { in add_matches_for_device() argument
202 assert(devpath); in add_matches_for_device()
204 if (!path_startswith(devpath, "/dev/")) in add_matches_for_device()
208 if (stat(devpath, &st) < 0) in add_matches_for_device()