diff options
author | Karel Zak | 2006-12-07 00:26:00 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:26:00 +0100 |
commit | f0c8eda12c410fb56630de47f6d50cac15f7529a (patch) | |
tree | 4531e56b1873ce6b4e5db4bf4684f5daa4e1257e /partx | |
parent | Imported from util-linux-2.11t tarball. (diff) | |
download | kernel-qcow2-util-linux-f0c8eda12c410fb56630de47f6d50cac15f7529a.tar.gz kernel-qcow2-util-linux-f0c8eda12c410fb56630de47f6d50cac15f7529a.tar.xz kernel-qcow2-util-linux-f0c8eda12c410fb56630de47f6d50cac15f7529a.zip |
Imported from util-linux-2.11u tarball.
Diffstat (limited to 'partx')
-rw-r--r-- | partx/gpt.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/partx/gpt.c b/partx/gpt.c index 244320b3b..64ef15eb9 100644 --- a/partx/gpt.c +++ b/partx/gpt.c @@ -599,7 +599,8 @@ read_gpt_pt (int fd, struct slice all, struct slice *sp, int ns) n++; } else { sp[n].start = __le64_to_cpu(ptes[i].starting_lba); - sp[n].size = __le64_to_cpu(ptes[i].ending_lba); + sp[n].size = __le64_to_cpu(ptes[i].ending_lba) - + __le64_to_cpu(ptes[i].starting_lba) + 1; last_used_index=n; n++; } @@ -608,23 +609,3 @@ read_gpt_pt (int fd, struct slice all, struct slice *sp, int ns) free (gpt); return last_used_index+1; } - - -/* - * Overrides for Emacs so that we follow Linus's tabbing style. - * Emacs will notice this stuff at the end of the file and automatically - * adjust the settings for this buffer only. This must remain at the end - * of the file. - * --------------------------------------------------------------------------- - * Local variables: - * c-indent-level: 4 - * c-brace-imaginary-offset: 0 - * c-brace-offset: -4 - * c-argdecl-indent: 4 - * c-label-offset: -4 - * c-continued-statement-offset: 4 - * c-continued-brace-offset: 0 - * indent-tabs-mode: nil - * tab-width: 8 - * End: - */ |