diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-06-24 04:11:57 +0100 |
|---|---|---|
| committer | andy <github@anarkystic.com> | 2010-06-24 04:11:57 +0100 |
| commit | 090186c12f3b6985fea6e01e23c3366bf130e5ea (patch) | |
| tree | ffacc6eba02454d2c96dd685001c1fc504895353 | |
| parent | 49acf8b49accca3f43249e11f3c665b1245f6572 (diff) | |
| download | nova-090186c12f3b6985fea6e01e23c3366bf130e5ea.tar.gz nova-090186c12f3b6985fea6e01e23c3366bf130e5ea.tar.xz nova-090186c12f3b6985fea6e01e23c3366bf130e5ea.zip | |
fix sectors off by one
| -rw-r--r-- | nova/compute/disk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/disk.py b/nova/compute/disk.py index f6a716e65..acaac89af 100644 --- a/nova/compute/disk.py +++ b/nova/compute/disk.py @@ -56,9 +56,9 @@ def partition(infile, outfile, local_bytes=0, local_type='ext2', execute=None): mbr_last = 62 # a primary_first = mbr_last + 1 # b - primary_last = primary_first + primary_sectors # c + primary_last = primary_first + primary_sectors - 1 # c local_first = primary_last + 1 # d - local_last = local_first + local_sectors # e + local_last = local_first + local_sectors - 1 # e last_sector = local_last # e # create an empty file |
