Return-Path: Received: from outgoing.fripost.org (giraff.fripost.org [IPv6:2a00:1c20:4089:126c:300f:e2a1:9840:5351]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sat, 4 Aug 2018 22:40:42 +0200 (CEST) Date: Sun, 5 Aug 2018 04:40:35 +0800 From: Guilhem Moulin Message-ID: <20180804204035.GA19119@localhost.localdomain> References: <8cc41ecf-6a13-8dc5-2618-97300c46397b@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <8cc41ecf-6a13-8dc5-2618-97300c46397b@gmail.com> Subject: Re: [dm-crypt] Test suite is now FS-dependent (Re: cryptsetup 2.0.4) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Milan Broz Cc: dm-crypt --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, FWIW, =E2=80=98tests/blockwise-compat=E2=80=99 doesn't work consistently on= all file systems. With BSIZE=3D$(stat -c "%o" $LOCAL_FILE) ## 4096 `./unit-utils-io $LOCAL_FILE read_buffer $((BSIZE-1))` fails with ext4 (on read()) and tmpfs (on open(O_DIRECT)), but succeeds with btrfs (and possibly other file systems). The test-suite doesn't pass if that test succeeds. ## ext4 $ strace -e trace=3Dopenat,read ./unit-utils-io $LOCAL_FILE read_buffer= $((BSIZE-1)) [=E2=80=A6] openat(AT_FDCWD, "./blocwise_localfile", O_RDONLY|O_DIRECT) =3D 3 read(3, 0x55914c895000, 4095) =3D -1 EINVAL (Invalid argument) +++ exited with 1 +++ ## tmpfs $ strace -e trace=3Dopenat,read ./unit-utils-io $LOCAL_FILE read_buffer= $((BSIZE-1)) [=E2=80=A6] openat(AT_FDCWD, "./blocwise_localfile", O_RDONLY|O_DIRECT) =3D -1 EINV= AL (Invalid argument) Failed to open ./blocwise_localfile. +++ exited with 1 +++ ## btrfs $ strace -e trace=3Dopenat,read ./unit-utils-io $LOCAL_FILE read_buffer= $((BSIZE-1)) [=E2=80=A6] openat(AT_FDCWD, "./blocwise_localfile", O_RDONLY|O_DIRECT) =3D 3 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0= \0"..., 4095) =3D 4095 +++ exited with 0 +++ Just so you know :-) Cheers, --=20 Guilhem. --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERpy6p3b9sfzUdbME05pJnDwhpVIFAltmDz4ACgkQ05pJnDwh pVJMVA/6Ax2npDHNBERZRnK1bUVC8NHQmETyIP1/oeqmppAAD1yQS9YKxZ5uudxB 7TA75do30XVxd254wraYNPXXXPhX4ZbzTgfQXzUkJGbj1h6/kbomuDrhMHdEuO3T 465pDxxDw6pIqDTS3MFv+FN2TgR6cWu/THDfnfS8F850zvh9Ugrz0Z4J2HnKzmCG Twhjq5QyqYe/oQFSN+2TmX0AokZW8SCqWbFElU7TdUsR9ezpPTMF3N7r/0SmQfVK 49WbxJ7Epy+x7bu8BASbO9UzCDdVd5aWWd2gF35YFwpHREoshhkDgTLExvl6F4kC SZeGqETiEWBxWVPGnrhPsf5u2jqoiaFaF3WdDJkDAAzTdTbt6+7mXQUpjZ8CD248 COH931W1yxFo04pK/aWltcvMgtuV1riIHN/WZD4C42DKaqaYfdXs+C6wGjqz4ZEL u6qV9uNuJqCpqV4obBTP07vx06uTGrMyIXygcIkg8LPu7mLov/9IiCvh2pfTdGB/ 4JR/O9LEsPij0UMroPwZFauCnmLh6jObIe+gXEkUx8XxALokXvo0SLFsUa+AlvHW 6Key+4vhdLTqxSjBclRtOVwtQhNTo4QjBey42qmx4hEp9XL2RbIMxVmLFb0/jFy8 ABBVHlZrkzwnbr9yFl/a3gCSiblIjrYr58ZuOXtcZVypI9/oUBk= =V7/r -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--