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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content