Canop/dysk

display free/used inodes

daniejstriata opened this issue Β· 17 comments

Can you please add option to add a column for free/used inodes?

Canop commented

In the JSON output, why not, but is this a so frequent concern that you'd also want it in the table view ?

only Display inodes column if I ask for it?

I run lfs as part of my motd. It would be good for me to show inodes issues to admins logging in,

Canop commented

I'll probably do it, as it's quite easy

Canop commented

Not 100% sure about the presentation but I might settle for this:

image

I've also tested with % but it doesn't really help IMO:

image

There are other ways to get the exact inodes total and used. I'd be happy just to see the percentage of inodes in use.

Canop commented

You mean your opinion would be to choose just "free inodes" and "inodes use%" ?

Yes. I've never worried about inodes until there are none left :-) I actually ran into an XFS volume today that started complaining about inodes. I've not seen xfs having inode issues before.

Canop commented

As you can see, it's not really my current concern:
image

Canop commented

In a future versions, I'll probably make it possible to finely decide what cols to display...

Canop commented

(depending on whether I have another user or not ^^)

That example looks great. I would even drop the free inodes column.

Choosing column in future could be helpful. Maybe have a "lite" and "full" option?

full:

β”Œβ”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ idβ”‚ dev β”‚           filesystem            β”‚diskβ”‚typeβ”‚usedβ”‚  use%   β”‚freeβ”‚sizeβ”‚mount pointβ”‚
β”œβ”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚150β”‚253:1β”‚/dev/mapper/root                 β”‚LVM β”‚xfs β”‚26G β”‚59% β–ˆβ–ˆβ–ˆ  β”‚ 18Gβ”‚44G β”‚/          β”‚
β”‚112β”‚253:1β”‚/dev/mapper/root                 β”‚LVM β”‚xfs β”‚26G β”‚59% β–ˆβ–ˆβ–ˆ  β”‚ 18Gβ”‚44G β”‚/var/tmp   β”‚
β”‚169β”‚253:3β”‚/dev/mapper/home                 β”‚LVM β”‚xfs β”‚14G β”‚66% β–ˆβ–ˆβ–ˆβ–Ž β”‚7.4Gβ”‚21G β”‚/home      β”‚
β”‚166β”‚252:1β”‚/dev/vda1                        β”‚HDD β”‚ext4β”‚287Mβ”‚28% β–ˆβ–   β”‚736Mβ”‚1.0Gβ”‚/boot      β”‚
β””β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

lite:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           filesystem            β”‚typeβ”‚usedβ”‚  use%   β”‚freeβ”‚sizeβ”‚mount pointβ”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚/dev/mapper/root                 β”‚xfs β”‚26G β”‚59% β–ˆβ–ˆβ–ˆ  β”‚ 18Gβ”‚44G β”‚/          β”‚
β”‚/dev/mapper/root                 β”‚    β”‚26G β”‚59% β–ˆβ–ˆβ–ˆ  β”‚ 18Gβ”‚44G β”‚/var/tmp   β”‚
β”‚/dev/mapper/home                 β”‚xfs β”‚14G β”‚66% β–ˆβ–ˆβ–ˆβ–Ž β”‚7.4Gβ”‚21G β”‚/home      β”‚
β”‚/dev/vda1                        β”‚ext4β”‚287Mβ”‚28% β–ˆβ–   β”‚736Mβ”‚1.0Gβ”‚/boot      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Canop commented

Let's see:

image

That looks good. What if you add the new inodes column after the use%

Canop commented

I don't want to mix parts in bytes and parts in inodes, that would be ambiguous

Canop commented

I'll go with this for now (testing with a fs without inode):

image

Canop commented

Released. I've spent more time than expected on the tests and small details...

I appreciate! Thank you.