patch-2.1.119 linux/fs/smbfs/proc.c

Next file: linux/include/asm-i386/hardirq.h
Previous file: linux/fs/romfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.118/linux/fs/smbfs/proc.c linux/fs/smbfs/proc.c
@@ -1961,11 +1961,13 @@
 	smb_init_dirent(server, fattr);
 
 	/*
-	 * Win 95 is painfully slow at returning trans2 getattr info,
-	 * so we provide the SMB_FIX_OLDATTR option switch.
+	 * Select whether to use core or trans2 getattr.
  	 */
 	if (server->opt.protocol >= SMB_PROTOCOL_LANMAN2) {
-		if (server->mnt->version & SMB_FIX_OLDATTR)
+		/*
+		 * Win 95 appears to break with the trans2 getattr.
+ 	 	 */
+		if (server->mnt->version & (SMB_FIX_OLDATTR|SMB_FIX_WIN95))
 			goto core_attr;
 		if (server->mnt->version & SMB_FIX_DIRATTR)
 			result = smb_proc_getattr_ff(server, dir, fattr);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov