APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds RSS Feeds











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version


%used incorrect in df -v

The history of computer programming is just full of these silly assumptions about how big numbers need to be.

We hope that 64 bit computing eliminates this for a while - at least in new code. Most likely, rewritrs of old code will be hasty and 32 bit and even 16 bit assumptions will be left in logic if not in actual storage. If so, silly bugs will continue to pop up over the span of years.

32 bits is a 4GB address space. That "address" could be disk blocks, so of course a 1,024 byte block size is a 4 Terabyte drive and larger block sizes would allow larger drives. A 64 bit number is 18.45 Exabytes. That's 1,048,576 times larger than 18.45 Terabytes, so you could address a incredibly large disk with as small a block size as you liked.


Newsgroups: comp.unix.sco.misc
Subject: Re: df -v command..
References: <3B94F148.6EFB1D86@hotmail.com>
<9n2t9m$lqs$1@odin.john-richard.co.uk>
<3B950FC9.82283AA@hotmail.com> From: spcecdt@deeptht.armory.com (John DuBois) Date: 05 Sep 2001 05:14:59 GMT Message-ID: <3b95b4d3$0$325$8eec23a@newsreader.tycho.net> In article <3B950FC9.82283AA@hotmail.com>, gd <parser99@hotmail.com> wrote: > > >Ian Peattie wrote: >> >> In article <3B94F148.6EFB1D86@hotmail.com>, gd <parser99@hotmail.com> wrote: >> >df -v >> >> Version of OS? ^^^^^^^^^^^^^ >> >> >Mount Dir Filesystem blocks used free %used >> >/ /dev/root 16431534 5546794 10884740 34% >> >/stand /dev/boot 30720 25084 5636 82% >> >/DATA /dev/data01 212266844 85758754 126508090 0% >> > >> >Any explanation as to why my "df -v" command would report 0% used for The problem with %used being calculated incorrectly for large numbers of free blocks (over 2^32/100, or about 43 million) was fixed in 5.0.6, which one hopes is later than the still-unstated version you're using.

(Article continues after the break)













        John
-- 
John DuBois  spcecdt@armory.com.  KC6QKZ/AE  http://www.armory.com./~spcecdt/
 


If this page was useful to you, please help others find it:  





Comments?




More Articles by - Find me on Google+



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


cartoon

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

I am a Kerio reseller. Articles here related to Kerio products reflect my honest opinion, but I do have an obvious interest in selling those products also.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

pavatar.jpg

This post tagged:

       - Programming
       - SCO_OSR5
       - Troubleshooting


















My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide



Buy Kerio from a dealer
who knows tech:
I sell and support

Kerio Connect Mail server, Control, Workspace and Operator licenses and subscription renewals