diff mbox

[linux-cifs-client] cifs: disable the use of server inode numbers by default

Message ID 1273076215-8827-1-git-send-email-jlayton@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton May 5, 2010, 4:16 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 9123c23..a60c977 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -839,8 +839,13 @@  cifs_parse_mount_options(char *options, const char *devname,
 	/* vol->retry default is 0 (i.e. "soft" limited retry not hard retry) */
 	/* default is always to request posix paths. */
 	vol->posix_paths = 1;
-	/* default to using server inode numbers where available */
-	vol->server_ino = 1;
+
+	/*
+	 * The client cannot default to using server inode numbers until it
+	 * can reliably guard against misbehaving servers causing inode
+	 * number collisions.
+	 */
+	vol->server_ino = 0;
 
 	if (!options)
 		return 1;