- Package:
- src:parted
- Source:
- parted
- Submitter:
- Gordon Heydon
- Date:
- 2015-03-17 00:00:55 UTC
- Severity:
- normal
with the following routine which is used by the new debian-installer lvm
devices under 2.4 are shown, but when running does not show devmapper
devices which are used by lvm2
main(int argc, char *argv[])
{
PedDevice *dev;
ped_exception_fetch_all();
ped_device_probe_all();
for (dev = NULL; NULL != (dev = ped_device_get_next(dev));) {
printf("%s\t%lli\t%s\n",
dev->path,
dev->length * PED_SECTOR_SIZE,
dev->model);
}
return 0;
}