Searched refs:sb_mountdata (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/fs/cifs/
H A Dcifs_dfs_ref.c126 * @sb_mountdata: parent/root DFS mount options (template)
131 * creates mount options for submount based on template options sb_mountdata
137 char *cifs_compose_mount_options(const char *sb_mountdata, cifs_compose_mount_options() argument
151 if (sb_mountdata == NULL) cifs_compose_mount_options()
177 md_len = strlen(sb_mountdata) + INET6_ADDRSTRLEN; cifs_compose_mount_options()
186 if (strncmp(sb_mountdata, "sep=", 4) == 0) { cifs_compose_mount_options()
187 sep = sb_mountdata[4]; cifs_compose_mount_options()
188 strncpy(mountdata, sb_mountdata, 5); cifs_compose_mount_options()
193 tkn_e = strchr(sb_mountdata + off, sep); cifs_compose_mount_options()
195 noff = strlen(sb_mountdata + off); cifs_compose_mount_options()
197 noff = tkn_e - (sb_mountdata + off) + 1; cifs_compose_mount_options()
199 if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { cifs_compose_mount_options()
203 if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { cifs_compose_mount_options()
207 if (strncasecmp(sb_mountdata + off, "prefixpath=", 11) == 0) { cifs_compose_mount_options()
211 strncat(mountdata, sb_mountdata + off, noff); cifs_compose_mount_options()
214 strcat(mountdata, sb_mountdata + off); cifs_compose_mount_options()
223 /*cifs_dbg(FYI, "%s: parent mountdata: %s\n", __func__, sb_mountdata);*/ cifs_compose_mount_options()
H A Dcifsproto.h68 extern char *cifs_compose_mount_options(const char *sb_mountdata,

Completed in 100 milliseconds