patch-extras_cdrom_id_cdrom_id_c 527 B

1234567891011
  1. --- udev-142.orig/extras/cdrom_id/cdrom_id.c 2009-04-23 15:02:36.000000000 +0200
  2. +++ udev-142/extras/cdrom_id/cdrom_id.c 2009-12-12 00:20:04.000000000 +0100
  3. @@ -140,7 +140,7 @@ static void scsi_cmd_set(struct udev *ud
  4. cmd->sg_io.mx_sb_len = sizeof(cmd->_sense);
  5. cmd->sg_io.cmdp = cmd->cgc.cmd;
  6. cmd->sg_io.sbp = cmd->_sense.u;
  7. - cmd->sg_io.flags = SG_FLAG_LUN_INHIBIT | SG_FLAG_DIRECT_IO;
  8. + cmd->sg_io.flags = SG_FLAG_UNUSED_LUN_INHIBIT | SG_FLAG_DIRECT_IO;
  9. }
  10. cmd->sg_io.cmd_len = i + 1;
  11. cmd->cgc.cmd[i] = arg;