Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Vincent Fu <vincentfu@gmail.com>
To: Damien Le Moal <Damien.LeMoal@wdc.com>,
	Jens Axboe <axboe@kernel.dk>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Cc: Dmitry Fomichev <Dmitry.Fomichev@wdc.com>
Subject: Re: [PATCH 0/4] Generalize zonemode=zbd
Date: Tue, 7 Apr 2020 21:08:10 -0400	[thread overview]
Message-ID: <43ac3364-5d63-0a89-9830-efff18b9b4b0@gmail.com> (raw)
In-Reply-To: <BY5PR04MB6900AFAF3F60C1092BB842B0E7C00@BY5PR04MB6900.namprd04.prod.outlook.com>

On 4/7/20 9:00 PM, Damien Le Moal wrote:
> On 2020/04/08 9:07, Vincent Fu wrote:
>> On 4/7/20 4:48 PM, Jens Axboe wrote:
>>   > On 4/6/20 6:58 PM, Damien Le Moal wrote:
>>   >> This series extend support for zonemode=zbd beyond Linux only and as is
>>   >> allows the use of this zonemode on any platform with regular block
>>   >> devices. The same also applies to Linux systems that do not have zoned
>>   >> block device support (e.g. enterprise distributions with kernels version
>>   >> lower than 4.10). For zoned block device support, Linux implementation
>>   >> is preserved. Other OS specific code can be added with automatic
>>   >> configuration with the configure script to add zoned block device
>>   >> support.
>>   >>
>>   >> Additionally, ioengine operations are updated to allow an IO engine to
>>   >> provide implementations for the zone operations needed to support zoned
>>   >> block devices. This is convenient for cases where the system OS/kernel
>>   >> does not have any support implementation available.
>>   >>
>>   >> Finally, the libzbc IO engine is introduced to support zoned block
>>   >> devices on Linux distributions without native kernel level support (E.g.
>>   >> RedHat/CentOS). SImilarly to the sg ioengine, this new IO engine usesi
>>   >> passthrough commands implemeted by libzbc API to directly access SMR
>>   >> drives.
>>   >
>>   > Looks ok to me, I've applied it. But please send a job file that uses
>>   > it as well to put in examples/, thanks.
>>   >
>>
>> The AppVeyor Windows builds fail due to the zbd changes:
>>
>> https://ci.appveyor.com/project/axboe/fio/builds/32024485
>>
>> configure reports:
>>
>> Zoned block device support    no
>> libzbc engine                 no
>>
>> but nevertheless an attempt is made to build the zbd code.
> 
> With the changes, zbd.c should be compiled for any OS to enable zonemode=zbd
> with regular block devices. But oslib/linux-blkzoned.c should not be compiled.
> What is the compilation error ? Is it something in zbd.c ?
> I do not have any Windows machine to test builds.
> 
> 

This is the error:

     CC zbd.o
In file included from zbd.c:10:0:
os/windows/posix/include/dirent.h:8:2: error: unknown type name ‘ino_t’
   ino_t  d_ino;     /*  File serial number */
   ^~~~~
zbd.c: In function ‘zbd_unaligned_write’:
zbd.c:1242:7: error: ‘EREMOTEIO’ undeclared (first use in this function)
   case EREMOTEIO:
        ^~~~~~~~~
zbd.c:1242:7: note: each undeclared identifier is reported only once for 
each function it appears in

Here is the automated Windows build:

https://ci.appveyor.com/project/axboe/fio/builds/32024485/job/wmff344x9q4j09iq

The macOS build now also fails with a similar error:

https://travis-ci.org/github/axboe/fio/jobs/672273652


  reply	other threads:[~2020-04-08  1:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07  1:58 [PATCH 0/4] Generalize zonemode=zbd Damien Le Moal
2020-04-07  1:58 ` [PATCH 1/4] fio: " Damien Le Moal
2020-04-07  1:58 ` [PATCH 2/4] ioengines: Add zoned block device operations Damien Le Moal
2020-04-07  1:58 ` [PATCH 3/4] fio: Introduce libzbc IO engine Damien Le Moal
2020-04-07  1:59 ` [PATCH 4/4] t/zbd: Add support for libzbc IO engine tests Damien Le Moal
2020-04-07 20:48 ` [PATCH 0/4] Generalize zonemode=zbd Jens Axboe
2020-04-07 20:50   ` Michael Green
2020-04-07 20:50     ` Michael Green
2020-04-08  0:07   ` Vincent Fu
2020-04-08  1:00     ` Damien Le Moal
2020-04-08  1:08       ` Vincent Fu [this message]
2020-04-08  1:53         ` Damien Le Moal
2020-04-08 21:29           ` Vincent Fu
2020-04-10 15:05             ` Sitsofe Wheeler

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=43ac3364-5d63-0a89-9830-efff18b9b4b0@gmail.com \
    --to=vincentfu@gmail.com \
    --cc=Damien.LeMoal@wdc.com \
    --cc=Dmitry.Fomichev@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    /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