home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / doc / python-parted / BUGS < prev    next >
Encoding:
Text File  |  2009-04-13  |  1.1 KB  |  39 lines

  1. List bugs in this file, numbered, with an example that can be run from the
  2. Python interactive shell.
  3.  
  4. ---------------------------------------------------------------------------
  5.  
  6. 1) parted.Disk.getLogicalPartitions() crashes
  7.        device = parted.getDevice("/dev/sda")
  8.        disk = parted.Disk(device)
  9.        disk.getLogicalPartitions()
  10.  
  11. 2) pydisk.c:
  12.  
  13.    py_ped_disk_type_get() returns NULL without setting an exception when
  14.    called with None argument
  15.        # XXX: NEED REPRODUCER
  16.  
  17.    py_ped_disk_type_check_feature() returns NULL without setting an
  18.    exception when called with 0 as argument
  19.        # XXX: NEED REPRODUCER
  20.  
  21.    py_ped_geometry_read() and py_ped_device_read() do not work properly
  22.    when the read data contains 0 bytes
  23.        # XXX: NEED REPRODUCER
  24.  
  25. 3) import parted
  26.    # create a parted.Disk
  27.    for part in disk.partitions:
  28.        print part
  29.  
  30.    "argument 2 must be _ped.Geometry, not _ped.Geometry"
  31.  
  32. 4) import parted
  33.    device = parted.Device(path="/dev/dm-0")
  34.    disk = parted.Disk(device=device)
  35.    disk.partitions[0].getDeviceNodeName()
  36.  
  37.    expected: "unrecognized disk label"
  38.    get:      "/dev/dm-01"
  39.