[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Invisible files smbfs W95



*- On  1 Feb, Jiri Baum wrote about "Invisible files smbfs W95"
> Hello,
> 
> I have a weird ongoing problem: I connect to a W95 box, smbmount a share,
> but some files on the share do not show up on directory listings - even
> though they are there, I can open them (from the Linux box), etc. Which
> files show up seems to change from session to session and sometimes from
> listing to listing.
> 
> Any suggestions, please?
> 
> 
> I connect to the Windows 95 [4.00.950] box over Ethernet and TCP/IP and
> mount about a dozen filesystems from it. I have a mostly-hamm system (samba
> 1.9.18p8-2, smbfs 2.0.2-5, libc6 2.0.7t-1). Not sure what else is relevant.
> 
> Jiri <jiri@baum.com.au>
> 
> 

What kernel are you using?  If you are using the 2.0.3x series you need
to apply this patch.  It fixed that problem for me.  I used it up to
2.0.36.

########################start patch####################################
--- linux-2.0.33.orig/fs/smbfs/proc.c   Thu Apr 30 18:23:30 1998
+++ linux-2.0.33/fs/smbfs/proc.c        Thu Apr 30 18:24:59 1998
@@ -1217,15 +1217,15 @@
                        WSET(param, 10, 8 + 4 + 2);     /* resume required +
                                                           close on end +
                                                           continue */
+               }
 #ifdef CONFIG_SMB_WIN95
-                       /* Windows 95 is not able to deliver answers
-                          to FIND_NEXT fast enough, so sleep 0.2 seconds */
-                       current->timeout = jiffies + HZ / 5;
-                       current->state = TASK_INTERRUPTIBLE;
-                       schedule();
-                       current->timeout = 0;
+               /* Windows 95 is not able to deliver answers
+                  to FIND_NEXT fast enough, so sleep 0.2 seconds */
+               current->timeout = jiffies + HZ / 5;
+               current->state = TASK_INTERRUPTIBLE;
+               schedule();
+               current->timeout = 0;
 #endif
-               }
 
                result = smb_trans2_request(server, command,
                                            0, NULL, 12 + mask_len + 2, param,
##################################end patch#######################
-- 
Brian 
---------------------------------------------------------------------
"Never criticize anybody until you have walked a mile in their shoes,  
 because by that time you will be a mile away and have their shoes." 
							   - unknown  

Mechanical Engineering                                bservis@usa.net
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------


Reply to: