cifs_strtoUCS((wchar_t *) pSMB->OldFileName, fromName, PATH_MAX /* find define for this maxpathcomponent */ , nls_codepage); 
cifsConvertToUCS((__u16 *) pSMB->OldFileName, fromName, PATH_MAX, nls_codepage, remap); 
CIFSCreateHardLink(const int xid, struct cifsTconInfo *tcon,		   const char *fromName, const char *toName,		   const struct nls_table *nls_codepage){	int rc = 0;	NT_RENAME_REQ *pSMB = NULL;	RENAME_RSP *pSMBr = NULL;	int bytes_returned;	int name_len, name_len2;	__u16 count;	cFYI(1, ("In CIFSCreateHardLink"));winCreateHardLinkRetry:	rc = smb_init(SMB_COM_NT_RENAME, 4, tcon, (void **) &pSMB,		      (void **) &pSMBr);	if (rc)		return rc;	pSMB->SearchAttributes =	    cpu_to_le16(ATTR_READONLY | ATTR_HIDDEN | ATTR_SYSTEM |			ATTR_DIRECTORY);	pSMB->Flags = cpu_to_le16(CREATE_HARD_LINK);	pSMB->ClusterCount = 0;	pSMB->BufferFormat = 0x04;	if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {		name_len =		    cifs_strtoUCS((wchar_t *) pSMB->OldFileName, fromName, PATH_MAX				  /* find define for this maxpathcomponent */				  , nls_codepage);		name_len++;	/* trailing null */		name_len *= 2;		pSMB->OldFileName[name_len] = 0;	/* pad */		pSMB->OldFileName[name_len + 1] = 0x04; 		name_len2 =		    cifs_strtoUCS((wchar_t *) & pSMB->				  OldFileName[name_len + 2], toName, PATH_MAX,				  nls_codepage);		name_len2 += 1 /* trailing null */  + 1 /* Signature word */ ;		name_len2 *= 2;	/* convert to bytes */	} else {		/* BB improve the check for buffer overruns BB */		name_len = strnlen(fromName, PATH_MAX);		name_len++;	/* trailing null */		strncpy(pSMB->OldFileName, fromName, name_len);		name_len2 = strnlen(toName, PATH_MAX);		name_len2++;	/* trailing null */		pSMB->OldFileName[name_len] = 0x04;	/* 2nd buffer format */		strncpy(&pSMB->OldFileName[name_len + 1], toName, name_len2);		name_len2++;	/* trailing null */		name_len2++;	/* signature byte */	}	count = 1 /* string type byte */  + name_len + name_len2;	pSMB->hdr.smb_buf_length += count;	pSMB->ByteCount = cpu_to_le16(count);	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,			 (struct smb_hdr *) pSMBr, &bytes_returned, 0);	if (rc) {		cFYI(1, ("Send error in hard link (NT rename) = %d", rc));	}	cifs_buf_release(pSMB);	if (rc == -EAGAIN)		goto winCreateHardLinkRetry;	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/737b758c965a9b223ac1243ab38d9e507ac86c64/cifssmb.c/clean/fs/cifs/cifssmb.c