cvs commit: src/sys/bus/cam cam_sim.c cam_sim.h

Matthew Dillon dillon at
Wed Jun 13 18:10:27 PDT 2007

dillon      2007/06/13 18:09:30 PDT

DragonFly src repository

  Modified files:
    sys/bus/cam          cam_sim.c cam_sim.h 
  Do not destroy the device queue, it is needed by the peripheral code
  (e.g. scsi/scsi_da.c, etc) even if the backend hardware has disappeared.
  When cam_sim_free() is called, set up a dummy poll and action callback
  and make the action callback generate an I/O error.
  This allows things like filesystem mounts of USB memory sticks to start
  returning I/O errors instead of blocking forever if the stick is pulled.
  Revision  Changes    Path
  1.9       +34 -5     src/sys/bus/cam/cam_sim.c
  1.6       +0 -1      src/sys/bus/cam/cam_sim.h

More information about the Commits mailing list