klaus-georg.adams@rwg.de
2000-Jun-27 11:14 UTC
[Patch] for smbfs for reading from OS/2 Server against 2.4.0
The appended patch against 2.4.0-test2 fixes the problem that reading a directory (e.g. with ls) from an OS/2 LAN Server was truncated after ~240 entries. Index: fs/smbfs/proc.c ==================================================================RCS file: /usr/src/cvsroot/linux/fs/smbfs/proc.c,v retrieving revision 1.1.5.1 diff -u -r1.1.5.1 proc.c --- fs/smbfs/proc.c 2000/05/29 08:17:30 1.1.5.1 +++ fs/smbfs/proc.c 2000/06/27 09:38:40 @@ -7,6 +7,8 @@ * 28/06/96 - Fixed long file name support (smb_proc_readdir_long) by Yuri Per * 28/09/97 - Fixed smb_d_path [now smb_build_path()] to be non-recursive * by Riccardo Facchetti + * 27/06/00 - Fixed smb_proc_readdir_long to work against an OS/2 server + * by Klaus-Georg.Adams@rwg.de */ #include <linux/types.h> @@ -1554,9 +1556,8 @@ command = TRANSACT2_FINDFIRST; WSET(param, 0, aSYSTEM | aHIDDEN | aDIR); WSET(param, 2, max_matches); /* max count */ - WSET(param, 4, 8 + 4 + 2); /* resume required + - close on end + - continue */ + WSET(param, 4, 4 + 2); /* resume required + + close on end */ WSET(param, 6, info_level); DSET(param, 8, 0);