Bug 83929 - Improvement of _ROOT_HAS_QUOTA checking in rc.sysinit
Improvement of _ROOT_HAS_QUOTA checking in rc.sysinit
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
8.0
All Linux
low Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
: FutureFeature
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2005-05-03 09:25:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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:
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 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.