Lines Matching refs:sb_mountdata
137 char *cifs_compose_mount_options(const char *sb_mountdata, in cifs_compose_mount_options() argument
151 if (sb_mountdata == NULL) in cifs_compose_mount_options()
181 md_len = strlen(sb_mountdata) + INET6_ADDRSTRLEN; in cifs_compose_mount_options()
190 if (strncmp(sb_mountdata, "sep=", 4) == 0) { in cifs_compose_mount_options()
191 sep = sb_mountdata[4]; in cifs_compose_mount_options()
192 strncpy(mountdata, sb_mountdata, 5); in cifs_compose_mount_options()
197 tkn_e = strchr(sb_mountdata + off, sep); in cifs_compose_mount_options()
199 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options()
201 noff = tkn_e - (sb_mountdata + off) + 1; in cifs_compose_mount_options()
203 if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { in cifs_compose_mount_options()
207 if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { in cifs_compose_mount_options()
211 if (strncasecmp(sb_mountdata + off, "prefixpath=", 11) == 0) { in cifs_compose_mount_options()
215 strncat(mountdata, sb_mountdata + off, noff); in cifs_compose_mount_options()
218 strcat(mountdata, sb_mountdata + off); in cifs_compose_mount_options()