kernel - Add kqueue and fix chflags handling for tmpfs
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Sep 2010 19:53:47 +0000 (12:53 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Sep 2010 19:53:47 +0000 (12:53 -0700)
commit80ae59d743aefff156647314294a31c6c5761b5f
treeac73589cdc42da82aedf208052e63fb06d2f31b1
parent9f90716f6c4ca5ba76e7c09fbe64eb706ccbcb67
kernel - Add kqueue and fix chflags handling for tmpfs

* Implement kqueue ops for tmpfs so things like tail -f work properly.

* Redo all the chflags handling and checks to use the helper functions,
  also getting ridding of the horribly broken FREAD/FWRITE tests on
  node->tn_flags (which is the chflags flags, not the open flags).

  This fixes chflags handling for tmpfs.  Previously doing something
  like 'make installkernel ... DESTDIR=<sometmpfs_target>' would fail
  on re-install due to chflags not working properly.

* Fix a lost node unlock in tmpfs_chflags()

Reported-by: Nuno Antunes <nuno.antunes@gmail.com>
sys/vfs/tmpfs/tmpfs_subr.c
sys/vfs/tmpfs/tmpfs_vnops.c