shadow_copy2_realpath() snapshot path component removal

Jeremy Allison jra at samba.org
Thu Feb 13 15:36:14 MST 2014


On Thu, Feb 13, 2014 at 02:26:02PM -0800, Richard Sharpe wrote:
> On Thu, Feb 13, 2014 at 2:21 PM, David Disseldorp <ddiss at suse.de> wrote:
> >
> >
> > On February 13, 2014 11:00:37 PM CET, Richard Sharpe <realrichardsharpe at gmail.com> wrote:
> >
> >>One thing I notice in looking at the code is that it does not seem to
> >>behave the way Windows really does.
> >>
> >>For example, if your snapshots are read-only, I suspect that users
> >>will get ACCESS_DENIED messages when trying to open a shadow-copy file
> >>for write-like access, but Windows allows such access and returns
> >>VOLUME_WRITE_PROTECTED when you try to actually perform write-like
> >>operations.
> >
> > I expect that's just a side-effect of VSS doing the COW snapshot at the block layer.
> > I.e. The filesystem/SD permit write access, but the IOs are rejected at the device layer.
> 
> Of course it is, but that is not the point. Users get very unhappy
> when it does not behave the way it behaves on Windows.

New test case please inside smbtorture4 ! That way we can at least know when
we're working :-).

Jeremy.


More information about the samba-technical mailing list