fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] common/quota: Fix _qmount_options
@ 2019-11-05 13:43 Jan Kara
  0 siblings, 0 replies; only message in thread
From: Jan Kara @ 2019-11-05 13:43 UTC (permalink / raw)
  To: fstests; +Cc: Jan Kara

_qmount_options didn't properly substitute usrjquota and grpjquota
options. Fix the regular expression.

Signed-off-by: Jan Kara <jack@suse.cz>
---
 common/quota | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/quota b/common/quota
index 6d1948bf357e..4e07fef15697 100644
--- a/common/quota
+++ b/common/quota
@@ -229,10 +229,10 @@ _qmount_option()
 	export MOUNT_OPTIONS=`echo $MOUNT_OPTIONS \
 	| sed   -e 's/uquota/QUOTA/g'      \
 		-e 's/usrquota/QUOTA/g'    \
-		-e 's/usrjquota=[^, ]/QUOTA/g' \
+		-e 's/usrjquota=[^, ]*/QUOTA/g' \
 		-e 's/gquota/QUOTA/g'      \
 		-e 's/grpquota/QUOTA/g'    \
-		-e 's/grpjquota=[^, ]/QUOTA/g' \
+		-e 's/grpjquota=[^, ]*/QUOTA/g' \
 		-e 's/\bpquota/QUOTA/g'    \
 		-e 's/prjquota/QUOTA/g'    \
 		-e 's/quota/QUOTA/g'       \
-- 
2.16.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-05 13:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 13:43 [PATCH] common/quota: Fix _qmount_options Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).