]>
git.ipfire.org Git - thirdparty/systemd.git/blob - extras/multipath/unsused.c
ecdd695ac8fbf7803179f8ae586679287df1b086
5 if (!(dmt
= dm_task_create(DM_DEVICE_REMOVE
)))
7 if (!dm_task_set_name(dmt
, str
))
12 printf("Deleted device map : %s\n", str
);
19 get_table(const char * str
)
24 uint64_t start
, length
;
25 char *target_type
= NULL
;
28 if (!(dmt
= dm_task_create(DM_DEVICE_TABLE
)))
31 if (!dm_task_set_name(dmt
, str
))
34 if (!dm_task_run(dmt
))
38 next
= dm_get_next_target(dmt
, next
, &start
, &length
,
39 &target_type
, ¶ms
);
41 printf("%" PRIu64
" %" PRIu64
" %s %s\n",
42 start
, length
, target_type
, params
);