Home
last modified time | relevance | path

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

/linux-2.6.39/fs/cifs/
Dcifs_dfs_ref.c125 char *mountdata = NULL; in cifs_compose_mount_options() local
153 mountdata = kzalloc(md_len+1, GFP_KERNEL); in cifs_compose_mount_options()
154 if (mountdata == NULL) { in cifs_compose_mount_options()
163 strncpy(mountdata, sb_mountdata, 5); in cifs_compose_mount_options()
186 strncat(mountdata, sb_mountdata + off, noff); in cifs_compose_mount_options()
189 strcat(mountdata, sb_mountdata + off); in cifs_compose_mount_options()
190 mountdata[md_len] = '\0'; in cifs_compose_mount_options()
193 if (mountdata[strlen(mountdata) - 1] != sep) in cifs_compose_mount_options()
194 strncat(mountdata, &sep, 1); in cifs_compose_mount_options()
195 strcat(mountdata, "ip="); in cifs_compose_mount_options()
[all …]
Dcifsfs.c141 cifs_sb->mountdata = kzalloc(len + 1, GFP_KERNEL); in cifs_read_super()
142 if (cifs_sb->mountdata == NULL) { in cifs_read_super()
148 strncpy(cifs_sb->mountdata, data, len + 1); in cifs_read_super()
149 cifs_sb->mountdata[len] = '\0'; in cifs_read_super()
206 if (cifs_sb->mountdata) { in cifs_read_super()
207 kfree(cifs_sb->mountdata); in cifs_read_super()
208 cifs_sb->mountdata = NULL; in cifs_read_super()
235 if (cifs_sb->mountdata) { in cifs_put_super()
236 kfree(cifs_sb->mountdata); in cifs_put_super()
237 cifs_sb->mountdata = NULL; in cifs_put_super()
Dcifs_fs_sb.h62 char *mountdata; /* mount options received at mount time */ member
Dconnect.c2914 cifs_sb->mountdata, full_path + 1, in cifs_mount()
/linux-2.6.39/fs/nfs/
Dnfs4namespace.c110 static struct vfsmount *try_location(struct nfs_clone_mount *mountdata, in try_location() argument
123 mountdata->mnt_path = mnt_path; in try_location()
126 mountdata->addr = kmalloc(addr_bufsize, GFP_KERNEL); in try_location()
127 if (mountdata->addr == NULL) in try_location()
139 mountdata->addrlen = nfs_parse_server_name(buf->data, buf->len, in try_location()
140 mountdata->addr, addr_bufsize); in try_location()
141 if (mountdata->addrlen == 0) in try_location()
144 rpc_set_port(mountdata->addr, NFS_PORT); in try_location()
148 mountdata->hostname = page2; in try_location()
151 mountdata->hostname, in try_location()
[all …]
Dnamespace.c310 struct nfs_clone_mount *mountdata) in nfs_do_clone_mount() argument
317 mnt = vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata); in nfs_do_clone_mount()
320 mnt = vfs_kern_mount(&nfs4_xdev_fs_type, 0, devname, mountdata); in nfs_do_clone_mount()
324 return vfs_kern_mount(&nfs_xdev_fs_type, 0, devname, mountdata); in nfs_do_clone_mount()
341 struct nfs_clone_mount mountdata = { in nfs_do_submount() local
363 mnt = nfs_do_clone_mount(NFS_SB(dentry->d_sb), devname, &mountdata); in nfs_do_submount()