Correct volume size calculation to fix broken volume partitioning using nbd

Fixes #129.
Correct volume size calculation to fix broken volume partitioning using loopback

Fixes #127.