/* Notes: Given an integer : 0x0b030a04, this function returns a scsi_lun of : struct scsi_lun of: 0a 04 0b 03 00 00 00 00  */
void int_to_scsilun(unsigned int lun, struct scsi_lun *scsilun)
/* Notes: Given an integer : 0x0b030a04, this function returns a scsi_lun of : struct scsi_lun of: 0a 04 0b 03 00 00 00 00  */
void int_to_scsilun(unsigned int lun, struct scsi_lun *scsilun)
{
	int i;
	memset(scsilun->scsi_lun, 0, sizeof(scsilun->scsi_lun));
	for (i = 0; i < sizeof(lun); i += 2) {
		scsilun->scsi_lun[i] = (lun >> 8) & 0xFF;
		scsilun->scsi_lun[i+1] = lun & 0xFF;
		lun = lun >> 16;
	}
}