On Tue, 2013-02-26 at 19:10 +0000, Benjamin ESTRABAUD wrote: > I've been wondering where in the target driver the IBLOCK VPD > "unit_serial" attribute was populated. It originates in generate_wwn() in rtslib/utils.py, which generates a random uuid using python's uuid library. > I seem to get a "random" id regardless of whether the IBLOCK is created over a standard > block device (a RAID), or a SCSI one (a SATA or SAS drive). Correct > Also, can this be modified through the configfs interface? Yes, provided that the export_count is zero (ie it is not currently exported as a lun) you can echo the desired serial number to target/core/iblock_#/<configname>/wwn/vpd_unit_serial. In the json savefile it is stored (and retrieved) in the wwn value for each object in the storage_objects array. hth, Tregaron Bayly -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html