aboutsummaryrefslogtreecommitdiff
path: root/cli-tests/t_not_supported.sh
blob: 53a096af41cd17361a78a4b271bc32ef7af4a4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Test that fscrypt fails when the filesystem doesn't support encryption.

cd "$(dirname "$0")"
. common.sh

_print_header "Mount tmpfs"
umount "$MNT"
mount tmpfs -t tmpfs -o size=128m "$MNT"

_print_header "Create fscrypt metadata on tmpfs"
fscrypt setup "$MNT"

_print_header "Try to encrypt a directory on tmpfs"
mkdir "$MNT/dir"
_expect_failure "fscrypt encrypt '$MNT/dir'"