Created attachment 7613 [details]
vfs_shadow_copy2 patch (FreeBSD 9 tested)
The patch attached extends the idea of Bug 7913 https://bugzilla.samba.org/show_bug.cgi?id=7913
and gives full functionality on windows 7.
There was an error in method of converting virtual paths to real (convert_shadow2_name function). It kept trailing slashes (one or double depending on using basedir)
Also shadow_copy2_connectpath returned virtual path, what caused an error.
I fixed it with some code duplicating from convert_shadow2_name and now it works fine
Patch tested on FreeBSD 9.0