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

cvs commit: src/sys/vfs/specfs spec_vnops.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Jun 2004 11:47:51 -0700 (PDT)

dillon      2004/06/06 11:47:51 PDT

DragonFly src repository

  Modified files:
    sys/vfs/specfs       spec_vnops.c 
  Log:
  Deal with revoke()'d descriptors.  The underlying vnode is vgone()'d, which
  means that it is forceably closed.  This clears v_rdev even though file
  descriptors may still have references to the vnode, which leads to panics
  (mainly on tty devices).
  
  Check for v_rdev == NULL in most specfs fileops calls and return an error
  code instead of panicing.   This isn't the cleanest solution but it's fine
  for now.
  
  Reported-by: Sascha Wildner <saw@xxxxxxxxx>
  
  Revision  Changes    Path
  1.17      +29 -9     src/sys/vfs/specfs/spec_vnops.c


http://www.dragonflybsd.org/cvsweb/src/sys/vfs/specfs/spec_vnops.c.diff?r1=1.16&r2=1.17&f=u



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