2011-11-25 22:13:04 +08:00
|
|
|
#ifndef __NFS_NETNS_H__
|
|
|
|
#define __NFS_NETNS_H__
|
|
|
|
|
|
|
|
#include <net/net_namespace.h>
|
|
|
|
#include <net/netns/generic.h>
|
|
|
|
|
2012-03-11 22:20:23 +08:00
|
|
|
struct bl_dev_msg {
|
|
|
|
int32_t status;
|
|
|
|
uint32_t major, minor;
|
|
|
|
};
|
|
|
|
|
2011-11-25 22:13:04 +08:00
|
|
|
struct nfs_net {
|
|
|
|
struct cache_detail *nfs_dns_resolve;
|
2012-01-10 21:04:24 +08:00
|
|
|
struct rpc_pipe *bl_device_pipe;
|
2012-03-11 22:20:23 +08:00
|
|
|
struct bl_dev_msg bl_mount_reply;
|
2012-03-11 22:20:31 +08:00
|
|
|
wait_queue_head_t bl_wq;
|
2012-01-24 01:26:05 +08:00
|
|
|
struct list_head nfs_client_list;
|
2012-01-24 01:26:14 +08:00
|
|
|
struct list_head nfs_volume_list;
|
2012-01-24 01:26:22 +08:00
|
|
|
#ifdef CONFIG_NFS_V4
|
|
|
|
struct idr cb_ident_idr; /* Protected by nfs_client_lock */
|
|
|
|
#endif
|
2012-01-24 01:26:31 +08:00
|
|
|
spinlock_t nfs_client_lock;
|
2011-11-25 22:13:04 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern int nfs_net_id;
|
|
|
|
|
|
|
|
#endif
|