Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
super.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/metrics.h>
#include <linux/sunrpc/xprtsock.h>
#include <linux/sunrpc/xprtrdma.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_mount.h>
#include <linux/nfs4_mount.h>
#include <linux/lockd/bind.h>
#include <linux/seq_file.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/nfs_idmap.h>
#include <linux/vfs.h>
#include <linux/inet.h>
#include <linux/in6.h>
#include <linux/slab.h>
#include <net/ipv6.h>
#include <linux/netdevice.h>
#include <linux/nfs_xdr.h>
#include <linux/magic.h>
#include <linux/parser.h>
#include <linux/nsproxy.h>
#include <linux/rcupdate.h>
#include <linux/kthread.h>
#include <asm/uaccess.h>
#include "nfs4_fs.h"
#include "callback.h"
#include "delegation.h"
#include "iostat.h"
#include "internal.h"
#include "fscache.h"
#include "pnfs.h"
#include "nfs.h"

Go to the source code of this file.

Data Structures

struct  nfs_sb_mountdata
 

Macros

#define NFSDBG_FACILITY   NFSDBG_VFS
 
#define NFS_TEXT_DATA   1
 
#define NFS_DEFAULT_VERSION   2
 

Enumerations

enum  {
  Opt_soft, Opt_hard, Opt_posix, Opt_noposix,
  Opt_cto, Opt_nocto, Opt_ac, Opt_noac,
  Opt_lock, Opt_nolock, Opt_udp, Opt_tcp,
  Opt_rdma, Opt_acl, Opt_noacl, Opt_rdirplus,
  Opt_nordirplus, Opt_sharecache, Opt_nosharecache, Opt_resvport,
  Opt_noresvport, Opt_fscache, Opt_nofscache, Opt_migration,
  Opt_nomigration, Opt_port, Opt_rsize, Opt_wsize,
  Opt_bsize, Opt_timeo, Opt_retrans, Opt_acregmin,
  Opt_acregmax, Opt_acdirmin, Opt_acdirmax, Opt_actimeo,
  Opt_namelen, Opt_mountport, Opt_mountvers, Opt_minorversion,
  Opt_nfsvers, Opt_sec, Opt_proto, Opt_mountproto,
  Opt_mounthost, Opt_addr, Opt_mountaddr, Opt_clientaddr,
  Opt_lookupcache, Opt_fscache_uniq, Opt_local_lock, Opt_userspace,
  Opt_deprecated, Opt_sloppy, Opt_err
}
 
enum  {
  Opt_xprt_udp, Opt_xprt_udp6, Opt_xprt_tcp, Opt_xprt_tcp6,
  Opt_xprt_rdma, Opt_xprt_err
}
 
enum  {
  Opt_sec_none, Opt_sec_sys, Opt_sec_krb5, Opt_sec_krb5i,
  Opt_sec_krb5p, Opt_sec_lkey, Opt_sec_lkeyi, Opt_sec_lkeyp,
  Opt_sec_spkm, Opt_sec_spkmi, Opt_sec_spkmp, Opt_sec_err
}
 
enum  { Opt_lookupcache_all, Opt_lookupcache_positive, Opt_lookupcache_none, Opt_lookupcache_err }
 
enum  {
  Opt_local_lock_all, Opt_local_lock_flock, Opt_local_lock_posix, Opt_local_lock_none,
  Opt_local_lock_err
}
 
enum  {
  Opt_vers_2, Opt_vers_3, Opt_vers_4, Opt_vers_4_0,
  Opt_vers_4_1, Opt_vers_err
}
 

Functions

 EXPORT_SYMBOL_GPL (nfs_fs_type)
 
 EXPORT_SYMBOL_GPL (nfs_sops)
 
int __init register_nfs_fs (void)
 
void __exit unregister_nfs_fs (void)
 
void nfs_sb_active (struct super_block *sb)
 
 EXPORT_SYMBOL_GPL (nfs_sb_active)
 
void nfs_sb_deactive (struct super_block *sb)
 
 EXPORT_SYMBOL_GPL (nfs_sb_deactive)
 
void nfs_sb_deactive_async (struct super_block *sb)
 
 EXPORT_SYMBOL_GPL (nfs_sb_deactive_async)
 
int nfs_statfs (struct dentry *dentry, struct kstatfs *buf)
 
 EXPORT_SYMBOL_GPL (nfs_statfs)
 
int nfs_show_options (struct seq_file *m, struct dentry *root)
 
 EXPORT_SYMBOL_GPL (nfs_show_options)
 
int nfs_show_devname (struct seq_file *m, struct dentry *root)
 
 EXPORT_SYMBOL_GPL (nfs_show_devname)
 
int nfs_show_path (struct seq_file *m, struct dentry *dentry)
 
 EXPORT_SYMBOL_GPL (nfs_show_path)
 
int nfs_show_stats (struct seq_file *m, struct dentry *root)
 
 EXPORT_SYMBOL_GPL (nfs_show_stats)
 
void nfs_umount_begin (struct super_block *sb)
 
 EXPORT_SYMBOL_GPL (nfs_umount_begin)
 
struct dentrynfs_try_mount (int flags, const char *dev_name, struct nfs_mount_info *mount_info, struct nfs_subversion *nfs_mod)
 
 EXPORT_SYMBOL_GPL (nfs_try_mount)
 
int nfs_remount (struct super_block *sb, int *flags, char *raw_data)
 
 EXPORT_SYMBOL_GPL (nfs_remount)
 
void nfs_initialise_sb (struct super_block *sb)
 
void nfs_fill_super (struct super_block *sb, struct nfs_mount_info *mount_info)
 
 EXPORT_SYMBOL_GPL (nfs_fill_super)
 
void nfs_clone_super (struct super_block *sb, struct nfs_mount_info *mount_info)
 
int nfs_set_sb_security (struct super_block *s, struct dentry *mntroot, struct nfs_mount_info *mount_info)
 
 EXPORT_SYMBOL_GPL (nfs_set_sb_security)
 
int nfs_clone_sb_security (struct super_block *s, struct dentry *mntroot, struct nfs_mount_info *mount_info)
 
 EXPORT_SYMBOL_GPL (nfs_clone_sb_security)
 
struct dentrynfs_fs_mount_common (struct nfs_server *server, int flags, const char *dev_name, struct nfs_mount_info *mount_info, struct nfs_subversion *nfs_mod)
 
 EXPORT_SYMBOL_GPL (nfs_fs_mount_common)
 
struct dentrynfs_fs_mount (struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data)
 
 EXPORT_SYMBOL_GPL (nfs_fs_mount)
 
void nfs_put_super (struct super_block *s)
 
 EXPORT_SYMBOL_GPL (nfs_put_super)
 
void nfs_kill_super (struct super_block *s)
 
 EXPORT_SYMBOL_GPL (nfs_kill_super)
 

Variables

struct file_system_type nfs_fs_type
 
struct file_system_type nfs_xdev_fs_type
 
struct super_operations nfs_sops
 

Macro Definition Documentation

#define NFS_DEFAULT_VERSION   2

Definition at line 76 of file super.c.

#define NFS_TEXT_DATA   1

Definition at line 71 of file super.c.

#define NFSDBG_FACILITY   NFSDBG_VFS

Definition at line 70 of file super.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_soft 
Opt_hard 
Opt_posix 
Opt_noposix 
Opt_cto 
Opt_nocto 
Opt_ac 
Opt_noac 
Opt_lock 
Opt_nolock 
Opt_udp 
Opt_tcp 
Opt_rdma 
Opt_acl 
Opt_noacl 
Opt_rdirplus 
Opt_nordirplus 
Opt_sharecache 
Opt_nosharecache 
Opt_resvport 
Opt_noresvport 
Opt_fscache 
Opt_nofscache 
Opt_migration 
Opt_nomigration 
Opt_port 
Opt_rsize 
Opt_wsize 
Opt_bsize 
Opt_timeo 
Opt_retrans 
Opt_acregmin 
Opt_acregmax 
Opt_acdirmin 
Opt_acdirmax 
Opt_actimeo 
Opt_namelen 
Opt_mountport 
Opt_mountvers 
Opt_minorversion 
Opt_nfsvers 
Opt_sec 
Opt_proto 
Opt_mountproto 
Opt_mounthost 
Opt_addr 
Opt_mountaddr 
Opt_clientaddr 
Opt_lookupcache 
Opt_fscache_uniq 
Opt_local_lock 
Opt_userspace 
Opt_deprecated 
Opt_sloppy 
Opt_err 

Definition at line 79 of file super.c.

anonymous enum
Enumerator:
Opt_xprt_udp 
Opt_xprt_udp6 
Opt_xprt_tcp 
Opt_xprt_tcp6 
Opt_xprt_rdma 
Opt_xprt_err 

Definition at line 192 of file super.c.

anonymous enum
Enumerator:
Opt_sec_none 
Opt_sec_sys 
Opt_sec_krb5 
Opt_sec_krb5i 
Opt_sec_krb5p 
Opt_sec_lkey 
Opt_sec_lkeyi 
Opt_sec_lkeyp 
Opt_sec_spkm 
Opt_sec_spkmi 
Opt_sec_spkmp 
Opt_sec_err 

Definition at line 208 of file super.c.

anonymous enum
Enumerator:
Opt_lookupcache_all 
Opt_lookupcache_positive 
Opt_lookupcache_none 
Opt_lookupcache_err 

Definition at line 237 of file super.c.

anonymous enum
Enumerator:
Opt_local_lock_all 
Opt_local_lock_flock 
Opt_local_lock_posix 
Opt_local_lock_none 
Opt_local_lock_err 

Definition at line 253 of file super.c.

anonymous enum
Enumerator:
Opt_vers_2 
Opt_vers_3 
Opt_vers_4 
Opt_vers_4_0 
Opt_vers_4_1 
Opt_vers_err 

Definition at line 269 of file super.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nfs_fs_type  )
EXPORT_SYMBOL_GPL ( nfs_sops  )
EXPORT_SYMBOL_GPL ( nfs_sb_active  )
EXPORT_SYMBOL_GPL ( nfs_sb_deactive  )
EXPORT_SYMBOL_GPL ( nfs_sb_deactive_async  )
EXPORT_SYMBOL_GPL ( nfs_statfs  )
EXPORT_SYMBOL_GPL ( nfs_show_options  )
EXPORT_SYMBOL_GPL ( nfs_show_devname  )
EXPORT_SYMBOL_GPL ( nfs_show_path  )
EXPORT_SYMBOL_GPL ( nfs_show_stats  )
EXPORT_SYMBOL_GPL ( nfs_umount_begin  )
EXPORT_SYMBOL_GPL ( nfs_try_mount  )
EXPORT_SYMBOL_GPL ( nfs_remount  )
EXPORT_SYMBOL_GPL ( nfs_fill_super  )
EXPORT_SYMBOL_GPL ( nfs_set_sb_security  )
EXPORT_SYMBOL_GPL ( nfs_clone_sb_security  )
EXPORT_SYMBOL_GPL ( nfs_fs_mount_common  )
EXPORT_SYMBOL_GPL ( nfs_fs_mount  )
EXPORT_SYMBOL_GPL ( nfs_put_super  )
EXPORT_SYMBOL_GPL ( nfs_kill_super  )
int nfs_clone_sb_security ( struct super_block s,
struct dentry mntroot,
struct nfs_mount_info mount_info 
)

Definition at line 2412 of file super.c.

void nfs_clone_super ( struct super_block sb,
struct nfs_mount_info mount_info 
)

Definition at line 2245 of file super.c.

void nfs_fill_super ( struct super_block sb,
struct nfs_mount_info mount_info 
)

Definition at line 2218 of file super.c.

struct dentry* nfs_fs_mount ( struct file_system_type fs_type,
int  flags,
const char dev_name,
void raw_data 
)
read

Definition at line 2497 of file super.c.

struct dentry* nfs_fs_mount_common ( struct nfs_server server,
int  flags,
const char dev_name,
struct nfs_mount_info mount_info,
struct nfs_subversion nfs_mod 
)
read

Definition at line 2423 of file super.c.

void nfs_initialise_sb ( struct super_block sb)
inline

Definition at line 2196 of file super.c.

void nfs_kill_super ( struct super_block s)

Definition at line 2553 of file super.c.

void nfs_put_super ( struct super_block s)

Definition at line 2542 of file super.c.

int nfs_remount ( struct super_block sb,
int flags,
char raw_data 
)

Definition at line 2131 of file super.c.

void nfs_sb_active ( struct super_block sb)

Definition at line 401 of file super.c.

void nfs_sb_deactive ( struct super_block sb)

Definition at line 410 of file super.c.

void nfs_sb_deactive_async ( struct super_block sb)

Definition at line 458 of file super.c.

int nfs_set_sb_security ( struct super_block s,
struct dentry mntroot,
struct nfs_mount_info mount_info 
)

Definition at line 2405 of file super.c.

int nfs_show_devname ( struct seq_file m,
struct dentry root 
)

Definition at line 816 of file super.c.

int nfs_show_options ( struct seq_file m,
struct dentry root 
)

Definition at line 757 of file super.c.

int nfs_show_path ( struct seq_file m,
struct dentry dentry 
)

Definition at line 833 of file super.c.

int nfs_show_stats ( struct seq_file m,
struct dentry root 
)

Definition at line 843 of file super.c.

int nfs_statfs ( struct dentry dentry,
struct kstatfs buf 
)

Definition at line 470 of file super.c.

struct dentry* nfs_try_mount ( int  flags,
const char dev_name,
struct nfs_mount_info mount_info,
struct nfs_subversion nfs_mod 
)
read

Definition at line 1767 of file super.c.

void nfs_umount_begin ( struct super_block sb)

Definition at line 937 of file super.c.

int __init register_nfs_fs ( void  )

Definition at line 364 of file super.c.

void __exit unregister_nfs_fs ( void  )

Definition at line 393 of file super.c.

Variable Documentation

struct file_system_type nfs_fs_type
Initial value:
= {
.owner = THIS_MODULE,
.name = "nfs",
.mount = nfs_fs_mount,
.kill_sb = nfs_kill_super,
}

Definition at line 289 of file super.c.

Initial value:
= {
.alloc_inode = nfs_alloc_inode,
.destroy_inode = nfs_destroy_inode,
.write_inode = nfs_write_inode,
.put_super = nfs_put_super,
.statfs = nfs_statfs,
.evict_inode = nfs_evict_inode,
.umount_begin = nfs_umount_begin,
.show_options = nfs_show_options,
.show_devname = nfs_show_devname,
.show_path = nfs_show_path,
.show_stats = nfs_show_stats,
.remount_fs = nfs_remount,
}

Definition at line 306 of file super.c.

struct file_system_type nfs_xdev_fs_type
Initial value:
= {
.owner = THIS_MODULE,
.name = "nfs",
.mount = nfs_xdev_mount,
.kill_sb = nfs_kill_super,
}

Definition at line 298 of file super.c.