Patch: Move the handling of svhdx to vfs_default.c

Jeremy Allison jra at samba.org
Fri Oct 2 22:33:07 UTC 2015


On Thu, Oct 01, 2015 at 08:06:44PM -0500, Steve French wrote:
> Why do we return an error when we don't recognize a create context
> (rather than just ignore it as Microsoft servers do)?
> 
> MS-SMB2 says the following (and obviously Windows ignores AAPL rather
> than returning an error, so unknown contexts can or should be ignored)
> 
> "<247> Section 3.3.5.9: Windows Vista SP1, Windows Server 2008,
> Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012
> ignore create contexts having a NameLength greater than 4 and ignore
> create contexts with a length of 4 that are not specified "
> 
> HyperV in creating a VM (at least from Windows 10 MMC) fails on the
> open/create of the image over SMB3 due to us returning
> INVALID_DEVICE_REQUEST due to the unrecognized create context (for
> SVHDXOpenDeviceContext).  This is not actually running the VM, just
> creating an image file on a share.

As far as I can see in current master code we don't
complain about unrecognized create contexts, we just
ignore them as we should.

What Samba version were you running and can you give
me a level 10 log of the failure ?

Jeremy.



More information about the samba-technical mailing list