mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
scsi: Refactor scsi sense interpreting code
So that it can be reused outside of iscsi.c. Also update MAINTAINERS to include the new files in SCSI section. Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170821141008.19383-2-famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b07fbce634
commit
2875135807
5 changed files with 78 additions and 41 deletions
19
include/scsi/scsi.h
Normal file
19
include/scsi/scsi.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* SCSI helpers
|
||||
*
|
||||
* Copyright 2017 Red Hat, Inc.
|
||||
*
|
||||
* Authors:
|
||||
* Fam Zheng <famz@redhat.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*/
|
||||
#ifndef QEMU_SCSI_H
|
||||
#define QEMU_SCSI_H
|
||||
|
||||
int scsi_sense_to_errno(int key, int asc, int ascq);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue