mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/rc: Enhance _exclude_scratch_mount_option to handle multiple options
Enhance _exclude_scratch_mount_option() function to normalize mount options. Now it can understand and extract real mount option from string like "-o opt1,opt2 -oopt3". And now we do word grep to handle mount options like noinode_cache and inode_cache. Finally, allow it to accept multiple options at the same time. No need for multiple _exclude_scratch_mount_option lines now Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
+2
-4
@@ -41,10 +41,8 @@ _supported_os Linux
|
||||
_require_scratch
|
||||
# this test needs no journal to be loaded, skip on journal related mount
|
||||
# options, otherwise mount would fail with "-o noload" mount option
|
||||
_exclude_scratch_mount_option "data="
|
||||
_exclude_scratch_mount_option "commit="
|
||||
_exclude_scratch_mount_option "journal_checksum"
|
||||
_exclude_scratch_mount_option "journal_async_commit"
|
||||
_exclude_scratch_mount_option "data" "commit" "journal_checksum" \
|
||||
"journal_async_commit"
|
||||
|
||||
rm -f $seqres.full
|
||||
_scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seqres.full 2>&1
|
||||
|
||||
Reference in New Issue
Block a user