How to workaround the DFS samba bug on the DNS323 NAS ?

Firstly, here is a quick bug description: It's impossible to modify any existing files. The "Not a directory" or "No such file or directory" or "touch: setting times of…" errors occurs when trying to modify a file.

If your linux cifs or smbfs client support the nodfs flag (integrated in kernels > 2.6.27). You just have to add this option to the mount command. Example:

mount -t cifs -o credentials=/home/kerphi/.smb-zekra-credentials,iocharset=utf8,file_mode=0777,dir_mode=0777,nodfs //zekra/Volume_1 /home/kerphi/zekra

If you cannot upgrade your kernel (like me because i'm following the debian releases), you have to follow this workaround:

Many thanks to Skokie and to the Ubuntu community for having found this workaround.