Home
last modified time | relevance | path

Searched refs:mountdata (Results 1 – 6 of 6) sorted by relevance

/linux-4.1.27/fs/cifs/
Dcifs_dfs_ref.c143 char *mountdata = NULL; in cifs_compose_mount_options() local
178 mountdata = kzalloc(md_len + 1, GFP_KERNEL); in cifs_compose_mount_options()
179 if (mountdata == NULL) { in cifs_compose_mount_options()
188 strncpy(mountdata, sb_mountdata, 5); in cifs_compose_mount_options()
211 strncat(mountdata, sb_mountdata + off, noff); in cifs_compose_mount_options()
214 strcat(mountdata, sb_mountdata + off); in cifs_compose_mount_options()
215 mountdata[md_len] = '\0'; in cifs_compose_mount_options()
218 if (mountdata[strlen(mountdata) - 1] != sep) in cifs_compose_mount_options()
219 strncat(mountdata, &sep, 1); in cifs_compose_mount_options()
220 strcat(mountdata, "ip="); in cifs_compose_mount_options()
[all …]
Dcifs_fs_sb.h66 char *mountdata; /* options received at mount time or via DFS refs */ member
Dcifsfs.c676 cifs_sb->mountdata = kstrndup(data, PAGE_SIZE, GFP_KERNEL); in cifs_do_mount()
677 if (cifs_sb->mountdata == NULL) { in cifs_do_mount()
734 kfree(cifs_sb->mountdata); in cifs_do_mount()
Dconnect.c1191 cifs_parse_mount_options(const char *mountdata, const char *devname, in cifs_parse_mount_options() argument
1262 if (!mountdata) in cifs_parse_mount_options()
1265 mountdata_copy = kstrndup(mountdata, PAGE_SIZE, GFP_KERNEL); in cifs_parse_mount_options()
3356 mdata = cifs_compose_mount_options(cifs_sb->mountdata, in expand_dfs_referral()
3371 kfree(cifs_sb->mountdata); in expand_dfs_referral()
3372 cifs_sb->mountdata = mdata; in expand_dfs_referral()
3831 kfree(cifs_sb->mountdata); in cifs_umount()
/linux-4.1.27/fs/nfs/
Dnfs4namespace.c237 static struct vfsmount *try_location(struct nfs_clone_mount *mountdata, in try_location() argument
242 struct net *net = rpc_net_ns(NFS_SB(mountdata->sb)->client); in try_location()
251 mountdata->mnt_path = mnt_path; in try_location()
254 mountdata->addr = kmalloc(addr_bufsize, GFP_KERNEL); in try_location()
255 if (mountdata->addr == NULL) in try_location()
267 mountdata->addrlen = nfs_parse_server_name(buf->data, buf->len, in try_location()
268 mountdata->addr, addr_bufsize, net); in try_location()
269 if (mountdata->addrlen == 0) in try_location()
272 rpc_set_port(mountdata->addr, NFS_PORT); in try_location()
276 mountdata->hostname = page2; in try_location()
[all …]
Dnamespace.c227 struct nfs_clone_mount *mountdata) in nfs_do_clone_mount() argument
229 return vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata); in nfs_do_clone_mount()
243 struct nfs_clone_mount mountdata = { in nfs_do_submount() local
264 mnt = nfs_do_clone_mount(NFS_SB(dentry->d_sb), devname, &mountdata); in nfs_do_submount()