Skip to content
Snippets Groups Projects
Commit e3aac3f9 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Make DiskDevice.shrink() return the new disk size

parent 8c574358
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,8 @@ class DiskDevice(object):
start = last_partition['part_start'] / sector_size
end = start + (block_size * block_cnt) / sector_size - 1
return (end + 1) * sector_size
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment