Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

oo-init-quota: allow tab delimiters in /etc/fstab #6353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charlessimpson
Copy link

Allow tab delimiters in /etc/fstab when adding quota options to the OpenShift mountpoint.

Fixes #6352.

Allow tab delimiters in /etc/fstab when adding quota options to the
OpenShift mountpoint.
@dinhxuanvu
Copy link
Member

[test]

@@ -79,11 +79,11 @@ QUOTA_OPTIONS=usrjquota=aquota.user,jqfmt=vfsv0
function update_fstab() {
# ORIGIN_MOUNTPOINT=$1

if ! tr -s ' ' < /etc/fstab | egrep "^[^#].+ $1 ext4 [^ ]+$QUOTA_OPTIONS "; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting: [^ ]+ causes this old regex to fail to match if the quota options are not preceded by other options, so this change avoids adding duplicate $QUOTA_OPTIONS in that case.

@tiwillia
Copy link
Member

Lets re-[test], as the test failures are unrelated.

@openshift-bot
Copy link

Evaluated for online test up to da1b36c

@openshift-bot
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants