[RFE][PATCH] Display free space on device in panels (was: Fearure request)

Jindrich Novy jnovy at redhat.com
Wed Dec 28 16:23:35 UTC 2005


Hello Sergei, mc-devel,

On Wed, 2005-12-28 at 15:33 +0100, Jindrich Novy wrote:
> the following patch adds support for displaying an amount of free
> space figured by stat-ing the current directory. The free space is
> displayed like this:
> 
> 3509M (16%) of 21G
> 
> in the status separator line on each panel. I consider this feature
> helpful as well.

The previous patch contained a mistake that it only displayed free space
calculated from incorrect panel and tried to stat even non-local
filesystems. The attached patch does the same, but better.

Jindrich

-- 
Jindrich Novy <jnovy at redhat.com>, http://people.redhat.com/jnovy/
(o_                                                           _o)
//\      The worst evil in the world is refusal to think.     //\
V_/_                                                         _\_V

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc-showfree.patch
Type: text/x-patch
Size: 2403 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20051228/0af33bbf/attachment.bin>


More information about the mc-devel mailing list