*- Bartlomiej Jarocki wrote about "problem in mounting win95 shares"
|
| I have strange problem when mounting win95 shares (different OSRs) from
| my linux server (i586 kernel 2.0.34). I see wrong number of files in
| remote directories (esp. dirs with lot of files - >50 ). Sometimes I see
| more sometimes less.
|
| It takes place both thru smbmount as well as in smbclient utility.
|
| Please give me a hint.
|
| Thanks
|
| Bartek
|
| --
| -- Bartlomiej Jarocki <bartek@itam.zabrze.pl> [icq:7152561]
| -- Institute of Medical Technology & Equipment
Try this kernel patch. 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,