From: Ilya Dryomov Date: Sat, 3 Aug 2024 17:31:03 +0000 (+0200) Subject: qa/workunits/rbd: no need to chmod in luks-encryption.sh X-Git-Tag: v17.2.8~169^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=342b0f03d289dd60ab0044ab28ae657ac4985028;p=ceph.git qa/workunits/rbd: no need to chmod in luks-encryption.sh 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 (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 ] --- diff --git a/qa/workunits/rbd/luks-encryption.sh b/qa/workunits/rbd/luks-encryption.sh index 91e8073da7c..665862e3272 100755 --- a/qa/workunits/rbd/luks-encryption.sh +++ b/qa/workunits/rbd/luks-encryption.sh @@ -36,11 +36,9 @@ function test_encryption_format() { # 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