To the best of my knowledge actions taken via the Previous Versions tab on the Windows client are all handled via client-side activity, eg: it doesn't have the ability to go tell ZFS to 'zfs rollback' in some way. However, it is still quite dangerous in theory, because the scenario you describe would, at least from what I can tell, basically copy all files from the snapshot version over top of the live dataset.
It is an interesting beast, too. One might expect that if you, for instance, create a dataset, put a file in it, snapshot it, put another file in it, then use Previous Versions on the folder itself to 'Restore' to the at that time only available previous version (due to the single snapshot), you'd expect that second file you made /after/ the snapshot to disappear. It does not. I would assume (I'll leave validation of this assumption to the user or someone who's already done it) what Windows is doing is literally copying the files/directories it sees in the previous version over top the live filesystem -- which of course doesn't actually delete any files that came after. Windows policies can control the availability of this feature, I believe. - Andrew On Tue, Nov 19, 2013 at 11:03 AM, Gabriele Bulfon <[email protected]>wrote: > Hi, > > I already googled about this, but all I can find is how to use the PV > tools of windows. > > What I'd like to know, is what really happens behind the scenes, in case > someone decides > to "restore" an entire folder, that is actually the whole zfs file system. > > Let's assume we have a ZFS fs shared /data/windows/marketing on the AD, > that is a real ZFS fs. > That share is visible as \\storage\marketing. > Someone loose a file hidden somewhere, but he wrongly decides to look at > the "previous versions" > of the \\storage\marketing root, and decides to hit "restore", instead of > "open" (then do his good work). > > What happens? > - Is this triggering a full rollback of the zfs snapshot? > - Is this just happening on the client side, so Windows decides how to > manage such a difficult task? > - ...what else?? > > Gabriele. > > > *illumos-discuss* | > Archives<https://www.listbox.com/member/archive/182180/=now> > <https://www.listbox.com/member/archive/rss/182180/24484419-ccb7a31c> | > Modify<https://www.listbox.com/member/?&>Your Subscription > <http://www.listbox.com> > ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
