How to fetch partition table information for the application without using GPL code?
Issue
-
GPL function to access the partition information of a device from the structure is "disk_part_tbl" of structure "gendisk". In RHEL6 it uses the following functions
- disk_part_iter_init();
- disk_part_iter_next();
- disk_part_iter_exit();
-
Product cannot use the GPL functions(as above) to access the partition information of a device, how to access the partition information of the device using Non-GPL functions?
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.