]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
SMB3: parsing for new snapshot timestamp mount parm
authorSteve French <smfrench@gmail.com>
Sat, 12 Nov 2016 04:36:20 +0000 (22:36 -0600)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 28 Jun 2017 13:18:37 +0000 (10:18 -0300)
commita87a3edb0a45521a220620d7f39327dfc577ff5e
treef2520b0966a62417823863e366ec409417046f1c
parent753b363b2834c65fb7b3358437a7a4c820c41fd9
SMB3: parsing for new snapshot timestamp mount parm

BugLink: http://bugs.launchpad.net/bugs/1670508
New mount option "snapshot=<time>" to allow mounting an earlier
version of the remote volume (if such a snapshot exists on
the server).

Note that eventually specifying a snapshot time of 1 will allow
the user to mount the oldest snapshot. A subsequent patch
add the processing for that and another for actually specifying
the "time warp" create context on SMB2/SMB3 open.

Check to make sure SMB2 negotiated, and ensure that
we use a different tcon if mount same share twice
but with different snaphshot times

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
(cherry picked from commit 8b217fe7fcadd162944a88b14990b9723c27419f)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c