OSDN Git Service

Fix to check Unique id and FileType when client refer file directly.
authorNakajima Akira <nakajima.akira@nttcom.co.jp>
Wed, 22 Apr 2015 06:24:44 +0000 (15:24 +0900)
committerSteve French <smfrench@gmail.com>
Wed, 20 May 2015 18:05:25 +0000 (13:05 -0500)
commit7196ac113a4f38b7ca1a3282fd9edf328bd22287
tree178e1b3431d73f91c704e093955da6632919a8d3
parent65c3b205ebe06a389a29544e71a8071da0ce4155
Fix to check Unique id and FileType when client refer file directly.

When you refer file directly on cifs client,
 (e.g. ls -li <filename>, cd <dir>, stat <filename>)
 the function return old inode number and filetype from old inode cache,
 though server has different inode number or filetype.

When server is Windows, cifs client has same problem.
When Server is Windows
, This patch fixes bug in different filetype,
  but does not fix bug in different inode number.
Because QUERY_PATH_INFO response by Windows does not include inode number(Index Number) .

BUG INFO
https://bugzilla.kernel.org/show_bug.cgi?id=90021
https://bugzilla.kernel.org/show_bug.cgi?id=90031

Reported-by: Nakajima Akira <nakajima.akira@nttcom.co.jp>
Signed-off-by: Nakajima Akira <nakajima.akira@nttcom.co.jp>
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/inode.c