Files
apfstests/tests/generic/398.out
T
David Oberhollenzer 62de87749a generic/398: Accept failing with EPERM in addition to ENOKEY for rename without key
Some filesystems (e.g. UBIFS) fail with EPERM when trying to move a
file into an encrypted directory via cross rename, without having
access to the encryption key.

Since rename is perfectly allowed to return EPERM, which is also
tested for, and no precise specification seems to exist that
clarifies when to expect EPERM and when ENOKEY, this patch modifies
the generic/398 test to accept both, for the test case where the key
is not available.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
2017-06-08 10:53:27 +08:00

46 lines
1.4 KiB
Plaintext

QA output created by 398
*** Link encrypted <= encrypted ***
ln: failed to create hard link 'SCRATCH_MNT/edir2/efile1' => 'SCRATCH_MNT/edir1/efile1': Operation not permitted
*** Rename encrypted => encrypted ***
mv: cannot move 'SCRATCH_MNT/edir1/efile1' to 'SCRATCH_MNT/edir2/efile1': Operation not permitted
*** Link unencrypted <= encrypted ***
ln: failed to create hard link 'SCRATCH_MNT/edir1/ufile' => 'SCRATCH_MNT/udir/ufile': Operation not permitted
*** Rename unencrypted => encrypted ***
mv: cannot move 'SCRATCH_MNT/udir/ufile' to 'SCRATCH_MNT/edir1/ufile': Operation not permitted
*** Link encrypted <= unencrypted ***
'SCRATCH_MNT/udir/efile1' => 'SCRATCH_MNT/edir1/efile1'
*** Rename encrypted => unencrypted ***
'SCRATCH_MNT/edir1/efile1' -> 'SCRATCH_MNT/udir/efile1'
*** Exchange encrypted <=> encrypted ***
Operation not permitted
*** Exchange unencrypted <=> encrypted ***
Operation not permitted
*** Exchange encrypted <=> unencrypted ***
Operation not permitted
*** Special file tests ***
'SCRATCH_MNT/edir1/fifo' -> 'SCRATCH_MNT/edir2/fifo'
'SCRATCH_MNT/edir2/fifo' -> 'SCRATCH_MNT/udir/fifo'
'SCRATCH_MNT/udir/fifo' -> 'SCRATCH_MNT/edir1/fifo'
'SCRATCH_MNT/edir2/fifo' => 'SCRATCH_MNT/edir1/fifo'
*** Exchange encrypted <=> encrypted without key ***
Operation not permitted
*** Exchange encrypted <=> unencrypted without key ***
Operation not permitted