2020-04-25 13:27:58 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2019-01-24 21:10:46 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Hammerspace Inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NFS_SYSFS_H
|
|
|
|
#define __NFS_SYSFS_H
|
|
|
|
|
2019-01-30 02:40:10 +00:00
|
|
|
#define CONTAINER_ID_MAXLEN (64)
|
|
|
|
|
|
|
|
struct nfs_netns_client {
|
|
|
|
struct kobject kobject;
|
2023-06-15 18:07:25 +00:00
|
|
|
struct kobject nfs_net_kobj;
|
2019-01-30 02:40:10 +00:00
|
|
|
struct net *net;
|
2020-10-14 19:22:11 +00:00
|
|
|
const char __rcu *identifier;
|
2019-01-30 02:40:10 +00:00
|
|
|
};
|
2019-01-24 21:10:46 +00:00
|
|
|
|
2023-06-15 18:07:23 +00:00
|
|
|
extern struct kobject *nfs_net_kobj;
|
2019-01-24 21:10:46 +00:00
|
|
|
|
|
|
|
extern int nfs_sysfs_init(void);
|
|
|
|
extern void nfs_sysfs_exit(void);
|
|
|
|
|
2019-01-30 02:40:10 +00:00
|
|
|
void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net);
|
|
|
|
void nfs_netns_sysfs_destroy(struct nfs_net *netns);
|
|
|
|
|
2023-06-15 18:07:27 +00:00
|
|
|
void nfs_sysfs_link_rpc_client(struct nfs_server *server,
|
|
|
|
struct rpc_clnt *clnt, const char *sysfs_prefix);
|
2023-06-15 18:07:26 +00:00
|
|
|
void nfs_sysfs_add_server(struct nfs_server *s);
|
|
|
|
void nfs_sysfs_move_server_to_sb(struct super_block *s);
|
|
|
|
void nfs_sysfs_move_sb_to_server(struct nfs_server *s);
|
|
|
|
void nfs_sysfs_remove_server(struct nfs_server *s);
|
|
|
|
|
2019-01-24 21:10:46 +00:00
|
|
|
#endif
|