dmsetup remove_all wipefs -a --force /dev/sdb1 wipefs -a --force /dev/sdb2 wipefs -a --force /dev/sdb3 wipefs -a --force /dev/sdb4 mkfs -t ext4 -q -F /dev/sdb1 mkfs -t ext4 -q -F /dev/sdb3 mkfs -t ext4 -q -F /dev/sdb2 mkfs -t ext4 -q -F /dev/sdb4 mkdir -p /fs/sdb1 mount -t ext4 /dev/sdb1 /fs/sdb1 mkdir -p /fs/sdb2 mount -t ext4 /dev/sdb2 /fs/sdb2 mkdir -p /fs/sdb3 mount -t ext4 /dev/sdb3 /fs/sdb3 mkdir -p /fs/sdb4 mount -t ext4 /dev/sdb4 /fs/sdb4 mkdir -p /cifs/sdb1 timeout 5m mount -t cifs -o vers=3.0 -o user=root,password=pass //localhost/fs/sdb1 /cifs/sdb1 mkdir -p /cifs/sdb2 timeout 5m mount -t cifs -o vers=3.0 -o user=root,password=pass //localhost/fs/sdb2 /cifs/sdb2 mkdir -p /cifs/sdb3 timeout 5m mount -t cifs -o vers=3.0 -o user=root,password=pass //localhost/fs/sdb3 /cifs/sdb3 mkdir -p /cifs/sdb4 timeout 5m mount -t cifs -o vers=3.0 -o user=root,password=pass //localhost/fs/sdb4 /cifs/sdb4 mount /dev/sdb1 /fs/sdb1 mkdir -p /smbv3//cifs/sdb1 export FSTYP=cifs export TEST_DEV=//localhost/fs/sdb1 export TEST_DIR=/smbv3//cifs/sdb1 export CIFS_MOUNT_OPTIONS=-ousername=root,password=pass,noperm,vers=3.0,mfsymlinks,actimeo=0 echo generic/591 ./check -E tests/cifs/exclude.incompatible-smb3.txt -E tests/cifs/exclude.very-slow.txt generic/591