<div dir="ltr"><div><div>Sorry for the dumb question, I should have run my test under sudo.<br></div>The libparted 3.1 works!<br><br></div>~AY<br><div><div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Aleksey Yakovlev</b> <span dir="ltr"><<a href="mailto:aleksey.yakovlev@gmail.com">aleksey.yakovlev@gmail.com</a>></span><br>Date: Wed, Feb 12, 2014 at 5:25 PM<br>Subject: libparted 3.1 doesn't show any devices<br>
To: <a href="mailto:parted-devel@lists.alioth.debian.org">parted-devel@lists.alioth.debian.org</a><br><br><br><div dir="ltr">Hi - I'm new to the libparted. I've built it (Ver 3.1) on Xubuntu 3.11 VM (running at MacBook OS X 10.9.1) and tried to request a list of devices:<div>
<br></div><div>#include <iostream></div><div>
#include "parted/parted.h"<br></div><div><br></div><div>using std::cout;</div><div>using std::endl;</div><div><br></div><div>int main()</div><div>{</div><div>  unsigned count = 0;</div><div>  PedDevice* pd = NULL;</div>

<div>  ped_device_probe_all();</div><div>  while (true)</div><div>  {</div><div>    pd = ped_device_get_next(pd);</div><div>    if (pd != NULL)</div><div>    {</div><div>      cout << "# " << count << endl;</div>

<div>      // ......</div><div>      ++count;</div><div>    }</div><div>    else</div><div>    {</div><div>      break;</div><div>    }</div><div>  }</div><div>  cout << "Found: " << count << endl;</div>

<div>}</div><div><br></div><div>However, it doesn't see any devices, the program returns "Found: 0"</div><div><br></div><div>Please help,</div><div>Thanks,</div><div>Aleksey</div><div><br></div></div>
</div><br></div></div></div></div>