All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guilhem Moulin <guilhem@fripost.org>
To: Milan Broz <gmazyland@gmail.com>
Cc: dm-crypt <dm-crypt@saout.de>
Subject: Re: [dm-crypt] Test suite is now FS-dependent (Re: cryptsetup 2.0.4)
Date: Sun, 5 Aug 2018 04:40:35 +0800	[thread overview]
Message-ID: <20180804204035.GA19119@localhost.localdomain> (raw)
In-Reply-To: <8cc41ecf-6a13-8dc5-2618-97300c46397b@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]

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.

    ## ext4
    $ strace -e trace=openat,read ./unit-utils-io $LOCAL_FILE read_buffer $((BSIZE-1))
    […]
    openat(AT_FDCWD, "./blocwise_localfile", O_RDONLY|O_DIRECT) = 3
    read(3, 0x55914c895000, 4095)           = -1 EINVAL (Invalid argument)
    +++ exited with 1 +++

    ## tmpfs
    $ strace -e trace=openat,read ./unit-utils-io $LOCAL_FILE read_buffer $((BSIZE-1))
    […]
    openat(AT_FDCWD, "./blocwise_localfile", O_RDONLY|O_DIRECT) = -1 EINVAL (Invalid argument)
    Failed to open ./blocwise_localfile.
    +++ exited with 1 +++

    ## btrfs
    $ strace -e trace=openat,read ./unit-utils-io $LOCAL_FILE read_buffer $((BSIZE-1))
    […]
    openat(AT_FDCWD, "./blocwise_localfile", O_RDONLY|O_DIRECT) = 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) = 4095
    +++ exited with 0 +++

Just so you know :-)
Cheers,
-- 
Guilhem.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-08-04 20:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-03 10:59 [dm-crypt] [ANNOUNCE] cryptsetup 2.0.4 Milan Broz
2018-08-04 20:40 ` Guilhem Moulin [this message]
2018-08-05  8:18   ` [dm-crypt] Test suite is now FS-dependent (Re: cryptsetup 2.0.4) Milan Broz
2018-08-06 10:04     ` Ondrej Kozina
2018-08-07 15:13     ` [dm-crypt] Test suite is now FS-dependent Guilhem Moulin
2018-08-08  9:10       ` Ondrej Kozina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180804204035.GA19119@localhost.localdomain \
    --to=guilhem@fripost.org \
    --cc=dm-crypt@saout.de \
    --cc=gmazyland@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.