[Midnight Commander] #2374: show exactly files and free space sizes

47 views
Skip to first unread message

Ticket System

unread,
Oct 1, 2010, 7:00:10 AM10/1/10
to x9...@midnight-commander.org, mc-...@googlegroups.com
#2374: show exactly files and free space sizes
-------------------------+--------------------------------------------------
Reporter: x905 | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 4.7
Component: mc-core | Version: 4.7.4
Severity: no branch | Keywords:
Votes: | Blocking:
Blockedby: |
-------------------------+--------------------------------------------------
1. show exactly free space by bytes at bottom of panel, for example:
"10.130.432/152G (6%)"
2. also then using ctrl-space to calculate size of multiple selected dirs,
from some size [~1gb?] mc starts to round size to KB - dont need to do it

of course, 1 and 2 may be optional

--
Ticket URL: <www.midnight-commander.org/ticket/2374>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Oct 1, 2010, 7:29:57 AM10/1/10
to x9...@midnight-commander.org, mc-...@googlegroups.com
#2374: show exactly files and free space sizes
-------------------------+--------------------------------------------------
Reporter: x905 | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 4.7
Component: mc-core | Version: 4.7.4
Severity: no branch | Resolution:
Keywords: | Votes:
Blocking: | Blockedby:
-------------------------+--------------------------------------------------

Comment(by ossi):

calculating free space precisely makes no sense, as the file system
overhead is dynamic.

apart from that your example is rather obviously in kilobytes, not in
bytes.

generally speaking, more than three significant digits seldomly make much
sense.

in a proper gui, one would have a tooltip above the size label which would
display more precise information than usually on screen. in mc, a click-
activated "filesystem info" dialog could fill that role. don't make it an
option in the classical sense in any case.

--
Ticket URL: <www.midnight-commander.org/ticket/2374#comment:1>

Ticket System

unread,
Oct 1, 2010, 8:34:40 AM10/1/10
to x9...@midnight-commander.org, mc-...@googlegroups.com
#2374: show exactly files and free space sizes
-------------------------+--------------------------------------------------
Reporter: x905 | Owner:
Type: enhancement | Status: new
Priority: trivial | Milestone: 4.7
Component: mc-core | Version: 4.7.4
Severity: no branch | Resolution:
Keywords: | Votes:
Blocking: | Blockedby:
-------------------------+--------------------------------------------------
Changes (by andrew_b):

* priority: major => trivial


--
Ticket URL: <www.midnight-commander.org/ticket/2374#comment:2>

Ticket System

unread,
Oct 1, 2010, 1:20:33 PM10/1/10
to x9...@midnight-commander.org, mc-...@googlegroups.com
#2374: show exactly files and free space sizes
-------------------------+--------------------------------------------------
Reporter: x905 | Owner:
Type: enhancement | Status: new
Priority: trivial | Milestone: 4.7
Component: mc-core | Version: 4.7.4
Severity: no branch | Resolution:
Keywords: | Votes:
Blocking: | Blockedby:
-------------------------+--------------------------------------------------

Comment(by x905):

a may agree with p.1 (but i prefer to see exactly free space in bytes, and
this size should be updated one time per second if changed)

as for p.2 - calculated size of dirs _must_ be in bytes - i want to use it
to compare dirs after copy from removable media or from network (now i use
some script, but it not work on ftp)

--
Ticket URL: <www.midnight-commander.org/ticket/2374#comment:3>

Ticket System

unread,
Oct 1, 2010, 8:22:31 PM10/1/10
to x9...@midnight-commander.org, mc-...@googlegroups.com, go...@polanet.pl
#2374: show exactly files and free space sizes
-------------------------+--------------------------------------------------
Reporter: x905 | Owner:
Type: enhancement | Status: new
Priority: trivial | Milestone: 4.7
Component: mc-core | Version: 4.7.4
Severity: no branch | Resolution:
Keywords: | Votes:
Blocking: | Blockedby:
-------------------------+--------------------------------------------------
Changes (by gotar):

* cc: go...@polanet.pl (added)


Comment:

Replying to [comment:3 x905]:

> i prefer to see exactly free space in bytes, and this size should be
updated one time per second if changed

You obviously have bad habit (every modern device and filesystem allocates
space in blocks) and didn't work over busy network. If you want to see
numbers changing just press ctrl-r, but it doesn't much sense anyway.


> calculated size of dirs _must_ be in bytes - i want to use it to compare
dirs after copy from removable media or from network

F9-c-c-s

And again - bad habit. If you don't trust your transmit media you _must_
use some md5 tool, syncing should be done via rsync or other appropriate
tools.


However the kilobyte_si option could be reimplemented to tristate, e.g.:

sizes=[binary|si|bytes]

where binary means human-readable with 2^10^ units, si human-readable with
10^3^ and bytes as plain numbers.

--
Ticket URL: <www.midnight-commander.org/ticket/2374#comment:4>

Ticket System

unread,
Oct 2, 2010, 5:22:00 AM10/2/10
to x9...@midnight-commander.org, mc-...@googlegroups.com, go...@polanet.pl
#2374: show exactly files and free space sizes
-------------------------+--------------------------------------------------
Reporter: x905 | Owner:
Type: enhancement | Status: new
Priority: trivial | Milestone: 4.7
Component: mc-core | Version: 4.7.4
Severity: no branch | Resolution:
Keywords: | Votes:
Blocking: | Blockedby:
-------------------------+--------------------------------------------------

Comment(by x905):

Replying to [comment:4 gotar]:

> F9-c-c-s

this command dont compare dirs, but only files



> And again - bad habit. If you don't trust your transmit media you _must_
use some md5 tool, syncing should be done via rsync or other appropriate
tools.

i may not trust my memory )
anyway size of dir is good to be displayed exactly as user want: in bytes,
kb, mb ... (as option)

--
Ticket URL: <www.midnight-commander.org/ticket/2374#comment:5>

Ticket System

unread,
Oct 29, 2011, 12:47:36 PM10/29/11
to x9...@midnight-commander.org, mc-...@googlegroups.com, go...@polanet.pl
#2374: show exactly files and free space sizes
----------------------------+---------------------------------------
Reporter: x905 | Owner:
Type: enhancement | Status: new
Priority: trivial | Milestone: Future Releases
Component: mc-core | Version: 4.7.4
Resolution: | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
----------------------------+---------------------------------------
Changes (by andrew_b):

* branch_state: => no branch
* milestone: 4.7 => Future Releases


--
Ticket URL: <www.midnight-commander.org/ticket/2374#comment:6>

Reply all
Reply to author
Forward
0 new messages