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:

#include <iostream>
#include "parted/parted.h"

using std::cout;
using std::endl;

int main()
{
  unsigned count = 0;
  PedDevice* pd = NULL;
  ped_device_probe_all();
  while (true)
  {
    pd = ped_device_get_next(pd);
    if (pd != NULL)
    {
      cout << "# " << count << endl;
      // ......
      ++count;
    }
    else
    {
      break;
    }
  }
  cout << "Found: " << count << endl;
}

However, it doesn't see any devices, the program returns "Found: 0"

Please help,
Thanks,
Aleksey

Reply via email to