How to fetch partition table information for the application without using GPL code?

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.