smbfs: implmentation of file-related functions. Code refactoring

Signed-off-by: Slava Zanko <slavazanko@gmail.com>