Bug 83929

Summary: Improvement of _ROOT_HAS_QUOTA checking in rc.sysinit
Product: [Retired] Red Hat Linux Reporter: SEKINE Tatsuo <sekine.t>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: low    
Version: 8.0CC: rvokal
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: 2005-05-03 13:25:04 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:

Description SEKINE Tatsuo 2003-02-10 05:35:52 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.1) Gecko/20021030 for
VineLinux 0vl6

Description of problem:
quota checking of / partition in rc.sysinit is not cool.
Because AWK have regex functionality, the combination of grep and awk
is not cool.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. see /etc/rc.sysinit    

Actual Results:  rc.sysinit::286

# Possibly update quotas if fsck was run on /.
LC_ALL=C grep -E '[[:space:]]+/[[:space:]]+' /etc/fstab | \
    awk '{ print $4 }' | \
    LC_ALL=C grep -q quota
_ROOT_HAS_QUOTA=$?


Expected Results:  rc.sysinit::286

# Possibly update quotas if fsck was run on /.
LC_ALL=C awk '(($2 == "/") && ($4 ~ /quota/)){found = 1; exit;}
    END{ if (!found) exit 1; }' /etc/fstab
_ROOT_HAS_QUOTA=$?


Additional info:

Comment 1 SEKINE Tatsuo 2005-05-03 13:25:04 UTC
This is meaningless, so I closed this.