Problems with smbmount

servis at purdue.edu servis at purdue.edu
Sun Aug 23 17:57:02 GMT 1998


*- Igor Colovic wrote about "Problems with smbmount"
| I have a problem. When I mount my CD (witch is on WIN97 machine) using
| smbmount I do not see all files in all dirs. If dir have more then, let say,
| 100 files (it is not the same every time), I do not see all files.
| 
| This is a problem because on my Linux box I do not have CD-ROM, so if I have
| to install some packages I first have to copy rpm files on disk, and then
| install them witch is annoying. What is the problem here.
| 
| I am not posting smb.conf because I think that problem is not there, but in
| win settings.
| 


Apply this patch to the linux kernel source .../fs/smbfs/proc.c.  I
patched 2.0.34 with it, I don't know about .35 or any of the .1.X
kernels though. I forget who passed this on to me but it fixed those
problems for me.

-- 
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                              servis at purdue.edu
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------

-------------- next part --------------
diff -u --recursive --new-file linux-2.0.33.orig/fs/smbfs/proc.c linux-2.0.33/fs/smbfs/proc.c
--- 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,


More information about the samba mailing list