*- Michel Peyron wrote about "Win95 and Smbmount"
| Hi,
|
| When I "smbmount" a shareable drive on my linux box, the result of
the "ls"
| command
| is often false.
| (Kernel is compiled with "SMB Win95 bug work around" and "SMB
filesystems
| support",
| Linux 2.0.34, RedHat 5.1, Samba 1.9.18p5)
|
| What can I do to solve my problem ???
|
| Thanks a lot for your help.
|
| Michel
|
Try this kernel patch('patch -p1 < patchfile'). I have applied it to
both 2.0.34 and 2.0.35 and it fixed ls not showing all directory
entries.
--
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@purdue.edu
Purdue University http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------
---------------------------------------------------------------------
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,