#!/bin/bash # SPDX-License-Identifier: (LGPL-2.1 OR LGPL-3.0) # Copyright (C) Western Digital Corporation 2021, all rights reserved. RAPIDO_DIR="$(realpath -e ${0%/*})/.." . "${RAPIDO_DIR}/runtime.vars" _rt_require_dracut_args "$RAPIDO_DIR/autorun/lib/fstests.sh" \ "$RAPIDO_DIR/autorun/fstests_btrfs_zoned.sh" "$@" _rt_require_fstests req_inst=() _rt_require_btrfs_progs req_inst _rt_require_pam_mods req_inst "pam_rootok.so" "pam_limits.so" # need enough memory for two 12G null_blk devices _rt_mem_resources_set "16384M" "$DRACUT" --install "tail blockdev ps rmdir resize dd vim grep find df sha256sum \ strace mkfs shuf free ip su \ which perl awk bc touch cut chmod true false unlink \ mktemp getfattr setfattr chacl attr killall hexdump sync \ id sort uniq date expr tac diff head dirname seq \ basename tee egrep yes mkswap timeout realpath blkdiscard \ fstrim fio logger dmsetup chattr lsattr cmp stat \ dbench /usr/share/dbench/client.txt hostname getconf md5sum \ od wc getfacl setfacl tr xargs sysctl link truncate quota \ repquota setquota quotacheck quotaon pvremove vgremove \ xfs_mkfile xfs_db xfs_io wipefs filefrag losetup \ chgrp du fgrep pgrep tar rev kill duperemove blkzone \ fsverity keyctl openssl /etc/ssl/openssl.cnf \ swapon swapoff xfs_freeze fsck blktrace blkparse \ ${req_inst[*]} ${FSTESTS_SRC}/ltp/* ${FSTESTS_SRC}/src/* \ ${FSTESTS_SRC}/src/log-writes/* \ ${FSTESTS_SRC}/src/aio-dio-regress/*" \ --include "$FSTESTS_SRC" "$FSTESTS_SRC" \ --add-drivers "lzo lzo-rle dm-snapshot dm-flakey btrfs raid6_pq \ loop scsi_debug dm-log-writes xxhash_generic null_blk" \ --modules "base" \ "${DRACUT_RAPIDO_ARGS[@]}" \ "$DRACUT_OUT" || _fail "dracut failed"