devfs - Fix incorrect st_size reporting
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Apr 2010 16:16:23 +0000 (09:16 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Apr 2010 16:16:23 +0000 (09:16 -0700)
commita3c7ebb989faa275eff6ba6ea2d44ca47170bcec
tree82bcf6a4d39a3ac81a2f58d363f678023340ad06
parentebbcfba95cd661e5188c09f8c0d17417a9da8e40
devfs - Fix incorrect st_size reporting

* The default reported st_size should be 0 and not sizeof(devfs_node).

* Fixes incorrect reporting for /dev/null and other devices.

Reported-by: marino2, numerous others (it slipped through the cracks)
sys/vfs/devfs/devfs_vnops.c