cli-tests/t_not_supported.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | # Test that fscrypt fails when the filesystem doesn't support encryption. |
| 4 | |
| 5 | cd "$(dirname "$0")" |
| 6 | . common.sh |
| 7 | |
| 8 | _print_header "Mount tmpfs" |
| 9 | umount "$MNT" |
| 10 | mount tmpfs -t tmpfs -o size=128m "$MNT" |
| 11 | |
| 12 | _print_header "Try to create fscrypt metadata on tmpfs" |
| 13 | _expect_failure "fscrypt setup --quiet '$MNT'" |
| 14 | |
| 15 | _print_header "Try to encrypt a directory on tmpfs" |
| 16 | mkdir "$MNT/dir" |
| 17 | _expect_failure "fscrypt encrypt '$MNT/dir'" |