Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cifsfs.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/seq_file.h>
#include <linux/vfs.h>
#include <linux/mempool.h>
#include <linux/delay.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/namei.h>
#include <linux/random.h>
#include <net/ipv6.h>
#include "cifsfs.h"
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifsproto.h"
#include "cifs_debug.h"
#include "cifs_fs_sb.h"
#include <linux/mm.h>
#include <linux/key-type.h>
#include "cifs_spnego.h"
#include "fscache.h"

Go to the source code of this file.

Macros

#define DECLARE_GLOBALS_HERE
 

Functions

 module_param (CIFSMaxBufSize, int, 0)
 
 MODULE_PARM_DESC (CIFSMaxBufSize,"Network buffer size (not including header). ""Default: 16384 Range: 8192 to 130048")
 
 module_param (cifs_min_rcv, int, 0)
 
 MODULE_PARM_DESC (cifs_min_rcv,"Network buffers in pool. Default: 4 Range: ""1 to 64")
 
 module_param (cifs_min_small, int, 0)
 
 MODULE_PARM_DESC (cifs_min_small,"Small network buffers in pool. Default: 30 ""Range: 2 to 256")
 
 module_param (cifs_max_pending, int, 0444)
 
 MODULE_PARM_DESC (cifs_max_pending,"Simultaneous requests to server. ""Default: 32767 Range: 2 to 32767.")
 
 module_param (enable_oplocks, bool, 0644)
 
 MODULE_PARM_DESC (enable_oplocks,"Enable or disable oplocks (bool). Default:""y/Y/1")
 
 MODULE_AUTHOR ("Steve French <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("VFS to access servers complying with the SNIA CIFS Specification ""e.g. Samba and Windows")
 
 MODULE_VERSION (CIFS_VERSION)
 

Variables

int cifsFYI = 0
 
int cifsERROR = 1
 
int traceSMB = 0
 
bool enable_oplocks = true
 
unsigned int linuxExtEnabled = 1
 
unsigned int lookupCacheEnabled = 1
 
unsigned int global_secflags = CIFSSEC_DEF
 
unsigned int sign_CIFS_PDUs = 1
 
unsigned int CIFSMaxBufSize = CIFS_MAX_MSGSIZE
 
unsigned int cifs_min_rcv = CIFS_MIN_RCV_POOL
 
unsigned int cifs_min_small = 30
 
unsigned int cifs_max_pending = CIFS_MAX_REQ
 
mempool_tcifs_sm_req_poolp
 
mempool_tcifs_req_poolp
 
mempool_tcifs_mid_poolp
 
struct workqueue_structcifsiod_wq
 
struct file_system_type cifs_fs_type
 
struct inode_operations cifs_dir_inode_ops
 
struct inode_operations cifs_file_inode_ops
 
struct inode_operations cifs_symlink_inode_ops
 
struct file_operations cifs_file_ops
 
struct file_operations cifs_file_strict_ops
 
struct file_operations cifs_file_direct_ops
 
struct file_operations cifs_file_nobrl_ops
 
struct file_operations cifs_file_strict_nobrl_ops
 
struct file_operations cifs_file_direct_nobrl_ops
 
struct file_operations cifs_dir_ops
 

Macro Definition Documentation

#define DECLARE_GLOBALS_HERE

Definition at line 43 of file cifsfs.c.

Function Documentation

MODULE_AUTHOR ( "Steve French <[email protected]>"  )
MODULE_DESCRIPTION ( "VFS to access servers complying with the SNIA CIFS Specification ""e.g. Samba and Windows"  )
MODULE_LICENSE ( "GPL"  )
module_param ( CIFSMaxBufSize  ,
int  ,
 
)
module_param ( cifs_min_rcv  ,
int  ,
 
)
module_param ( cifs_min_small  ,
int  ,
 
)
module_param ( cifs_max_pending  ,
int  ,
0444   
)
module_param ( enable_oplocks  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( CIFSMaxBufSize  ,
"Network buffer size (not including header). ""Default: 16384 Range: 8192 to 130048"   
)
MODULE_PARM_DESC ( cifs_min_rcv  ,
"Network buffers in pool. Default: 4 Range: ""1 to 64"   
)
MODULE_PARM_DESC ( cifs_min_small  ,
"Small network buffers in pool. Default: 30 ""Range: 2 to 256"   
)
MODULE_PARM_DESC ( cifs_max_pending  ,
"Simultaneous requests to server. ""Default: 32767 Range: 2 to 32767."   
)
MODULE_PARM_DESC ( enable_oplocks  ,
"Enable or disable oplocks (bool). Default:""y/Y/1"   
)
MODULE_VERSION ( CIFS_VERSION  )

Variable Documentation

struct inode_operations cifs_dir_inode_ops
Initial value:
= {
.create = cifs_create,
.atomic_open = cifs_atomic_open,
.lookup = cifs_lookup,
.getattr = cifs_getattr,
.unlink = cifs_unlink,
.link = cifs_hardlink,
.mkdir = cifs_mkdir,
.rmdir = cifs_rmdir,
.rename = cifs_rename,
.permission = cifs_permission,
.setattr = cifs_setattr,
.symlink = cifs_symlink,
.mknod = cifs_mknod,
}

Definition at line 771 of file cifsfs.c.

struct file_operations cifs_dir_ops
Initial value:
= {
.readdir = cifs_readdir,
.release = cifs_closedir,
.unlocked_ioctl = cifs_ioctl,
}

Definition at line 937 of file cifsfs.c.

struct file_operations cifs_file_direct_nobrl_ops
Initial value:
= {
.read = do_sync_read,
.write = do_sync_write,
.aio_read = cifs_user_readv,
.aio_write = cifs_user_writev,
.open = cifs_open,
.release = cifs_close,
.fsync = cifs_fsync,
.flush = cifs_flush,
.mmap = cifs_file_mmap,
.splice_read = generic_file_splice_read,
.llseek = cifs_llseek,
.setlease = cifs_setlease,
}

Definition at line 918 of file cifsfs.c.

struct file_operations cifs_file_direct_ops
Initial value:
= {
.read = do_sync_read,
.write = do_sync_write,
.aio_read = cifs_user_readv,
.aio_write = cifs_user_writev,
.open = cifs_open,
.release = cifs_close,
.lock = cifs_lock,
.fsync = cifs_fsync,
.flush = cifs_flush,
.mmap = cifs_file_mmap,
.splice_read = generic_file_splice_read,
.llseek = cifs_llseek,
.setlease = cifs_setlease,
}

Definition at line 862 of file cifsfs.c.

struct inode_operations cifs_file_inode_ops
Initial value:
= {
.setattr = cifs_setattr,
.getattr = cifs_getattr,
.rename = cifs_rename,
.permission = cifs_permission,
}

Definition at line 794 of file cifsfs.c.

struct file_operations cifs_file_nobrl_ops
Initial value:
= {
.read = do_sync_read,
.write = do_sync_write,
.aio_read = generic_file_aio_read,
.aio_write = cifs_file_aio_write,
.open = cifs_open,
.release = cifs_close,
.fsync = cifs_fsync,
.flush = cifs_flush,
.mmap = cifs_file_mmap,
.splice_read = generic_file_splice_read,
.llseek = cifs_llseek,
.setlease = cifs_setlease,
}

Definition at line 882 of file cifsfs.c.

struct file_operations cifs_file_ops
Initial value:
= {
.read = do_sync_read,
.write = do_sync_write,
.aio_read = generic_file_aio_read,
.aio_write = cifs_file_aio_write,
.open = cifs_open,
.release = cifs_close,
.lock = cifs_lock,
.fsync = cifs_fsync,
.flush = cifs_flush,
.mmap = cifs_file_mmap,
.splice_read = generic_file_splice_read,
.llseek = cifs_llseek,
.setlease = cifs_setlease,
}

Definition at line 824 of file cifsfs.c.

struct file_operations cifs_file_strict_nobrl_ops
Initial value:
= {
.read = do_sync_read,
.write = do_sync_write,
.aio_read = cifs_strict_readv,
.aio_write = cifs_strict_writev,
.open = cifs_open,
.release = cifs_close,
.flush = cifs_flush,
.splice_read = generic_file_splice_read,
.llseek = cifs_llseek,
.setlease = cifs_setlease,
}

Definition at line 900 of file cifsfs.c.

struct file_operations cifs_file_strict_ops
Initial value:
= {
.read = do_sync_read,
.write = do_sync_write,
.aio_read = cifs_strict_readv,
.aio_write = cifs_strict_writev,
.open = cifs_open,
.release = cifs_close,
.lock = cifs_lock,
.flush = cifs_flush,
.splice_read = generic_file_splice_read,
.llseek = cifs_llseek,
.setlease = cifs_setlease,
}

Definition at line 843 of file cifsfs.c.

struct file_system_type cifs_fs_type
Initial value:
= {
.owner = THIS_MODULE,
.name = "cifs",
.mount = cifs_do_mount,
.kill_sb = cifs_kill_sb,
}

Definition at line 764 of file cifsfs.c.

unsigned int cifs_max_pending = CIFS_MAX_REQ

Definition at line 78 of file cifsfs.c.

mempool_t * cifs_mid_poolp

Definition at line 215 of file cifsfs.c.

unsigned int cifs_min_rcv = CIFS_MIN_RCV_POOL

Definition at line 70 of file cifsfs.c.

unsigned int cifs_min_small = 30

Definition at line 74 of file cifsfs.c.

mempool_t * cifs_req_poolp

Definition at line 214 of file cifsfs.c.

mempool_t * cifs_sm_req_poolp

Definition at line 213 of file cifsfs.c.

struct inode_operations cifs_symlink_inode_ops
Initial value:
= {
.readlink = generic_readlink,
.follow_link = cifs_follow_link,
.put_link = cifs_put_link,
.permission = cifs_permission,
}

Definition at line 808 of file cifsfs.c.

int cifsERROR = 1

Definition at line 57 of file cifsfs.c.

int cifsFYI = 0

Definition at line 56 of file cifsfs.c.

struct workqueue_struct* cifsiod_wq

Definition at line 90 of file cifsfs.c.

unsigned int CIFSMaxBufSize = CIFS_MAX_MSGSIZE

Definition at line 66 of file cifsfs.c.

bool enable_oplocks = true

Definition at line 59 of file cifsfs.c.

unsigned int global_secflags = CIFSSEC_DEF

Definition at line 62 of file cifsfs.c.

unsigned int linuxExtEnabled = 1

Definition at line 60 of file cifsfs.c.

unsigned int lookupCacheEnabled = 1

Definition at line 61 of file cifsfs.c.

unsigned int sign_CIFS_PDUs = 1

Definition at line 64 of file cifsfs.c.

int traceSMB = 0

Definition at line 58 of file cifsfs.c.