kernel - TMPFS - Stabilization pass, fix assertion in nrmdir
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 21 Feb 2010 16:41:15 +0000 (08:41 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 21 Feb 2010 16:41:15 +0000 (08:41 -0800)
commit38e5e60484f827fe6e856e8f0e00d476f4044bcd
tree6dd0bf2b2a6fd0398e8438559162573cf84c8af7
parentd1b155220b4d0fb43f7982b1793724496a11fcf8
kernel - TMPFS - Stabilization pass, fix assertion in nrmdir

* Have tmpfs_nrmdir() test whether the vp is a directory and return
  the proper error before asserting that it is a directory.

* Fixes assertion panic if you attempt to rmdir a file in tmpfs.
sys/vfs/tmpfs/tmpfs_vnops.c