Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 6 Aug 2018 12:04:31 +0200 (CEST) References: <8cc41ecf-6a13-8dc5-2618-97300c46397b@gmail.com> <20180804204035.GA19119@localhost.localdomain> <575786ad-0507-3540-832b-3098c83add58@gmail.com> From: Ondrej Kozina Message-ID: Date: Mon, 6 Aug 2018 12:04:28 +0200 MIME-Version: 1.0 In-Reply-To: <575786ad-0507-3540-832b-3098c83add58@gmail.com> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Language: en-MW Content-Transfer-Encoding: 8bit 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 , Guilhem Moulin Cc: dm-crypt On 08/05/2018 10:18 AM, Milan Broz wrote: > > On 04/08/18 22:40, Guilhem Moulin wrote: >> Hi, >> >> FWIW, ‘tests/blockwise-compat’ doesn't work consistently on all file >> systems. With >> >> BSIZE=$(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. We'll add some less pedantic mode for tests related to misaligned direct I/O on filesystems. > > Ah, btrfs. Until now it was nfs nuances that breaks everything :-) > > (Direct-io should not be able to read buffer not aligned to block/page boundary, > but btrfs has apparently disagrees.) Not only misaligned read. It passes even for misaligned direct write! I'm getting old for this... :) Anyway, thank you for the report! O.