Home
last modified time | relevance | path

Searched refs:nfs_server (Results 1 – 25 of 48) sorted by relevance

12

/linux/fs/nfs/
H A Dsysfs.c238 struct nfs_server *server; in shutdown_nfs_client()
255 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in shutdown_show()
264 struct nfs_server *server; in shutdown_store()
267 server = container_of(kobj, struct nfs_server, kobj); in shutdown_store()
300 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in implid_domain_show()
315 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in implid_name_show()
329 void nfs_sysfs_link_rpc_client(struct nfs_server *server, in nfs_sysfs_link_rpc_client()
354 return container_of(kobj, struct nfs_server, kobj)->nfs_client->cl_net; in nfs_netns_server_namespace()
365 static void nfs_sysfs_add_nfsv41_server(struct nfs_server *server) in nfs_sysfs_add_nfsv41_server()
385 static inline void nfs_sysfs_add_nfsv41_server(struct nfs_server *server) in nfs_sysfs_add_nfsv41_server()
[all …]
H A Dnfs4namespace.c160 __func__, path, ctx->nfs_server.export_path); in nfs4_validate_fspath()
205 struct nfs_server *server, in nfs_find_best_sec()
307 kfree(ctx->nfs_server.hostname); in try_location()
308 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL); in try_location()
309 if (!ctx->nfs_server.hostname) in try_location()
313 &ctx->nfs_server.export_path_len); in try_location()
317 kfree(ctx->nfs_server.export_path); in try_location()
318 ctx->nfs_server.export_path = export_path; in try_location()
320 source = kmalloc(len + 1 + ctx->nfs_server.export_path_len + 1, in try_location()
333 ctx->nfs_server.addrlen = in try_location()
[all …]
H A Dsuper.c196 struct nfs_server *server = NFS_SB(sb); in nfs_sb_active()
208 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
216 int (*fn)(struct nfs_server *, void *), in __nfs_list_for_each_server() argument
219 struct nfs_server *server, *last = NULL; in __nfs_list_for_each_server()
244 int (*fn)(struct nfs_server *, void *), in nfs_client_for_each_server() argument
256 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
347 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid()
379 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options()
414 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
422 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
[all …]
H A Dnfs4idmap.h45 struct nfs_server;
58 void nfs_fattr_map_and_free_names(struct nfs_server *, struct nfs_fattr *);
60 int nfs_map_name_to_uid(const struct nfs_server *, const char *, size_t, kuid_t *);
61 int nfs_map_group_to_gid(const struct nfs_server *, const char *, size_t, kgid_t *);
62 int nfs_map_uid_to_name(const struct nfs_server *, kuid_t, char *, size_t);
63 int nfs_map_gid_to_group(const struct nfs_server *, kgid_t, char *, size_t);
H A Dfs_context.c363 switch (ctx->nfs_server.protocol) { in nfs_validate_transport_protocol()
372 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
376 switch (ctx->nfs_server.protocol) { in nfs_validate_transport_protocol()
378 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP_TLS; in nfs_validate_transport_protocol()
400 switch (ctx->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
678 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
686 ctx->nfs_server.protocol = ret; in nfs_fs_context_parse_param()
755 ctx->nfs_server.port = result.uint_32; in nfs_fs_context_parse_param()
864 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
871 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_fs_context_parse_param()
[all …]
H A Dinternal.h144 } nfs_server; member
147 struct nfs_server *server;
218 int nfs_probe_server(struct nfs_server *, struct nfs_fh *);
219 void nfs_server_insert_lists(struct nfs_server *);
220 void nfs_server_remove_lists(struct nfs_server *);
222 int nfs_init_server_rpcclient(struct nfs_server *, const struct rpc_timeout *t,
224 struct nfs_server *nfs_alloc_server(void);
225 void nfs_server_copy_userdata(struct nfs_server *, struct nfs_server *);
233 extern struct nfs_server *nfs_create_server(struct fs_context *);
234 extern void nfs_server_set_init_caps(struct nfs_server *);
[all …]
H A Dnfs4_fs.h65 int (*find_root_sec)(struct nfs_server *, struct nfs_fh *,
67 void (*free_lock_state)(struct nfs_server *,
69 int (*test_and_free_expired)(struct nfs_server *,
111 struct nfs_server *so_server;
266 int (*get_locations)(struct nfs_server *, struct nfs_fh *,
283 int nfs4_submount(struct fs_context *, struct nfs_server *);
284 int nfs4_replace_transport(struct nfs_server *server,
289 extern int nfs4_handle_exception(struct nfs_server *, int, struct nfs4_exception *);
291 struct nfs_server *server,
293 extern int nfs4_call_sync(struct rpc_clnt *, struct nfs_server *,
[all …]
H A Ddelegation.c33 static struct hlist_head *nfs_delegation_hash(struct nfs_server *server, in nfs_delegation_hash()
47 static void nfs_mark_delegation_revoked(struct nfs_server *server, in nfs_mark_delegation_revoked()
70 static void nfs_free_delegation(struct nfs_server *server, in nfs_free_delegation()
87 static void nfs_mark_return_delegation(struct nfs_server *server, in nfs_mark_return_delegation()
344 struct nfs_server *server, int err) in nfs_abort_delegation_return()
387 struct nfs_server *server) in nfs_detach_delegation()
401 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_detach_delegation()
425 nfs_update_inplace_delegation(struct nfs_server *server, in nfs_update_inplace_delegation()
459 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_set_delegation()
569 struct nfs_server *server = NFS_SERVER(inode); in nfs_end_delegation_return()
[all …]
H A Dclient.c222 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server()
236 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server()
572 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server()
581 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd()
626 int nfs_init_server_rpcclient(struct nfs_server *server, in nfs_init_server_rpcclient()
685 static void nfs4_server_set_init_caps(struct nfs_server *server) in nfs4_server_set_init_caps()
705 void nfs_server_set_init_caps(struct nfs_server *server) in nfs_server_set_init_caps()
726 static int nfs_init_server(struct nfs_server *server, in nfs_init_server()
732 .hostname = ctx->nfs_server.hostname, in nfs_init_server()
733 .addr = &ctx->nfs_server._address, in nfs_init_server()
[all …]
H A Dsysfs.h26 void nfs_sysfs_link_rpc_client(struct nfs_server *server,
28 void nfs_sysfs_add_server(struct nfs_server *s);
30 void nfs_sysfs_move_sb_to_server(struct nfs_server *s);
31 void nfs_sysfs_remove_server(struct nfs_server *s);
H A Dnfs4client.c797 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server()
898 static int nfs4_set_client(struct nfs_server *server, in nfs4_set_client()
967 struct nfs_client *nfs4_set_ds_client(struct nfs_server *mds_srv, in nfs4_set_ds_client()
1025 static void nfs4_session_limit_rwsize(struct nfs_server *server) in nfs4_session_limit_rwsize()
1050 static void nfs4_session_limit_xasize(struct nfs_server *server) in nfs4_session_limit_xasize()
1077 static int nfs4_server_common_setup(struct nfs_server *server, in nfs4_server_common_setup()
1126 static int nfs4_init_server(struct nfs_server *server, struct fs_context *fc) in nfs4_init_server()
1131 .hostname = ctx->nfs_server.hostname, in nfs4_init_server()
1132 .addr = &ctx->nfs_server._address, in nfs4_init_server()
1133 .addrlen = ctx->nfs_server.addrlen, in nfs4_init_server()
[all …]
H A Dpnfs.h139 int (*set_layoutdriver) (struct nfs_server *, const struct nfs_fh *);
140 int (*clear_layoutdriver) (struct nfs_server *);
171 (struct nfs_server *server, struct pnfs_device *pdev,
252 extern size_t max_response_pages(struct nfs_server *server);
253 extern int nfs4_proc_getdeviceinfo(struct nfs_server *server,
266 void set_pnfs_layoutdriver(struct nfs_server *, const struct nfs_fh *, struct nfs_fsinfo *);
267 void unset_pnfs_layoutdriver(struct nfs_server *);
380 nfs4_find_get_deviceid(struct nfs_server *server,
384 void nfs4_init_deviceid_node(struct nfs4_deviceid_node *, struct nfs_server *,
423 int nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds,
[all …]
H A Dnfs3_fs.h30 struct nfs_server *nfs3_create_server(struct fs_context *);
31 struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *,
H A Dnfs42proc.c50 struct nfs_server *server = NFS_SERVER(inode); in _nfs42_proc_fallocate()
105 struct nfs_server *server = NFS_SERVER(inode); in nfs42_proc_fallocate()
203 static void nfs4_copy_dequeue_callback(struct nfs_server *dst_server, in nfs4_copy_dequeue_callback()
204 struct nfs_server *src_server, in nfs4_copy_dequeue_callback()
218 struct nfs_server *dst_server, in handle_async_copy()
219 struct nfs_server *src_server, in handle_async_copy()
401 struct nfs_server *dst_server = NFS_SERVER(dst_inode); in _nfs42_proc_copy()
402 struct nfs_server *src_server = NFS_SERVER(src_inode); in _nfs42_proc_copy()
492 struct nfs_server *server = NFS_SERVER(file_inode(dst)); in nfs42_proc_copy()
577 struct nfs_server *seq_server;
[all …]
H A Dnamespace.c150 struct nfs_server *server = NFS_SB(path->dentry->d_sb); in nfs_d_automount()
178 memcpy(&ctx->nfs_server._address, &client->cl_addr, client->cl_addrlen); in nfs_d_automount()
179 ctx->nfs_server.addrlen = client->cl_addrlen; in nfs_d_automount()
180 ctx->nfs_server.port = server->port; in nfs_d_automount()
266 struct nfs_server *server; in nfs_do_submount()
302 int nfs_submount(struct fs_context *fc, struct nfs_server *server) in nfs_submount()
H A Dnfs4super.c142 static int do_nfs4_mount(struct nfs_server *server, in do_nfs4_mount()
251 fc, ctx->nfs_server.hostname, in nfs4_try_get_tree()
252 ctx->nfs_server.export_path); in nfs4_try_get_tree()
274 fc, ctx->nfs_server.hostname, in nfs4_get_referral_tree()
275 ctx->nfs_server.export_path); in nfs4_get_referral_tree()
H A Dnfs4proc.c94 static int nfs4_do_fsinfo(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *);
96 static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle,
106 static int nfs41_test_stateid(struct nfs_server *, const nfs4_stateid *,
108 static int nfs41_free_stateid(struct nfs_server *, nfs4_stateid *,
153 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask()
169 nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask()
409 static void nfs4_test_and_free_stateid(struct nfs_server *server, in nfs4_test_and_free_stateid()
418 static void __nfs4_free_revoked_stateid(struct nfs_server *server, in __nfs4_free_revoked_stateid()
426 static void nfs4_free_revoked_stateid(struct nfs_server *server, in nfs4_free_revoked_stateid()
502 static int nfs4_do_handle_exception(struct nfs_server *server, in nfs4_do_handle_exception()
[all …]
H A Diostat.h23 static inline void nfs_inc_server_stats(const struct nfs_server *server, in nfs_inc_server_stats()
35 static inline void nfs_add_server_stats(const struct nfs_server *server, in nfs_add_server_stats()
H A Dpnfs_dev.c97 nfs4_get_device_info(struct nfs_server *server, in nfs4_get_device_info()
170 __nfs4_find_get_deviceid(struct nfs_server *server, in __nfs4_find_get_deviceid()
185 nfs4_find_get_deviceid(struct nfs_server *server, in nfs4_find_get_deviceid()
251 nfs4_init_deviceid_node(struct nfs4_deviceid_node *d, struct nfs_server *server, in nfs4_init_deviceid_node()
H A Dnfs4idmap.c109 static bool nfs_fattr_map_owner_name(struct nfs_server *server, struct nfs_fattr *fattr) in nfs_fattr_map_owner_name()
123 static bool nfs_fattr_map_group_name(struct nfs_server *server, struct nfs_fattr *fattr) in nfs_fattr_map_group_name()
157 void nfs_fattr_map_and_free_names(struct nfs_server *server, struct nfs_fattr *fattr) in nfs_fattr_map_and_free_names()
735 int nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, kuid_t *… in nfs_map_name_to_uid()
752 int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t … in nfs_map_group_to_gid()
769 int nfs_map_uid_to_name(const struct nfs_server *server, kuid_t uid, char *buf, size_t buflen) in nfs_map_uid_to_name()
783 int nfs_map_gid_to_group(const struct nfs_server *server, kgid_t gid, char *buf, size_t buflen) in nfs_map_gid_to_group()
/linux/include/linux/
H A Dnfs_xdr.h314 const struct nfs_server *server;
447 const struct nfs_server *server;
493 const struct nfs_server *server; /* Needed for ID mapping */
511 const struct nfs_server *server;
558 const struct nfs_server *server;
648 struct nfs_server *server;
703 const struct nfs_server *server; /* used by write */
724 const struct nfs_server *server;
738 struct nfs_server *server;
756 struct nfs_server *server;
[all …]
H A Dnfs_fs.h353 static inline struct nfs_server *NFS_SB(const struct super_block *s) in NFS_SB()
355 return (struct nfs_server *)(s->s_fs_info); in NFS_SB()
363 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER()
380 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO()
386 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO()
457 extern int __nfs_revalidate_inode(struct nfs_server *, struct inode *);
480 extern struct nfs_fattr *nfs_alloc_fattr_with_label(struct nfs_server *server);
H A Dnfs_fs_sb.h21 struct nfs_server;
143 struct nfs_server { struct
274 void (*destroy)(struct nfs_server *); argument
/linux/fs/nfs/blocklayout/
H A Ddev.c289 bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d,
294 bl_parse_simple(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_simple()
385 bl_parse_scsi(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_scsi()
439 bl_parse_slice(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_slice()
455 bl_parse_concat(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_concat()
484 bl_parse_stripe(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_stripe()
513 bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_deviceid()
536 bl_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in bl_alloc_deviceid_node()
H A Dblocklayout.h182 struct nfs4_deviceid_node *bl_alloc_deviceid_node(struct nfs_server *server,
199 dev_t bl_resolve_deviceid(struct nfs_server *server,

12