Convert MessageID in smb2_hdr to LE
authorSachin Prabhu <sprabhu@redhat.com>
Tue, 9 Dec 2014 17:37:00 +0000 (17:37 +0000)
committerSteve French <steve.french@primarydata.com>
Sun, 14 Dec 2014 20:55:45 +0000 (14:55 -0600)
commit9235d09873316d602937b5d45c431fb653f3aed8
tree57891955422b96f3226fd913eefcae0d2e1f1611
parent9ea18f8cab5f1c36cdd0f09717e35ceb48c36a87
Convert MessageID in smb2_hdr to LE

We have encountered failures when When testing smb2 mounts on ppc64
machines when using both Samba as well as Windows 2012.

On poking around, the problem was determined to be caused by the
high endian MessageID passed in the header for smb2. On checking the
corresponding MID for smb1 is converted to LE before being sent on the
wire.

We have tested this patch successfully on a ppc64 machine.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
fs/cifs/cifsglob.h
fs/cifs/smb2misc.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.h
fs/cifs/smb2transport.c