]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e279a54390e1cb7d89659e3ec60fa2a31259267
tree1f79f374c1bef713b1f80041d42198683a6a6ef1
parent8acea2c43eeb6ddce5f6505207b6c0f118709e7e
smb3: Fix regression in time handling

Fixes: f2c5ad74ca15 ("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