Bug 83929 - Improvement of _ROOT_HAS_QUOTA checking in rc.sysinit
Improvement of _ROOT_HAS_QUOTA checking in rc.sysinit
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2003-02-10 00:35 EST by SEKINE Tatsuo
Modified: 2014-03-16 22:34 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-03 09:25:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description SEKINE Tatsuo 2003-02-10 00:35:52 EST
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:

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

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

Additional info:
Comment 1 SEKINE Tatsuo 2005-05-03 09:25:04 EDT
This is meaningless, so I closed this.

Note You need to log in before you can comment on or make changes to this bug.