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

Matthew Dillon dillon at crater.dragonflybsd.org
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 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/bus/cam/cam_sim.c.diff?r1=1.8&r2=1.9&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/bus/cam/cam_sim.h.diff?r1=1.5&r2=1.6&f=u





More information about the Commits mailing list