Lines Matching refs:sb_mountdata
135 char *cifs_compose_mount_options(const char *sb_mountdata, in cifs_compose_mount_options() argument
150 if (sb_mountdata == NULL) in cifs_compose_mount_options()
192 md_len = strlen(sb_mountdata) + INET6_ADDRSTRLEN; in cifs_compose_mount_options()
201 if (strncmp(sb_mountdata, "sep=", 4) == 0) { in cifs_compose_mount_options()
202 sep = sb_mountdata[4]; in cifs_compose_mount_options()
203 strncpy(mountdata, sb_mountdata, 5); in cifs_compose_mount_options()
208 tkn_e = strchr(sb_mountdata + off, sep); in cifs_compose_mount_options()
210 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options()
212 noff = tkn_e - (sb_mountdata + off) + 1; in cifs_compose_mount_options()
214 if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { in cifs_compose_mount_options()
218 if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { in cifs_compose_mount_options()
222 if (strncasecmp(sb_mountdata + off, "prefixpath=", 11) == 0) { in cifs_compose_mount_options()
226 strncat(mountdata, sb_mountdata + off, noff); in cifs_compose_mount_options()
229 strcat(mountdata, sb_mountdata + off); in cifs_compose_mount_options()