vfs: Convert fs/vfs/kern_physio.c -> fs/vfs/kern_physio.cc

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/vfs/vfs_bio.c -> fs/vfs/vfs_bio.cc

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/vfs/vfs_bdev.c -> fs/vfs/vfs_bdev.cc

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/vfs/subr_uio.c -> fs/vfs/subr_uio.cc

Fixed the following:

/home/asias/src/cloudius-systems/osv/fs/vfs/subr_uio.cc: In function
‘int uiomove(void*, int, uio*)’:
/home/asias/src/cloudius-systems/osv/fs/vfs/subr_uio.cc:56:13: error:
comparison between signed and unsigned integer expressions
[-Werror=sign-compare]
   if (cnt > n)
             ^

Removed dead code uiomove_frombuf to fix:

   /home/asias/src/cloudius-systems/osv/fs/vfs/subr_uio.cc: In function
   ‘int uiomove_frombuf(void*, int, uio*)’:
   /home/asias/src/cloudius-systems/osv/fs/vfs/subr_uio.cc:88:41: error:
   comparison between signed and unsigned integer expressions
   [-Werror=sign-compare]
         (offset = uio->uio_offset) != uio->uio_offset)
                                            ^
   /home/asias/src/cloudius-systems/osv/fs/vfs/subr_uio.cc:90:31: error:
   comparison between signed and unsigned integer expressions
   [-Werror=sign-compare]
     if (buflen <= 0 || offset >= buflen)
                               ^

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/vfs/vfs_vnode.c -> fs/vfs/vfs_vnode.cc

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/vfs/vfs_task.c -> fs/vfs/vfs_task.cc

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/vfs/vfs_conf.c -> fs/vfs/vfs_conf.cc

extern C is modifed to fix the following issue:

     AS bootfs.o
     LD loader.elf
   fs/vfs/vfs_conf.o:(.rodata+0x8): undefined reference to `ramfs_init()'
   fs/vfs/vfs_conf.o:(.rodata+0x20): undefined reference to `devfs_init()'
   fs/vfs/vfs_conf.o:(.rodata+0x38): undefined reference to `procfs_init()'
   fs/vfs/vfs_conf.o:(.rodata+0x50): undefined reference to `zfs_init()'
   make[1]: *** [loader.elf] Error 1
   make[1]: Leaving directory
   `/home/asias/src/cloudius-systems/osv/build/release.x64'
   make: *** [all] Error 2

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/devfs/device.c -> fs/devfs/device.cc

Signed-off-by: Asias He <asias@cloudius-systems.com>
vfs: Convert fs/ramfs/ramfs_vfsops.c -> fs/ramfs/ramfs_vfsops.cc

Signed-off-by: Asias He <asias@cloudius-systems.com>