Unix Technical Forum

lvm_querypv

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:22 PM
Matthias
 
Posts: n/a
Default lvm_querypv

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:26 PM
Jason Mather
 
Posts: n/a
Default Re: lvm_querypv

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com