Re: [PATCH v3] Add blkzonecmd and blkreport ZAC/ZBC drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karel,

Added one more patch to the series.
The fourth patch changes the --length option to use a sector count (as expected from the name)
and adds the --count option which can be used in place of --length (it is --length OR --count,
both are not allowed on the command line).

All tested on several different host-managed drives with kernel 4.10. No problems detected.

Let me know what you think.

Best regards.

--
Damien Le Moal, Ph.D.
Sr. Manager, System Software Research Group,
Western Digital
Damien.LeMoal@xxxxxxx
(+81) 0466-98-3593 (ext. 513593)
1 kirihara-cho, Fujisawa,
Kanagawa, 252-0888 Japan
www.wdc.com, www.hgst.com

From: Karel Zak <kzak@xxxxxxxxxx>
Date: Friday, February 24, 2017 at 01:33
To: Damien Le Moal <Damien.LeMoal@xxxxxxx>
Cc: Benno Schulenberg <bensberg@xxxxxxxxxxxxx>, Shaun Tancheff <shaun@xxxxxxxxxxxx>, Util-Linux <util-linux@xxxxxxxxxxxxxxx>, Van Assche Bart <Bart.VanAssche@xxxxxxxxxxx>
Subject: Re: [PATCH v3] Add blkzonecmd and blkreport ZAC/ZBC drives

On Fri, Feb 17, 2017 at 09:12:29AM +0900, Damien Le Moal wrote:
Benno,
On 2/16/17 21:15, Benno Schulenberg wrote:
> 
> On Thu, Feb 16, 2017, at 11:33, Karel Zak wrote:
>>   blkzone report [--zone <offset>] [--count <length>]
>>   blkzone reset  [--zone <offset>] [--count <length>]
> 
> "blkzone --zone" feels a bit strange.  I would suggest:
> 
>   blkzone <command> [--offset <sector>] [--count <number>]
Indeed, it is a little awkward. And to be consistent with other tools
such as blkdiscard, I would also suggest --length instead of --count.
So:
blkzone report [--offset <offset>] [--length <length>]
blkzone reset  [--offset <offset>] [--length <length>]

blkzone(8) implemented, blkreset and blkreport removed. 

Please, retest and review:
https://github.com/karelzak/util-linux/blob/master/sys-utils/blkzone.c
https://github.com/karelzak/util-linux/blob/master/sys-utils/blkzone.8

    Karel
-- 
Karel Zak  <kzak@xxxxxxxxxx>
http://karelzak.blogspot.com



Attachment: 0001-blkzone-Reset-all-zones-when-length-is-not-specified.patch
Description: 0001-blkzone-Reset-all-zones-when-length-is-not-specified.patch

Attachment: 0002-blkzone-Report-all-zones-if-length-is-not-specified.patch
Description: 0002-blkzone-Report-all-zones-if-length-is-not-specified.patch

Attachment: 0003-blkzone-Improve-zone-information-print.patch
Description: 0003-blkzone-Improve-zone-information-print.patch

Attachment: 0004-blkzone-Add-count-option.patch
Description: 0004-blkzone-Add-count-option.patch


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux