OSDN Git Service

smb3: Fix regression in time handling
authorSteve French <stfrench@microsoft.com>
Tue, 8 Oct 2019 05:27:14 +0000 (00:27 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 9 Oct 2019 05:10:38 +0000 (00:10 -0500)
commitd4cfbf04b2aafcb657eb8ea0835e5cf51d371448
tree1f79f374c1bef713b1f80041d42198683a6a6ef1
parentd0959b080b1faa9741857ef607c90531b66e2fb8
smb3: Fix regression in time handling

Fixes: cb7a69e60590 ("cifs: Initialize filesystem timestamp ranges")

Only very old servers (e.g. OS/2 and DOS) did not support
DCE TIME (100 nanosecond granularity).  Fix the checks used
to set minimum and maximum times.

Fixes xfstest generic/258 (on 5.4-rc1 and later)

CC: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsfs.c