From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib/display display.c
Date: 5 Nov 2007 17:13:55 -0000 [thread overview]
Message-ID: <20071105171355.10622.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2007-11-05 17:13:54
Modified files:
lib/display : display.c
Log message:
attempt to fix human-readable unit output when number of sectors is odd
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/display/display.c.diff?cvsroot=lvm2&r1=1.81&r2=1.82
--- LVM2/lib/display/display.c 2007/11/05 02:10:39 1.81
+++ LVM2/lib/display/display.c 2007/11/05 17:13:54 1.82
@@ -186,17 +186,17 @@
return size_buf;
}
- if (s < 10) {
+ size *= UINT64_C(512);
+
+ if (s < 10)
byte = cmd->current_settings.unit_factor;
- size *= UINT64_C(512);
- } else {
- size /= 2;
+ else {
suffix = 1;
if (cmd->current_settings.unit_type == 'H')
units = UINT64_C(1000);
else
units = UINT64_C(1024);
- byte = units * units * units * units * units;
+ byte = units * units * units * units * units * units;
s = 0;
while (size_str[s] && size < byte)
s++, byte /= units;
next reply other threads:[~2007-11-05 17:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 17:13 agk [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-25 17:14 LVM2/lib/display display.c agk
2011-10-04 12:39 zkabelac
2011-10-03 18:31 zkabelac
2011-09-27 12:34 agk
2011-09-26 13:11 zkabelac
2010-06-28 20:32 wysochanski
2009-07-27 10:18 wysochanski
2008-08-07 14:01 zkabelac
2008-04-10 19:16 agk
2007-11-05 2:10 agk
2007-05-31 20:26 wysochanski
2007-05-31 15:18 wysochanski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071105171355.10622.qmail@sourceware.org \
--to=agk@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.