def list_partitions_device(dev): """ Return a list of partitions on the given device name """ partitions = [] basename = os.path.basename(dev) for name in os.listdir(block_path(dev)): if name.startswith(basename): partitions.append(name) return partitions Incorrectly tries to compare the /dev path with the /sys/block path, fixing this. On 11/12/2015 09:36, Jens Rosenboom wrote: > 2015-12-11 9:16 GMT+01:00 Stolte, Felix <f.stolte@xxxxxxxxxxxxx>: >> Hi Jens, >> >> output is attached (stderr + stdout) > > O.k., so now "ls -l /sys/dev/block /sys/dev/block/104:0 > /sys/dev/block/104:112" please. > -- Loïc Dachary, Artisan Logiciel Libre
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com