smba_read() failed to register the number of bytes read successfully by smb_proc_read_raw(). This made all files appear to be empty. smba_write() did not update the offset value correctly if the first smb_proc_write() call had succeeded.