Re: [PATCH 52/52] scsi: Drop the now obsolete driver_byte definitions

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

 



On 11/19/19 10:02 AM, Martin Wilck wrote:
> On Mon, 2019-11-04 at 10:01 +0100, Hannes Reinecke wrote:
>> The driver_byte field in the result is now unused, so we can drop
>> the definitions.
>>
>> Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
>> ---
>>  Documentation/scsi/scsi_mid_low_api.txt |  3 +--
>>  block/bsg-lib.c                         |  2 +-
>>  block/bsg.c                             |  2 +-
>>  block/scsi_ioctl.c                      |  2 +-
>>  drivers/scsi/constants.c                | 14 --------------
>>  drivers/scsi/scsi_logging.c             | 10 ++--------
>>  drivers/scsi/sd.c                       |  9 ++++-----
>>  drivers/scsi/sd_zbc.c                   |  4 ++--
>>  drivers/scsi/sg.c                       |  5 ++---
>>  drivers/scsi/sr.c                       |  2 +-
>>  drivers/scsi/sr_ioctl.c                 |  2 +-
>>  drivers/scsi/st.c                       |  4 ++--
>>  include/scsi/scsi.h                     |  3 ---
>>  include/scsi/scsi_cmnd.h                |  4 ----
>>  include/trace/events/scsi.h             |  7 +------
>>  15 files changed, 19 insertions(+), 54 deletions(-)
>>
> 
> While I generally like this change, the driver byte is part of the
> sg_io user space API, and used in sg3_utils and multipath-tools (in
> particular, DRIVER_SENSE), and likely in other user space tools as
> well. Can we simply ditch it without adding some compatibility code to
> sg and bsg?
> 
Why, but I did...
sg and bsg should report to userland exactly the same values as before;
or at least that was the plan.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      Teamlead Storage & Networking
hare@xxxxxxx			                  +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 247165 (AG München), GF: Felix Imendörffer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux