Bug 109972

Summary: diskcheck should also look at inodes
Product: [Fedora] Fedora Reporter: Karl DeBisschop <kdebisschop>
Component: diskcheckAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: p.van.egdom
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-12-05 14:04:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
revised diskcheck monitors inodes none

Description Karl DeBisschop 2003-11-13 16:09:46 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b)
Gecko/20031110 Firebird/0.7+

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):
1.4-5

How reproducible:
Always

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

Additional info:

Comment 1 Karl DeBisschop 2003-11-17 18:25:09 UTC
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

Comment 2 Harald Hoyer 2003-12-05 14:04:18 UTC
many thx! :-)