~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to fs/cifs/netmisc.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
836
836
}
837
837
 
838
838
int
839
 
map_smb_to_linux_error(struct smb_hdr *smb, int logErr)
 
839
map_smb_to_linux_error(struct smb_hdr *smb, bool logErr)
840
840
{
841
841
        unsigned int i;
842
842
        int rc = -EIO;  /* if transport error smb error may not be set */
919
919
                2 /* size of the bcc field */ + get_bcc(ptr));
920
920
}
921
921
 
922
 
unsigned int
923
 
smbCalcSize_LE(struct smb_hdr *ptr)
924
 
{
925
 
        return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) +
926
 
                2 /* size of the bcc field */ + get_bcc_le(ptr));
927
 
}
928
 
 
929
922
/* The following are taken from fs/ntfs/util.c */
930
923
 
931
924
#define NTFS_TIME_OFFSET ((u64)(369*365 + 89) * 24 * 3600 * 10000000)