mount.cifs: detect GMT format of snapshot version
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 3 Apr 2019 22:42:10 +0000 (22:42 +0000)
committerPavel Shilovsky <pshilov@microsoft.com>
Fri, 5 Apr 2019 16:42:43 +0000 (09:42 -0700)
commitc52be345de22669c53a6ec41c28914183bf65d09
treecb4119322a4e89fe57e3883767b82e30431490ff
parentb6cb671d3b0df9c8daabc6f52ad9d5e689da4f37
mount.cifs: detect GMT format of snapshot version

In order to provide an easy way to access snapshots a GMT
token string should be allowed as a "snapshot" mount option
argument, not SMB 100-nanoseconds time only. Detect if the
argument is in GMT format and convert it to SMB 100-nanoseconds
time before passing to the kernel.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
mount.cifs.c