On 2019-07-18 1:03 a.m., Johannes Thumshirn wrote:
> On Wed, Jul 17, 2019 at 11:12:50AM -0600, Logan Gunthorpe wrote:
> [...]
>> +_discovery_genctr() {
>> + nvme discover -t loop |
>> + sed -n -e 's/^.*Generation counter \([0-9]\+\).*$/\1/p'
>> +}
>
> Sorry for not having spotted this in v1, but do we really want to hard-core
> the transport type in a library function?
My opinion is that this is unnecessary until we have users of the
function that need different transport types. It's easy enough for
someone to change when they need it. It's a pretty standard practice in
kernel development to not add a feature that no-one uses.
Logan
- [PATCH blktests v2 08/12] check: Add the ability to cal... Logan Gunthorpe
- Re: [PATCH blktests v2 08/12] check: Add the abili... Johannes Thumshirn
- [PATCH blktests v2 11/12] common: Use sysfs instead of ... Logan Gunthorpe
- Re: [PATCH blktests v2 11/12] common: Use sysfs in... Johannes Thumshirn
- [PATCH blktests v2 04/12] nvme/003,004: Add missing cal... Logan Gunthorpe
- Re: [PATCH blktests v2 04/12] nvme/003,004: Add mi... Johannes Thumshirn
- [PATCH blktests v2 12/12] nvme: Ignore errors when remo... Logan Gunthorpe
- Re: [PATCH blktests v2 12/12] nvme: Ignore errors ... Johannes Thumshirn
- [PATCH blktests v2 03/12] nvme: Add new test to verify ... Logan Gunthorpe
- Re: [PATCH blktests v2 03/12] nvme: Add new test t... Johannes Thumshirn
- Re: [PATCH blktests v2 03/12] nvme: Add new te... Logan Gunthorpe
- [PATCH blktests v2 01/12] Add filter function for nvme ... Logan Gunthorpe
- Re: [PATCH blktests v2 01/12] Add filter function ... Johannes Thumshirn
- [PATCH blktests v2 07/12] nvme/018: Ignore error messag... Logan Gunthorpe
- Re: [PATCH blktests v2 07/12] nvme/018: Ignore err... Johannes Thumshirn
- [PATCH blktests v2 05/12] nvme/005: Don't rely on modpr... Logan Gunthorpe
- Re: [PATCH blktests v2 05/12] nvme/005: Don't rely... Johannes Thumshirn
- Re: [PATCH blktests v2 02/12] nvme: More agressively fi... Johannes Thumshirn
- Re: [PATCH blktests v2 00/12] Fix nvme block test issue... Omar Sandoval
