Most workunits expect the user to be a member of "disk" group, so we
can pretty much rely on that being the case at this point.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
830cbee7a5f875af04f335266b02ad96e4cd71c4)
Conflicts:
qa/workunits/rbd/luks-encryption.sh [ commit
1d3de19c4005
("tools/rbd: add encryption format support for cloned image")
not in quincy ]
# open encryption with cryptsetup
sudo cryptsetup open $RAW_DEV --type $format cryptsetupdev -d /tmp/passphrase
- sudo chmod 666 /dev/mapper/cryptsetupdev
# open encryption with librbd
LIBRBD_DEV=$(_sudo rbd -p rbd map testimg -t nbd -o encryption-format=$format,encryption-passphrase-file=/tmp/passphrase)
- sudo chmod 666 $LIBRBD_DEV
# write via librbd && compare
dd if=/tmp/testdata1 of=$LIBRBD_DEV conv=fsync bs=1M