]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Improve SCSI volume name generation
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Nov 2010 15:49:40 +0000 (15:49 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 23 Nov 2010 15:00:35 +0000 (15:00 +0000)
commit174d737d952ac13f7f34cc096023a204b5dcd6c6
treefab09e70161333933e31ef8d5db48762ac84c861
parente4c97a10db970672faae5900dc8e26f10bca75fa
Improve SCSI volume name generation

The SCSI volumes currently get a name like '17:0:0:1' based
on $host:$bus:$target:$lun. The names are intended to be unique
per pool and stable across pool restarts. The inclusion of the
$host component breaks this, because the $host number for iSCSI
pools is dynamically allocated by the kernel at time of login.
This changes the name to be 'unit:0:0:1', ie removes the leading
host component. The 'unit:' prefix is just to ensure the volume
name doesn't start with a number and make it clearer when seen
out of context.

* src/storage/storage_backend_scsi.c: Improve volume name
  field value stability and uniqueness
src/storage/storage_backend_scsi.c