fixup! smbfs: implmentation of file-related functions. Code refactoring