Red Hat Bugzilla – Bug 109972
diskcheck should also look at inodes
Last modified: 2007-11-30 17:10:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b)
Description of problem:
presently only bytes free are checked.
A disk can also become full by running out of inodes.
Checking inodes would be a useful enhancement for diskcheck.
I have a diff for a working replacement that I will provide.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. use up all your inodes and note that diskcheck just doesn't care
Actual Results: disk is no longer writable.
Expected Results: diskcheck should warn as inodes start running low
Created attachment 96021 [details]
revised diskcheck monitors inodes
Since the output of df is parsed the same whether checking inodes or bytes, I
made the old paring section into a function, and called it once for bytes then
again for inodes.
Since this approach reoders the file, the diff tends to obsure rather than
calrify the change. So I'm just posting the revised file instead of the diff
many thx! :-)