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

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jun 6 11:49:01 PDT 2004


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 at 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





More information about the Commits mailing list