Home
last modified time | relevance | path

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

/linux-3.4.99/fs/cifs/
Dcifs_dfs_ref.c126 char *mountdata = NULL; in cifs_compose_mount_options() local
156 mountdata = kzalloc(md_len+1, GFP_KERNEL); in cifs_compose_mount_options()
157 if (mountdata == NULL) { in cifs_compose_mount_options()
166 strncpy(mountdata, sb_mountdata, 5); in cifs_compose_mount_options()
189 strncat(mountdata, sb_mountdata + off, noff); in cifs_compose_mount_options()
192 strcat(mountdata, sb_mountdata + off); in cifs_compose_mount_options()
193 mountdata[md_len] = '\0'; in cifs_compose_mount_options()
196 if (mountdata[strlen(mountdata) - 1] != sep) in cifs_compose_mount_options()
197 strncat(mountdata, &sep, 1); in cifs_compose_mount_options()
198 strcat(mountdata, "ip="); in cifs_compose_mount_options()
[all …]
Dcifs_fs_sb.h65 char *mountdata; /* options received at mount time or via DFS refs */ member
Dcifsfs.c640 cifs_sb->mountdata = kstrndup(data, PAGE_SIZE, GFP_KERNEL); in cifs_do_mount()
641 if (cifs_sb->mountdata == NULL) { in cifs_do_mount()
698 kfree(cifs_sb->mountdata); in cifs_do_mount()
Dconnect.c1195 cifs_parse_mount_options(const char *mountdata, const char *devname, in cifs_parse_mount_options() argument
1245 if (!mountdata) in cifs_parse_mount_options()
1248 mountdata_copy = kstrndup(mountdata, PAGE_SIZE, GFP_KERNEL); in cifs_parse_mount_options()
3579 mdata = cifs_compose_mount_options(cifs_sb->mountdata, in expand_dfs_referral()
3595 kfree(cifs_sb->mountdata); in expand_dfs_referral()
3596 cifs_sb->mountdata = mdata; in expand_dfs_referral()
4039 kfree(cifs_sb->mountdata); in cifs_umount()
/linux-3.4.99/fs/nfs/
Dnfs4namespace.c188 static struct vfsmount *try_location(struct nfs_clone_mount *mountdata, in try_location() argument
201 mountdata->mnt_path = mnt_path; in try_location()
204 mountdata->addr = kmalloc(addr_bufsize, GFP_KERNEL); in try_location()
205 if (mountdata->addr == NULL) in try_location()
217 mountdata->addrlen = nfs_parse_server_name(buf->data, buf->len, in try_location()
218 mountdata->addr, addr_bufsize, in try_location()
219 NFS_SB(mountdata->sb)); in try_location()
220 if (mountdata->addrlen == 0) in try_location()
223 rpc_set_port(mountdata->addr, NFS_PORT); in try_location()
227 mountdata->hostname = page2; in try_location()
[all …]
Dnamespace.c303 struct nfs_clone_mount *mountdata) in nfs_do_clone_mount() argument
310 mnt = vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata); in nfs_do_clone_mount()
313 mnt = vfs_kern_mount(&nfs4_xdev_fs_type, 0, devname, mountdata); in nfs_do_clone_mount()
317 return vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata); in nfs_do_clone_mount()
334 struct nfs_clone_mount mountdata = { in nfs_do_submount() local
356 mnt = nfs_do_clone_mount(NFS_SB(dentry->d_sb), devname, &mountdata); in nfs_do_submount()