Lines Matching full:smb
811 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error() local
813 int rc = -EIO; /* if transport error smb error may not be set */ in map_smb_to_linux_error()
819 /* old style smb error codes */ in map_smb_to_linux_error()
820 if (smb->Status.CifsError == 0) in map_smb_to_linux_error()
823 if (smb->Flags2 & SMBFLG2_ERR_STATUS) { in map_smb_to_linux_error()
824 /* translate the newer STATUS codes to old style SMB errors in map_smb_to_linux_error()
826 __u32 err = le32_to_cpu(smb->Status.CifsError); in map_smb_to_linux_error()
833 smberrclass = smb->Status.DosError.ErrorClass; in map_smb_to_linux_error()
834 smberrcode = le16_to_cpu(smb->Status.DosError.Error); in map_smb_to_linux_error()
839 /* DOS class smb error codes - map DOS */ in map_smb_to_linux_error()
874 if (smb->Flags2 & SMBFLG2_ERR_STATUS) { in map_smb_to_linux_error()
875 __u32 err = le32_to_cpu(smb->Status.CifsError); in map_smb_to_linux_error()
882 cifs_dbg(FYI, "Mapping smb error code 0x%x to POSIX err %d\n", in map_smb_to_linux_error()
883 le32_to_cpu(smb->Status.CifsError), rc); in map_smb_to_linux_error()
885 /* generic corrective action e.g. reconnect SMB session on in map_smb_to_linux_error()
895 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error() local
897 rc = map_smb_to_linux_error((char *)smb, logErr); in map_and_check_smb_error()
898 if (rc == -EACCES && !(smb->Flags2 & SMBFLG2_ERR_STATUS)) { in map_and_check_smb_error()
900 __u8 class = smb->Status.DosError.ErrorClass; in map_and_check_smb_error()
901 __u16 code = le16_to_cpu(smb->Status.DosError.Error); in map_and_check_smb_error()
916 * calculate the size of the SMB message based on the fixed header