Implemented some virtfs functions.

Implemented some virtfs functions.