[OpenAFS-devel] Windows Patch: profile upload problem
Derrick J Brashear
shadow@dementia.org
Thu, 25 Apr 2002 16:02:20 -0400 (EDT)
On Thu, 25 Apr 2002, Marc Dionne wrote:
> This problem was originally reported by Rodney Dyer a few months ago,
> and was a show stopper for us to use OpenAFS on Windows since we store
> our roaming profiles in AFS. The symptom was a failure to upload the
> profile at logout with the message "The specified server cannot perform
> the requested operation".
>
> Much poking revealed that Windows issues a "query file system info" SMB
> call at that time, with the information level "allocation info". The
> returned structure is expected to be 18 bytes long, but at least under
> my build environment it comes out as 20 bytes, and Windows marks this as
> a bad reply and fails to continue with the upload.
>
> The patch below fixes it for me; it requests an alignment to 2 bytes for
> the smb_tran2QFSInfo structure (the Visual C++ default is 8). I'm not
> sure what the equivalent would be for DJGPP ( __attribute__ ((packed)) ?
> ), or if the problem even exists there.
There's a patch in CVS already for this which does it slightly
differently, same result.