joop.martens@lekkerland.nl
2005-Jun-14 11:55 UTC
[Samba] Missing files on Windows client side.
In a directory with approximately 6000 files, several files are missing on the Windows side. If I check the directory on Unix (AIX) they are all there. As far as I can see there's nothing strange with this files en I can't see any connection between the missing files. It looks like it's randomly. A few examples of missing files: FAKTREF.10062005.16 (See debug information) cum1406.csv The only thing that I can see in the debug is the following line near each missing file: get_lanman2_dir_entry: out of space Can anybody tell me what causes this or how i can fix this problem. [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode(315) dos_mode returning [2005/06/14 12:20:58, 5] smbd/trans2.c:get_lanman2_dir_entry(959) get_lanman2_dir_entry found ./FAKTREF.10062005.29 fname=FAKTREF.10062005.29 [2005/06/14 12:20:58, 10] smbd/trans2.c:get_lanman2_dir_entry(1043) get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO [2005/06/14 12:20:58, 10] smbd/mangle_hash2.c:name_map(613) name_map: FAKTREF.10062005.29 -> 29E0716A -> FBMAMA~Y.29 (cache=1) [2005/06/14 12:20:58, 8] smbd/trans2.c:get_lanman2_dir_entry(869) get_lanman2_dir_entry:readdir on dirptr 0x20044568 now at offset 0 [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode(283) dos_mode: ./FAKTREF.10062005.16 [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) dos_mode_from_sbuf returning [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode(315) dos_mode returning [2005/06/14 12:20:58, 5] smbd/trans2.c:get_lanman2_dir_entry(959) get_lanman2_dir_entry found ./FAKTREF.10062005.16 fname=FAKTREF.10062005.16 [2005/06/14 12:20:58, 10] smbd/trans2.c:get_lanman2_dir_entry(1043) get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO [2005/06/14 12:20:58, 10] smbd/mangle_hash2.c:name_map(613) name_map: FAKTREF.10062005.16 -> 29E0716A -> FBMAMA~Y.16 (cache=1) [2005/06/14 12:20:58, 9] smbd/trans2.c:get_lanman2_dir_entry(1294) get_lanman2_dir_entry: out of space [2005/06/14 12:20:58, 9] smbd/trans2.c:send_trans2_replies(556) t2_rep: params_sent_thistime = 8, data_sent_thistime = 16276, useable_space = 131012 [2005/06/14 12:20:58, 9] smbd/trans2.c:send_trans2_replies(558) t2_rep: params_to_send = 8, data_to_send = 16276, paramsize = 8, datasize = 16276 [2005/06/14 12:20:58, 6] lib/util_sock.c:write_socket(449) write_socket(24,16344) [2005/06/14 12:20:58, 6] lib/util_sock.c:write_socket(452) write_socket(24,16344) wrote 16344 [2005/06/14 12:20:58, 3] smbd/trans2.c:call_trans2findnext(1752) SMBtrans2 mask=* directory=./ dirtype=22 numentries=121 [2005/06/14 12:20:58, 10] lib/util_sock.c:read_smb_length_return_keepalive(505) got smb length of 120 [2005/06/14 12:20:58, 6] smbd/process.c:process_smb(1090) got message type 0x0 of len 0x78 [2005/06/14 12:20:58, 3] smbd/process.c:process_smb(1091) Transaction 13 of length 124 [2005/06/14 12:20:58, 5] lib/util.c:show_msg(464) [2005/06/14 12:20:58, 5] lib/util.c:show_msg(474) If I use the full UNC path of the missing file from within an application it is accesable and readable. Only from windows explorer it's not visible. Also a mapped drive in a windows command prompt shows the files. So it's looks like a problem only with windows explorer. I have the problem on win2k, XP and Windows2003 server clients. I'm running samba 3.0.14a on AIX 5.2 ML5 Thanks in advance for a reply. J. Martens Dep. ICT from Lekkerland The Netherlands and Conway Belgium E-mail: joop.martens@lekkerland.nl ---------------------------------------------------------------------------------------------------------------------------------------------------------------- This e-mail may contain confidential and/or privileged information. If you are not the intended receipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Deze e-mail kan vertrouwelijke en/of persoonlijke informatie bevatten. Als u niet de bedoelde ontvanger bent, of deze e-mail per ongeluk heeft gekregen, breng dan de verzender ogenblikkelijk hiervan op de hoogte en vernietig dit bericht. Het kopieren, in de openbaarheid brengen of verspreiden van de inhoud van deze e-mail is ten strengste verboden. Ce courriel peut contenir de l?information confidentielle et/ou privil?gi?e. Si vous n??tes pas le r?cepteur intentionn? (ou vous avez re?u ce courriel par erreur) svp, avertissez imm?diatement l??metteur et d?truisez ce courriel. Toute copie non autoris?e, divulgation d?information ou distribution du contenu de ce courriel sont strictement interdites. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
Looks like it has something to do with long dos filenames. [2005/06/14 12:20:58, 10] smbd/mangle_hash2.c:name_map(613)> name_map: FAKTREF.10062005.16 -> 29E0716A -> FBMAMA~Y.16 (cache=1) > [2005/06/14 12:20:58, 9] smbd/trans2.c:get_lanman2_dir_entry(1294) > get_lanman2_dir_entry: out of space > [2005/06/14 12:20:58, 9] smbd/trans2.c:send_trans2_replies(556) > t2_rep: params_sent_thistime = 8, data_sent_thistime = 16276, > useable_space = 131012you could try to rename it to a short name, and if it pop's up in the explore, rename it back so samba can use it's mangling case thing.. Laterz Collen joop.martens@lekkerland.nl wrote:> > > > In a directory with approximately 6000 files, several files are missing on > the Windows side. > If I check the directory on Unix (AIX) they are all there. > > As far as I can see there's nothing strange with this files en I can't see > any connection between the missing files. > It looks like it's randomly. > > A few examples of missing files: > > FAKTREF.10062005.16 (See debug information) > cum1406.csv > > The only thing that I can see in the debug is the following line near each > missing file: > > get_lanman2_dir_entry: out of space > > Can anybody tell me what causes this or how i can fix this problem. > > [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode(315) > dos_mode returning > [2005/06/14 12:20:58, 5] smbd/trans2.c:get_lanman2_dir_entry(959) > get_lanman2_dir_entry found ./FAKTREF.10062005.29 > fname=FAKTREF.10062005.29 > [2005/06/14 12:20:58, 10] smbd/trans2.c:get_lanman2_dir_entry(1043) > get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO > [2005/06/14 12:20:58, 10] smbd/mangle_hash2.c:name_map(613) > name_map: FAKTREF.10062005.29 -> 29E0716A -> FBMAMA~Y.29 (cache=1) > [2005/06/14 12:20:58, 8] smbd/trans2.c:get_lanman2_dir_entry(869) > get_lanman2_dir_entry:readdir on dirptr 0x20044568 now at offset 0 > [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode(283) > dos_mode: ./FAKTREF.10062005.16 > [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) > dos_mode_from_sbuf returning > [2005/06/14 12:20:58, 8] smbd/dosmode.c:dos_mode(315) > dos_mode returning > [2005/06/14 12:20:58, 5] smbd/trans2.c:get_lanman2_dir_entry(959) > get_lanman2_dir_entry found ./FAKTREF.10062005.16 > fname=FAKTREF.10062005.16 > [2005/06/14 12:20:58, 10] smbd/trans2.c:get_lanman2_dir_entry(1043) > get_lanman2_dir_entry: SMB_FIND_FILE_BOTH_DIRECTORY_INFO > [2005/06/14 12:20:58, 10] smbd/mangle_hash2.c:name_map(613) > name_map: FAKTREF.10062005.16 -> 29E0716A -> FBMAMA~Y.16 (cache=1) > [2005/06/14 12:20:58, 9] smbd/trans2.c:get_lanman2_dir_entry(1294) > get_lanman2_dir_entry: out of space > [2005/06/14 12:20:58, 9] smbd/trans2.c:send_trans2_replies(556) > t2_rep: params_sent_thistime = 8, data_sent_thistime = 16276, > useable_space = 131012 > [2005/06/14 12:20:58, 9] smbd/trans2.c:send_trans2_replies(558) > t2_rep: params_to_send = 8, data_to_send = 16276, paramsize = 8, datasize > = 16276 > [2005/06/14 12:20:58, 6] lib/util_sock.c:write_socket(449) > write_socket(24,16344) > [2005/06/14 12:20:58, 6] lib/util_sock.c:write_socket(452) > write_socket(24,16344) wrote 16344 > [2005/06/14 12:20:58, 3] smbd/trans2.c:call_trans2findnext(1752) > SMBtrans2 mask=* directory=./ dirtype=22 numentries=121 > [2005/06/14 12:20:58, 10] > lib/util_sock.c:read_smb_length_return_keepalive(505) > got smb length of 120 > [2005/06/14 12:20:58, 6] smbd/process.c:process_smb(1090) > got message type 0x0 of len 0x78 > [2005/06/14 12:20:58, 3] smbd/process.c:process_smb(1091) > Transaction 13 of length 124 > [2005/06/14 12:20:58, 5] lib/util.c:show_msg(464) > [2005/06/14 12:20:58, 5] lib/util.c:show_msg(474) > > If I use the full UNC path of the missing file from within an application > it is accesable and readable. > Only from windows explorer it's not visible. > > Also a mapped drive in a windows command prompt shows the files. > > So it's looks like a problem only with windows explorer. > > I have the problem on win2k, XP and Windows2003 server clients. > > I'm running samba 3.0.14a on AIX 5.2 ML5 > > Thanks in advance for a reply. > > J. Martens > > Dep. ICT from Lekkerland The Netherlands and Conway Belgium > > E-mail: joop.martens@lekkerland.nl > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > > This e-mail may contain confidential and/or privileged information. If you > are not the intended receipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. > Any unauthorised copying, disclosure or distribution of the material in > this e-mail is strictly forbidden. > > Deze e-mail kan vertrouwelijke en/of persoonlijke informatie bevatten. Als > u niet de bedoelde ontvanger bent, of deze e-mail per ongeluk heeft > gekregen, breng dan de verzender ogenblikkelijk hiervan op de hoogte en > vernietig dit bericht. > Het kopieren, in de openbaarheid brengen of verspreiden van de inhoud van > deze e-mail is ten strengste verboden. > > Ce courriel peut contenir de l?information confidentielle et/ou > privil?gi?e. Si vous n??tes pas le r?cepteur intentionn? (ou vous avez re?u > ce courriel par erreur) svp, avertissez imm?diatement l??metteur et > d?truisez ce courriel. > Toute copie non autoris?e, divulgation d?information ou distribution du > contenu de ce courriel sont strictement interdites. > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- >
On Tue, Jun 14, 2005 at 01:54:44PM +0200, joop.martens@lekkerland.nl wrote:> > > > > In a directory with approximately 6000 files, several files are missing on > the Windows side. > If I check the directory on Unix (AIX) they are all there. > > As far as I can see there's nothing strange with this files en I can't see > any connection between the missing files. > It looks like it's randomly. > > A few examples of missing files: > > FAKTREF.10062005.16 (See debug information) > cum1406.csv > > The only thing that I can see in the debug is the following line near each > missing file: > > get_lanman2_dir_entry: out of space > > Can anybody tell me what causes this or how i can fix this problem.May be a bug. What I need from you to fix this is a tar of the directory that is causing the problem - it doesn't have to contain the data, just the filenames. Then I need to know *exactly what Windows client you're using to reproduce this - down to the service pack level and any hotfixes applied please. Thanks, Jeremy.
Check the file permissions on those files from the Unix side. I have noticed that now if file permissions aren't set correctly that the user can't see the files. I also had a similar issue where I have a department directory that has group access to the directory. The user was listed as Administrator and the groups were listed as the department name from winbind. The files were chmoded to 770 on the FreeBSD server. Still no member of that group could see the files. When I changed the owner to another user, that user could see the files but the group couldn't. Plans are to rebuild the server to see if that fixed the problem.> -----Original Message----- > From: samba-bounces+marki=cumcmemphis.org@lists.samba.org > [mailto:samba-bounces+marki=cumcmemphis.org@lists.samba.org] > On Behalf Of Jeremy Allison > Sent: Tuesday, June 14, 2005 11:13 AM > To: joop.martens@lekkerland.nl > Cc: samba@lists.samba.org > Subject: Re: [Samba] Missing files on Windows client side. > > On Tue, Jun 14, 2005 at 01:54:44PM +0200, > joop.martens@lekkerland.nl wrote: > > > > > > > > > > In a directory with approximately 6000 files, several files are > > missing on the Windows side. > > If I check the directory on Unix (AIX) they are all there. > > > > As far as I can see there's nothing strange with this files > en I can't > > see any connection between the missing files. > > It looks like it's randomly. > > > > A few examples of missing files: > > > > FAKTREF.10062005.16 (See debug information) cum1406.csv > > > > The only thing that I can see in the debug is the following > line near > > each missing file: > > > > get_lanman2_dir_entry: out of space > > > > Can anybody tell me what causes this or how i can fix this problem. > > May be a bug. What I need from you to fix this is a tar of > the directory that is causing the problem - it doesn't have > to contain the data, just the filenames. Then I need to know > *exactly what Windows client you're using to reproduce this - > down to the service pack level and any hotfixes applied please. > > Thanks, > > Jeremy. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
On Tue, Jun 14, 2005 at 01:54:44PM +0200, joop.martens@lekkerland.nl wrote:> > > > > In a directory with approximately 6000 files, several files are missing on > the Windows side. > If I check the directory on Unix (AIX) they are all there. > > As far as I can see there's nothing strange with this files en I can't see > any connection between the missing files. > It looks like it's randomly. > > A few examples of missing files: > > FAKTREF.10062005.16 (See debug information) > cum1406.csv > > The only thing that I can see in the debug is the following line near each > missing file: > > get_lanman2_dir_entry: out of spaceOk, I've tried to recreate this on a Linux system with 10,000 files in a directory and cannot. I explicitly set debug level and ensured there were many : get_lanman2_dir_entry: out of space messages in the log. This means there isn't a problem with this code path as such, but may be a problem with an AIX specific implementation. The new large directory code depends on opendir/telldir/readdir/rewinddir all working correctly - I'm slightly worried in that your log contains the message : get_lanman2_dir_entry:readdir on dirptr 0x20044568 now at offset 0 Offset zero usually means the start of the directory - the offset hasn't yet been initialized. Getting this near a "get_lanman2_dir_entry: out of space" looks like something may be wrong in the directory code under AIX. Can you try and reproduce this on a non-AIX system. Jeremy.