- for l in range(len(logical)):
- end = l.geometry.start - 1
- dd('if=%s' % src.path, 'of=%s' % dest, 'count=%d' % (end - start + 1),
- 'conv=notrunc', 'seek=%d' % start, 'skip=%d' % start)
- start = l.geometry.end + 1
+ for i in range(len(logical)):
+ end = logical[i].geometry.start - 1
+ dd('if=%s' % src.device.path, 'of=%s' % dest,
+ 'count=%d' % (end - start + 1), 'conv=notrunc', 'seek=%d' % start,
+ 'skip=%d' % start)
+ start = logical[i].geometry.end + 1