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