FS/XFS testing framework
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: Mark Harmstone <maharmstone@meta.com>, Zorro Lang <zlang@redhat.com>
Cc: "fstests@vger.kernel.org" <fstests@vger.kernel.org>,
	"zlang@kernel.org" <zlang@kernel.org>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
	Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Subject: Re: [PATCH] btrfs: add test for encoded reads
Date: Thu, 21 Nov 2024 12:43:00 +0800	[thread overview]
Message-ID: <a49ecc5f-2706-4e25-ac99-59adf5232d05@oracle.com> (raw)
In-Reply-To: <aef2abd7-8cda-4e5c-981d-3ac6da04335b@wdc.com>

On 21/11/24 00:31, Johannes Thumshirn wrote:
> On 20.11.24 17:14, Mark Harmstone wrote:
>> On 14/11/24 05:06, Zorro Lang wrote:
>> ...
>>
>>>> It looks like IORING_OP_URING_CMD was added to liburing with version
>>>> 2.2, which came out in June 2022. I don't know whether that's old enough
>>>> that we can just declare it as our minimum version, whether we should be
>>>> probing for the liburing version, whether we should be working round
>>>> this somehow, or what.
>>>>
>>>> Zorro, what do you think?
>>>
>>> 2022 was just 2 years ago, some downstream distributions might use old version.
>>> I think that might be too early to leave a "2 years ago" system out of the using of
>>> latest xfstests :)
>>>
>>> Thanks,
>>> Zorro
>>
>> Okay, no worries. I can change it so that it uses the raw syscalls
>> rather than the liburing helpers. It'll be a lot uglier, but at least
>> it'll work.
>>
>> Johannes, what distro and version are you on? I'll make sure it works on
>> that.
> 
> I'm on openSUSE 15.6 atm.
> 


Sorry for the delayed comment. Systems without the latest headers files
(missing `BTRFS_IOC_ENCODED_READ`) will fail to compile, e.g., OL9 with 
UEK7.

    27 |         struct btrfs_ioctl_encoded_io_args enc;
btrfs_encoded_read.c:27:44: error: storage size of 'enc' isn't known


btrfs_encoded_read.c:43:25: error: 'BTRFS_IOC_ENCODED_READ' undeclared 
(first use in this function); did you mean 'BTRFS_IOC_DEVICES_READY'?
    43 |         ret = ioctl(fd, BTRFS_IOC_ENCODED_READ, &enc);


fstests ./configure may need to manage feature enable?.


Thanks, Anand


> Thanks,
> 	Johannes


  reply	other threads:[~2024-11-21  4:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-11 14:55 [PATCH] btrfs: add test for encoded reads Mark Harmstone
2024-11-12  9:37 ` Johannes Thumshirn
2024-11-13 12:28   ` Mark Harmstone
2024-11-14  5:06     ` Zorro Lang
2024-11-20 16:14       ` Mark Harmstone
2024-11-20 16:31         ` Johannes Thumshirn
2024-11-21  4:43           ` Anand Jain [this message]
2024-11-12  9:47 ` Johannes Thumshirn
2024-11-12 15:23   ` Mark Harmstone

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=a49ecc5f-2706-4e25-ac99-59adf5232d05@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=Johannes.Thumshirn@wdc.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=maharmstone@meta.com \
    --cc=zlang@kernel.org \
    --cc=zlang@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox