hi! I used samba for 3 steps as follow: 1.mount a windows share directory to linux 2.samba shared the mounted direcotry. 3.when I delete a directory in client, I got errors in attachment file. but the file really exsited in filesystem. and some times , in window explorer, i event cant't get the file/dir icon. but after refresh again, everything is ok. I saw stat function return st_nlink was 0, not 1. does stat the cifs filesystem has st_nlink 0 right? shell i do this? i do not check st_nlink. #define VALID_STAT(st) (true) #define VALID_STAT_OF_DIR(st) (VALID_STAT(st) && S_ISDIR((st).st_ex_mode))
erros at line 5714
No attachment around
Created attachment 9544 [details] samba logs
I modified function vfswrap_stat in vfs_default.c like this: after invoke sys_stat ,I do this: if(result == 0 && smb_fname->st.st_ex_nlink==0) smb_fname->st.st_ex_nlink = 1; until now ,it looks like ok. but i think this is now samba's bug,it is mount bug.for my client is windows.and i assume there is no symlink there.so