DragonFly commits List (threaded) for 2007-06
DragonFly BSD
DragonFly commits List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Jun 2007 18:09:30 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]