Home
last modified time | relevance | path

Searched refs:parse_devnum (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/test/
Dtest-devnum-util.c10 TEST(parse_devnum) { in TEST() argument
13 assert_se(parse_devnum("", &dev) == -EINVAL); in TEST()
14 assert_se(parse_devnum("junk", &dev) == -EINVAL); in TEST()
15 assert_se(parse_devnum("0", &dev) == -EINVAL); in TEST()
16 assert_se(parse_devnum("5", &dev) == -EINVAL); in TEST()
17 assert_se(parse_devnum("5:", &dev) == -EINVAL); in TEST()
18 assert_se(parse_devnum(":5", &dev) == -EINVAL); in TEST()
19 assert_se(parse_devnum("-1:-1", &dev) == -EINVAL); in TEST()
21 assert_se(parse_devnum("4294967295:4294967295", &dev) == -EINVAL); in TEST()
23 assert_se(parse_devnum("8:11", &dev) >= 0 && major(dev) == 8 && minor(dev) == 11); in TEST()
[all …]
/systemd-251/src/basic/
Ddevnum-util.c12 int parse_devnum(const char *s, dev_t *ret) { in parse_devnum() function
124 r = parse_devnum(w, &devnum); in device_path_parse_major_minor()
Ddevnum-util.h10 int parse_devnum(const char *s, dev_t *ret);
/systemd-251/src/shared/
Dblockdev-util.c47 r = parse_devnum(s, &devt); in block_get_whole_disk()
173 r = parse_devnum(t, &devt); in block_get_originating()
Dsleep-config.c277 r = parse_devnum(resume_str, &resume); in read_resume_files()
Dloop-util.c880 r = parse_devnum(buffer, &devno); in resize_partition()
/systemd-251/src/sysext/
Dsysext.c87 r = parse_devnum(buf, &dev); in is_our_mount_point()
/systemd-251/src/login/
Dlogind-session.c381 k = parse_devnum(word, &dev); in session_load_devices()
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c819 r = parse_devnum(id + 1, &devt); in sd_device_new_from_device_id()
/systemd-251/src/tmpfiles/
Dtmpfiles.c3107 r = parse_devnum(i.argument, &i.major_minor); in parse_line()
/systemd-251/src/partition/
Drepart.c3888 r = parse_devnum(t, &sl); in resolve_copy_blocks_auto()