<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/megactl/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/megactl/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/megactl/feature-requests/</id><updated>2007-12-14T20:55:45Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Size over 1TiB incorrectly reported</title><link href="https://sourceforge.net/p/megactl/feature-requests/1/" rel="alternate"/><published>2007-12-14T20:55:45Z</published><updated>2007-12-14T20:55:45Z</updated><author><name>Joshua Daniel Franklin</name><uri>https://sourceforge.net/u/joshuadfranklin/</uri></author><id>https://sourceforge.net54952ef801b0a5a5e92f48cefd2284d168868a50</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here you go... by the way, df doesn't seem to mind&lt;br /&gt;
mixing binary and decimal:&lt;/p&gt;
&lt;p&gt;$ df -h |grep T&lt;br /&gt;
/dev/sdb1             1.8T  234G  1.5T  14% /data&lt;/p&gt;
&lt;p&gt;--- Jefferson Ogata wrote:&lt;br /&gt;
&amp;gt; On 2007-12-14 18:57, Joshua Daniel Franklin wrote:&lt;br /&gt;
&amp;gt; &amp;gt; No problem. By the way I think I may have found a small&lt;br /&gt;
&amp;gt; &amp;gt; bug. When I run megasasrpt it tells me the size of disk1&lt;br /&gt;
&amp;gt; &amp;gt; is:&lt;br /&gt;
&amp;gt; &amp;gt; &lt;br /&gt;
&amp;gt; &amp;gt; a0d1        1TiB RAID 5   1x3  optimal&lt;br /&gt;
&amp;gt; &amp;gt; &lt;br /&gt;
&amp;gt; &amp;gt; But in fact it's more like 1.8Tib which MegaCli tells me:&lt;br /&gt;
&amp;gt; &amp;gt; &lt;br /&gt;
&amp;gt; &amp;gt; Name:Virtual Disk 1&lt;br /&gt;
&amp;gt; &amp;gt; RAID Level: Primary-5, Secondary-0, RAID Level Qualifier-3&lt;br /&gt;
&amp;gt; &amp;gt; Size:1906688MB&lt;br /&gt;
&amp;gt; &amp;gt; State: Optimal&lt;br /&gt;
&amp;gt; &amp;gt; Stripe Size: 64kB&lt;br /&gt;
&amp;gt; &amp;gt; Number Of Drives:3&lt;br /&gt;
&amp;gt; &lt;br /&gt;
&amp;gt; Yeah, not sure much a bug as a formatting problem. 1.8 TiB rounds&lt;br /&gt;
&amp;gt; down&lt;br /&gt;
&amp;gt; to 1TiB. I never came up with a good way to handle this--on the one&lt;br /&gt;
&amp;gt; hand, I don't like truncating to an integer, on the other, the notion&lt;br /&gt;
&amp;gt; of&lt;br /&gt;
&amp;gt; combining decimal fractions with a binary unit seems wrong. I thought&lt;br /&gt;
&amp;gt; of&lt;br /&gt;
&amp;gt; using up to four digits and the next lower unit when that fits, so in&lt;br /&gt;
&amp;gt; this case 1862GiB, but that uses an extra character. In this case,&lt;br /&gt;
&amp;gt; however, it seems warranted.&lt;br /&gt;
&amp;gt; &lt;br /&gt;
&amp;gt; I will try to fix that soon--can you add a support request on&lt;br /&gt;
&amp;gt; sourceforge so I don't forget? (If you can code, feel free to add a&lt;br /&gt;
&amp;gt; patch (the code is in friendlySize() in megactl.c ;^). There may be a&lt;br /&gt;
&amp;gt; little column-width wrangling needed in some other areas.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>