vfs: add previous file version support for vfs_snapper
authorDavid Disseldorp <ddiss@samba.org>
Fri, 27 Jun 2014 13:31:36 +0000 (15:31 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 30 Jun 2014 17:25:15 +0000 (19:25 +0200)
commit377a1c860e3de2d4b0bd7ab8cd78c2c48687a3cf
treea811338445c8cb0235d142503f3aadbb47db5181
parent9261f7c6a0caae171eab5a499bae4b1f54c3a452
vfs: add previous file version support for vfs_snapper

Windows attempts to access previous file versions by first issuing an
FSCTL_SRV_ENUMERATE_SNAPSHOTS request, and then using the corresponding
snapshot timestamps in subsequent path based requests.

This change sees vfs_snapper provide snapshot enumeration data via the
get_shadow_copy_data VFS hook. Path based operations are also
intercepted, with @GMT-$time components converted to snapper .snapshot/#
paths.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_snapper.c