-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add volume event handling to virtio scsi driver
Virtio scsi uses the event queue to pass asynchronous information about volumes added or removed. This change implements handling of these events. Virtio scsi disks for a scsi device are now stored in a vector for lookup by the event handler. The rescan event sends an inquiry to the lun specified in the event, unless than lun is zero, which triggers a report luns for the target, as indicated by the specification. LUNs that are detected in this rescan are not re-added if they already exist in the disk list.
- Loading branch information
Showing
1 changed file
with
124 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters