Hi Markus et al,
I have an enormous file:
-rw-rw-r-- 4 jrn jrn 14165272364 Jan 7 2011 svn-kde-0-1200000.xz
-rw-rw-r-- 4 jrn jrn 14165272364 Jan 7 2011 svn-kde-0:1200000.xz
As you can see, it has two filesystem entries because I am scared of
deleting one by mistake. They point to the same inode, but gdmap
draws them as separate rectangles.
I made a patch to distribute the space between the links, which I'm
attaching. Infelicities:
- when the size doesn't evenly divide the number of links, it
rounds down. Would using DIV_ROUND_UP() be better?
- there is no visual indication that a file has multiple links
and has been treated specially, so this might be confusing.
Maybe they should have a different color and show the number
of links in the status bar when it is nonzero.
Even without those refinements, I think it's an improvement.
Thoughts?
Originally reported at http://bugs.debian.org/665777
Thanks for gdmap --- I find it very useful.
Sincerely,
Jonathan
gdmap: split size of multiply linked files among hard links