<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/megactl/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/megactl/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 14 Dec 2007 20:55:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/megactl/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>Size over 1TiB incorrectly reported</title><link>https://sourceforge.net/p/megactl/feature-requests/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joshua Daniel Franklin</dc:creator><pubDate>Fri, 14 Dec 2007 20:55:45 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net54952ef801b0a5a5e92f48cefd2284d168868a50</guid></item></channel></rss>