Thread (15 messages) 15 messages, 3 authors, 2021-07-25
STALE1827d REVIEWED: 1 (1M)

[PATCH 1/7] common/quota: allow removing quota options entirely in _qmount_option

From: Christoph Hellwig <hch@lst.de>
Date: 2021-07-22 07:39:14
Also in: fstests
Subsystem: the rest · Maintainer: Linus Torvalds

Add support for dropping all quota related options instead of only
overriding them with new ones to _qmount_option.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
---
 common/quota | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/quota b/common/quota
index 883a28a2..7fa1a61a 100644
--- a/common/quota
+++ b/common/quota
@@ -263,7 +263,9 @@ _qmount_option()
 			-e 's/prjquota/quota/g'`
 	fi
 	# Ensure we have the given quota option - duplicates are fine
-	export MOUNT_OPTIONS="$MOUNT_OPTIONS -o $OPTS"
+	if [ -n "$OPTS" ]; then
+		export MOUNT_OPTIONS="$MOUNT_OPTIONS -o $OPTS"
+	fi
 	echo "MOUNT_OPTIONS = $MOUNT_OPTIONS" >>$seqres.full
 }
 
-- 
2.30.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help