This is a discussion on lvm_querypv within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello ! I am using the lmv_querypv() API to extract information about PVs. I can access some parts of ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello ! I am using the lmv_querypv() API to extract information about PVs. I can access some parts of the information, but not all. In particular I have trouble accessing the pm_map array, holding information about the PPs of the PV. I can only access information about the first PP. Using the "lspv -M <PV>" command verifies that there is more than one PP on a particular PV. Code fragment: struct querypv *pvData = NULL; ret = lvm_querypv(&theVGID, &thePVID, &pvData, NULL); if (ret) { // error handling } struct pp_map *p = pvData->pp_map; print_pp(p); // shows proper data p++; print_pp(p); // data = 0 A hexdump of that memory verifies that the remaining pp_map array elements are all zero. Help to resolve the problem is appreciated. Thanx, Matthias |
| ||||
| Matthias wrote: > Hello ! > <snip> > > A hexdump of that memory verifies that the remaining pp_map array > elements are all zero. > > > Help to resolve the problem is appreciated. > > Thanx, > Matthias From the documentation: "If the physical partition is free (that is, not allocated), all of its pp_map fields will be zero." -- Jason |