Lines Matching refs:UNC
190 * UNC and prefixpath is now extracted from Opt_source
319 new_ctx->UNC = NULL;
330 DUP_CTX_STR(UNC);
488 * Return full path based on the values of @ctx->{UNC,prepath}.
497 ulen = strlen(ctx->UNC);
503 memcpy(s, ctx->UNC, ulen);
514 * Parse a devname into substrings and populate the ctx->UNC and ctx->prepath
531 /* make sure we have a valid UNC double delimiter prefix */
557 kfree(ctx->UNC);
558 ctx->UNC = kstrndup(devname, pos - devname, GFP_KERNEL);
559 if (!ctx->UNC)
562 convert_delimiter(ctx->UNC, '\\');
688 if (!ctx->UNC) {
689 cifs_errorf(fc, "CIFS mount error: No usable UNC path provided in device string!\n");
693 /* make sure UNC has a share name */
694 if (strlen(ctx->UNC) < 3 || !strchr(ctx->UNC + 3, '\\')) {
695 cifs_errorf(fc, "Malformed UNC. Unable to find share name.\n");
703 /* No ip= option specified? Try to get it from UNC */
704 /* Use the address part of the UNC. */
705 slash = strchr(&ctx->UNC[2], '\\');
706 len = slash - &ctx->UNC[2];
708 &ctx->UNC[2], len)) {
788 if (new_ctx->UNC &&
789 (!old_ctx->UNC || strcmp(new_ctx->UNC, old_ctx->UNC))) {
790 cifs_errorf(fc, "can not change UNC during remount\n");
864 * We can not change UNC/username/password/domainname/
869 STEAL_STRING(cifs_sb, ctx, UNC);
1213 kfree(ctx->UNC);
1214 ctx->UNC = NULL;
1222 cifs_errorf(fc, "Malformed UNC in devname\n");
1231 cifs_errorf(fc, "OOM when copying UNC string\n");
1236 cifs_errorf(fc, "OOM when copying UNC string\n");
1677 kfree(ctx->UNC);
1678 ctx->UNC = NULL;