dmsetup remove_all wipefs -a --force /dev/sda1 wipefs -a --force /dev/sda2 wipefs -a --force /dev/sda3 wipefs -a --force /dev/sda4 mkfs -t ext4 -q -F /dev/sda1 mkfs -t ext4 -q -F /dev/sda3 mkfs -t ext4 -q -F /dev/sda2 mkfs -t ext4 -q -F /dev/sda4 mkdir -p /fs/sda1 modprobe ext4 mount -t ext4 /dev/sda1 /fs/sda1 mkdir -p /fs/sda2 mount -t ext4 /dev/sda2 /fs/sda2 mkdir -p /fs/sda3 mount -t ext4 /dev/sda3 /fs/sda3 mkdir -p /fs/sda4 mount -t ext4 /dev/sda4 /fs/sda4 mkdir -p /cifs/sda1 timeout 5m mount -t cifs -o vers=2.0 -o user=root,password=pass //localhost/fs/sda1 /cifs/sda1 mkdir -p /cifs/sda2 timeout 5m mount -t cifs -o vers=2.0 -o user=root,password=pass //localhost/fs/sda2 /cifs/sda2 mkdir -p /cifs/sda3 timeout 5m mount -t cifs -o vers=2.0 -o user=root,password=pass //localhost/fs/sda3 /cifs/sda3 mkdir -p /cifs/sda4 timeout 5m mount -t cifs -o vers=2.0 -o user=root,password=pass //localhost/fs/sda4 /cifs/sda4 mount /dev/sda1 /fs/sda1 mkdir -p /smbv2//cifs/sda1 export FSTYP=cifs export TEST_DEV=//localhost/fs/sda1 export TEST_DIR=/smbv2//cifs/sda1 export CIFS_MOUNT_OPTIONS=-ousername=root,password=pass,noperm,vers=2.0,mfsymlinks,actimeo=0 echo generic/074 ./check -E tests/cifs/exclude.incompatible-smb2.txt -E tests/cifs/exclude.very-slow.txt generic/074