]> git.ipfire.org Git - thirdparty/libvirt.git/commit
utils: Add a helper to get the device name that sg device mapped to
authorOsier Yang <jyang@redhat.com>
Fri, 3 May 2013 18:07:36 +0000 (02:07 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 16 May 2013 15:50:00 +0000 (23:50 +0800)
commit28d3ad952fb0fae83b347ace99150cbcbc0dcba1
tree6e8ebf9660e1a7b6a5c0b444c13b2675fc781b16
parent539d0e19fdbba1ce2f534676f325cdfebcf336dc
utils: Add a helper to get the device name that sg device mapped to

E.g.

% sg_map
/dev/sg0  /dev/sda
/dev/sg1  /dev/sr0

What the helper gets for /dev/sg0 is /dev/sda, it will be used by
later patch.
src/libvirt_private.syms
src/util/virscsi.c
src/util/virscsi.h