Lines Matching refs:UNC
65 char *UNC;
757 /* extract the host portion of the UNC string */
1016 vol->UNC = kmalloc(temp_len+1, GFP_KERNEL);
1017 if (vol->UNC == NULL)
1019 strcpy(vol->UNC, value);
1020 if (strncmp(vol->UNC, "//", 2) == 0) {
1021 vol->UNC[0] = '\\';
1022 vol->UNC[1] = '\\';
1023 } else if (strncmp(vol->UNC, "\\\\", 2) != 0) {
1025 "CIFS: UNC Path does not begin "
1030 printk(KERN_WARNING "CIFS: UNC name too long\n");
1332 if (vol->UNC == NULL) {
1334 printk(KERN_WARNING "CIFS: Missing UNC name for mount "
1339 vol->UNC = kmalloc(temp_len+1, GFP_KERNEL);
1340 if (vol->UNC == NULL)
1342 strcpy(vol->UNC, devname);
1343 if (strncmp(vol->UNC, "//", 2) == 0) {
1344 vol->UNC[0] = '\\';
1345 vol->UNC[1] = '\\';
1346 } else if (strncmp(vol->UNC, "\\\\", 2) != 0) {
1347 printk(KERN_WARNING "CIFS: UNC Path does not "
1351 value = strpbrk(vol->UNC+2, "/\\");
1355 printk(KERN_WARNING "CIFS: UNC name too long\n");
1360 vol->UNCip = &vol->UNC[2];
1523 cFYI(1, "UNC: %s ip: %s", volume_info->UNC, volume_info->UNCip);
1525 if (volume_info->UNCip && volume_info->UNC) {
1542 cERROR(1, "CIFS mount error: No UNC path (e.g. -o "
1559 tcp_ses->hostname = extract_hostname(volume_info->UNC);
1847 tcon = cifs_find_tcon(ses, volume_info->UNC);
1849 cFYI(1, "Found match on UNC path");
1873 if (strchr(volume_info->UNC + 3, '\\') == NULL
1874 && strchr(volume_info->UNC + 3, '/') == NULL) {
1884 rc = CIFSTCon(xid, ses, volume_info->UNC, tcon, volume_info->local_nls);
2504 kfree(volume_info->UNC);
2520 int unc_len = strnlen(volume_info->UNC, MAX_TREE_SIZE + 1);
2525 strncpy(full_path, volume_info->UNC, unc_len);