Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/fs/nfs/
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);
Dnfs4namespace.c160 __func__, path, ctx->nfs_server.export_path); in nfs4_validate_fspath()
199 struct nfs_server *server, in nfs_find_best_sec()
301 kfree(ctx->nfs_server.hostname); in try_location()
302 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL); in try_location()
303 if (!ctx->nfs_server.hostname) in try_location()
307 &ctx->nfs_server.export_path_len); in try_location()
311 kfree(ctx->nfs_server.export_path); in try_location()
312 ctx->nfs_server.export_path = export_path; in try_location()
314 source = kmalloc(len + 1 + ctx->nfs_server.export_path_len + 1, in try_location()
327 ctx->nfs_server.addrlen = in try_location()
[all …]
Dnfs3client.c25 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient()
42 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient()
49 struct nfs_server *nfs3_create_server(struct fs_context *fc) in nfs3_create_server()
51 struct nfs_server *server = nfs_create_server(fc); in nfs3_create_server()
59 struct nfs_server *nfs3_clone_server(struct nfs_server *source, in nfs3_clone_server()
64 struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); in nfs3_clone_server()
80 struct nfs_client *nfs3_set_ds_client(struct nfs_server *mds_srv, in nfs3_set_ds_client()
Dfs_context.c277 switch (ctx->nfs_server.protocol) { in nfs_validate_transport_protocol()
283 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
298 switch (ctx->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
510 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
514 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_fs_context_parse_param()
518 ctx->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_fs_context_parse_param()
572 ctx->nfs_server.port = result.uint_32; in nfs_fs_context_parse_param()
658 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
665 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_fs_context_parse_param()
673 ctx->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_fs_context_parse_param()
[all …]
Dsuper.c177 struct nfs_server *server = NFS_SB(sb); in nfs_sb_active()
189 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
197 int (*fn)(struct nfs_server *, void *), in __nfs_list_for_each_server() argument
200 struct nfs_server *server, *last = NULL; in __nfs_list_for_each_server()
224 int (*fn)(struct nfs_server *, void *), in nfs_client_for_each_server() argument
236 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
327 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid()
359 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options()
394 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
402 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
[all …]
Dinternal.h130 } nfs_server; member
133 struct nfs_server *server;
199 int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *, struct nfs_fattr *);
200 void nfs_server_insert_lists(struct nfs_server *);
201 void nfs_server_remove_lists(struct nfs_server *);
203 int nfs_init_server_rpcclient(struct nfs_server *, const struct rpc_timeout *t,
205 struct nfs_server *nfs_alloc_server(void);
206 void nfs_server_copy_userdata(struct nfs_server *, struct nfs_server *);
214 extern struct nfs_server *nfs_create_server(struct fs_context *);
215 extern struct nfs_server *nfs4_create_server(struct fs_context *);
[all …]
Dnfs4_fs.h63 int (*find_root_sec)(struct nfs_server *, struct nfs_fh *,
65 void (*free_lock_state)(struct nfs_server *,
67 int (*test_and_free_expired)(struct nfs_server *,
109 struct nfs_server *so_server;
281 int nfs4_submount(struct fs_context *, struct nfs_server *);
282 int nfs4_replace_transport(struct nfs_server *server,
286 extern int nfs4_handle_exception(struct nfs_server *, int, struct nfs4_exception *);
288 struct nfs_server *server,
290 extern int nfs4_call_sync(struct rpc_clnt *, struct nfs_server *,
296 extern int nfs4_proc_get_rootfh(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *, bool);
[all …]
Dnfs4client.c760 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server()
860 static int nfs4_set_client(struct nfs_server *server, in nfs4_set_client()
929 struct nfs_client *nfs4_set_ds_client(struct nfs_server *mds_srv, in nfs4_set_ds_client()
975 static void nfs4_session_limit_rwsize(struct nfs_server *server) in nfs4_session_limit_rwsize()
1000 static void nfs4_session_limit_xasize(struct nfs_server *server) in nfs4_session_limit_xasize()
1027 static int nfs4_server_common_setup(struct nfs_server *server, in nfs4_server_common_setup()
1092 static int nfs4_init_server(struct nfs_server *server, struct fs_context *fc) in nfs4_init_server()
1098 nfs_init_timeout_values(&timeparms, ctx->nfs_server.protocol, in nfs4_init_server()
1116 ctx->nfs_server.hostname, in nfs4_init_server()
1117 &ctx->nfs_server.address, in nfs4_init_server()
[all …]
Dclient.c215 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server()
229 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server()
552 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server()
561 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd()
605 int nfs_init_server_rpcclient(struct nfs_server *server, in nfs_init_server_rpcclient()
666 static int nfs_init_server(struct nfs_server *server, in nfs_init_server()
672 .hostname = ctx->nfs_server.hostname, in nfs_init_server()
673 .addr = (const struct sockaddr *)&ctx->nfs_server.address, in nfs_init_server()
674 .addrlen = ctx->nfs_server.addrlen, in nfs_init_server()
676 .proto = ctx->nfs_server.protocol, in nfs_init_server()
[all …]
Ddelegation.c78 static void nfs_mark_return_delegation(struct nfs_server *server, in nfs_mark_return_delegation()
364 struct nfs_server *server) in nfs_detach_delegation()
378 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_detach_delegation()
435 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_set_delegation()
576 static int nfs_server_return_marked_delegations(struct nfs_server *server, in nfs_server_return_marked_delegations()
649 static bool nfs_server_clear_delayed_delegations(struct nfs_server *server) in nfs_server_clear_delayed_delegations()
666 struct nfs_server *server; in nfs_client_clear_delayed_delegations()
808 static void nfs_mark_return_if_closed_delegation(struct nfs_server *server, in nfs_mark_return_if_closed_delegation()
815 static bool nfs_server_mark_return_all_delegations(struct nfs_server *server) in nfs_server_mark_return_all_delegations()
829 struct nfs_server *server; in nfs_client_mark_return_all_delegations()
[all …]
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 *,
Dfscache.c115 struct nfs_server *nfss = NFS_SB(sb); in nfs_fscache_get_super_cookie()
132 key->key.nfs_server.flags = nfss->flags; in nfs_fscache_get_super_cookie()
133 key->key.nfs_server.rsize = nfss->rsize; in nfs_fscache_get_super_cookie()
134 key->key.nfs_server.wsize = nfss->wsize; in nfs_fscache_get_super_cookie()
135 key->key.nfs_server.acregmin = nfss->acregmin; in nfs_fscache_get_super_cookie()
136 key->key.nfs_server.acregmax = nfss->acregmax; in nfs_fscache_get_super_cookie()
137 key->key.nfs_server.acdirmin = nfss->acdirmin; in nfs_fscache_get_super_cookie()
138 key->key.nfs_server.acdirmax = nfss->acdirmax; in nfs_fscache_get_super_cookie()
139 key->key.nfs_server.fsid = nfss->fsid; in nfs_fscache_get_super_cookie()
211 struct nfs_server *nfss = NFS_SB(sb); in nfs_fscache_release_super_cookie()
[all …]
Dpnfs.h133 int (*set_layoutdriver) (struct nfs_server *, const struct nfs_fh *);
134 int (*clear_layoutdriver) (struct nfs_server *);
165 (struct nfs_server *server, struct pnfs_device *pdev,
241 extern size_t max_response_pages(struct nfs_server *server);
242 extern int nfs4_proc_getdeviceinfo(struct nfs_server *server,
252 void set_pnfs_layoutdriver(struct nfs_server *, const struct nfs_fh *, struct nfs_fsinfo *);
253 void unset_pnfs_layoutdriver(struct nfs_server *);
364 nfs4_find_get_deviceid(struct nfs_server *server,
368 void nfs4_init_deviceid_node(struct nfs4_deviceid_node *, struct nfs_server *,
408 int nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds,
[all …]
Dnfs4super.c142 static int do_nfs4_mount(struct nfs_server *server, in do_nfs4_mount()
227 fc, ctx->nfs_server.hostname, in nfs4_try_get_tree()
228 ctx->nfs_server.export_path); in nfs4_try_get_tree()
250 fc, ctx->nfs_server.hostname, in nfs4_get_referral_tree()
251 ctx->nfs_server.export_path); in nfs4_get_referral_tree()
Dnamespace.c150 struct nfs_server *server = NFS_SERVER(d_inode(path->dentry)); 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()
263 struct nfs_server *server; in nfs_do_submount()
299 int nfs_submount(struct fs_context *fc, struct nfs_server *server) in nfs_submount()
Dnfs42proc.c48 struct nfs_server *server = NFS_SERVER(inode); in _nfs42_proc_fallocate()
94 struct nfs_server *server = NFS_SERVER(inode); in nfs42_proc_fallocate()
168 struct nfs_server *dst_server, in handle_async_copy()
169 struct nfs_server *src_server, in handle_async_copy()
289 struct nfs_server *dst_server = NFS_SERVER(dst_inode); in _nfs42_proc_copy()
290 struct nfs_server *src_server = NFS_SERVER(src_inode); in _nfs42_proc_copy()
389 struct nfs_server *server = NFS_SERVER(file_inode(dst)); in nfs42_proc_copy()
472 struct nfs_server *seq_server;
511 struct nfs_server *dst_server = NFS_SERVER(file_inode(dst)); in nfs42_do_offload_cancel_async()
558 struct nfs_server *src_server = NFS_SERVER(file_inode(src)); in _nfs42_proc_copy_notify()
[all …]
Dnfs4proc.c98 static int nfs4_do_fsinfo(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *);
100 static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *…
110 static int nfs41_test_stateid(struct nfs_server *, nfs4_stateid *,
112 static int nfs41_free_stateid(struct nfs_server *, const nfs4_stateid *,
117 struct nfs_server *server,
146 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask()
162 nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask()
372 static void nfs4_test_and_free_stateid(struct nfs_server *server, in nfs4_test_and_free_stateid()
381 static void __nfs4_free_revoked_stateid(struct nfs_server *server, in __nfs4_free_revoked_stateid()
389 static void nfs4_free_revoked_stateid(struct nfs_server *server, in nfs4_free_revoked_stateid()
[all …]
Dfscache.h42 } nfs_server; member
185 static inline const char *nfs_server_fscache_state(struct nfs_server *server) in nfs_server_fscache_state()
236 static inline const char *nfs_server_fscache_state(struct nfs_server *server) in nfs_server_fscache_state()
Diostat.h26 static inline void nfs_inc_server_stats(const struct nfs_server *server, in nfs_inc_server_stats()
38 static inline void nfs_add_server_stats(const struct nfs_server *server, in nfs_add_server_stats()
Dnfs4state.c205 nfs4_get_renew_cred_server_locked(struct nfs_server *server) in nfs4_get_renew_cred_server_locked()
233 struct nfs_server *server; in nfs4_get_renew_cred()
402 nfs4_find_state_owner_locked(struct nfs_server *server, const struct cred *cred) in nfs4_find_state_owner_locked()
431 struct nfs_server *server = new->so_server; in nfs4_insert_state_owner_locked()
461 struct nfs_server *server = sp->so_server; in nfs4_remove_state_owner_locked()
490 nfs4_alloc_state_owner(struct nfs_server *server, in nfs4_alloc_state_owner()
540 static void nfs4_gc_state_owners(struct nfs_server *server) in nfs4_gc_state_owners()
573 struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *server, in nfs4_get_state_owner()
612 struct nfs_server *server = sp->so_server; in nfs4_put_state_owner()
634 void nfs4_purge_state_owners(struct nfs_server *server, struct list_head *head) in nfs4_purge_state_owners()
[all …]
Dpnfs_dev.c95 nfs4_get_device_info(struct nfs_server *server, in nfs4_get_device_info()
171 __nfs4_find_get_deviceid(struct nfs_server *server, in __nfs4_find_get_deviceid()
186 nfs4_find_get_deviceid(struct nfs_server *server, in nfs4_find_get_deviceid()
248 nfs4_init_deviceid_node(struct nfs4_deviceid_node *d, struct nfs_server *server, in nfs4_init_deviceid_node()
/kernel/linux/linux-5.10/include/linux/
Dnfs_xdr.h308 const struct nfs_server *server;
441 const struct nfs_server *server;
471 const struct nfs_server *server; /* Needed for ID mapping */
490 const struct nfs_server *server;
540 const struct nfs_server *server;
622 struct nfs_server *server;
674 const struct nfs_server *server; /* used by write */
695 const struct nfs_server *server;
709 struct nfs_server *server;
727 struct nfs_server *server;
[all …]
Dnfs_fs.h271 static inline struct nfs_server *NFS_SB(const struct super_block *s) in NFS_SB()
273 return (struct nfs_server *)(s->s_fs_info); in NFS_SB()
281 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER()
298 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MINATTRTIMEO()
304 struct nfs_server *nfss = NFS_SERVER(inode); in NFS_MAXATTRTIMEO()
384 extern int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode);
385 extern int __nfs_revalidate_inode(struct nfs_server *, struct inode *);
Dnfs_fs_sb.h20 struct nfs_server;
134 struct nfs_server { struct
240 void (*destroy)(struct nfs_server *); argument
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Ddev.c230 bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d,
235 bl_parse_simple(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_simple()
352 bl_parse_scsi(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_scsi()
401 bl_parse_slice(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_slice()
417 bl_parse_concat(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_concat()
446 bl_parse_stripe(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_stripe()
475 bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_deviceid()
496 bl_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in bl_alloc_deviceid_node()

123