Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
v9fs.h File Reference
#include <linux/backing-dev.h>

Go to the source code of this file.

Data Structures

struct  v9fs_session_info
 
struct  v9fs_inode
 

Macros

#define V9FS_ACCESS_ANY
 
#define V9FS_ACCESS_MASK   V9FS_ACCESS_ANY
 
#define V9FS_ACL_MASK   V9FS_POSIX_ACL
 
#define V9FS_INO_INVALID_ATTR   0x01
 
#define V9FS_PORT   564
 
#define V9FS_DEFUSER   "nobody"
 
#define V9FS_DEFANAME   ""
 
#define V9FS_DEFUID   (-2)
 
#define V9FS_DEFGID   (-2)
 

Enumerations

enum  p9_session_flags {
  V9FS_PROTO_2000U = 0x01, V9FS_PROTO_2000L = 0x02, V9FS_ACCESS_SINGLE = 0x04, V9FS_ACCESS_USER = 0x08,
  V9FS_ACCESS_CLIENT = 0x10, V9FS_POSIX_ACL = 0x20
}
 
enum  p9_cache_modes { CACHE_NONE, CACHE_LOOSE, CACHE_FSCACHE }
 

Functions

struct p9_fidv9fs_session_init (struct v9fs_session_info *, const char *, char *)
 
void v9fs_session_close (struct v9fs_session_info *v9ses)
 
void v9fs_session_cancel (struct v9fs_session_info *v9ses)
 
void v9fs_session_begin_cancel (struct v9fs_session_info *v9ses)
 
struct dentryv9fs_vfs_lookup (struct inode *dir, struct dentry *dentry, unsigned int flags)
 
int v9fs_vfs_unlink (struct inode *i, struct dentry *d)
 
int v9fs_vfs_rmdir (struct inode *i, struct dentry *d)
 
int v9fs_vfs_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry)
 
void v9fs_vfs_put_link (struct dentry *dentry, struct nameidata *nd, void *p)
 
struct inodev9fs_inode_from_fid (struct v9fs_session_info *v9ses, struct p9_fid *fid, struct super_block *sb, int new)
 
struct inodev9fs_inode_from_fid_dotl (struct v9fs_session_info *v9ses, struct p9_fid *fid, struct super_block *sb, int new)
 

Variables

struct inode_operations v9fs_dir_inode_operations_dotl
 
struct inode_operations v9fs_file_inode_operations_dotl
 
struct inode_operations v9fs_symlink_inode_operations_dotl
 

Macro Definition Documentation

#define V9FS_ACCESS_ANY
Value:
V9FS_ACCESS_USER | \
V9FS_ACCESS_CLIENT)

enum p9_session_flags - option flags for each 9P session : whether or not to use 9P2000.u extensions : whether or not to use 9P2000.l extensions : only the mounting user can access the hierarchy : a new attach will be issued for every user (default) : Just like user, but access check is performed on client. : use a single attach for all users : bit mask of different ACCESS options : POSIX ACLs are enforced

Session flags reflect options selected by users at mount time

Definition at line 41 of file v9fs.h.

#define V9FS_ACCESS_MASK   V9FS_ACCESS_ANY

Definition at line 44 of file v9fs.h.

#define V9FS_ACL_MASK   V9FS_POSIX_ACL

Definition at line 45 of file v9fs.h.

#define V9FS_DEFANAME   ""

Definition at line 167 of file v9fs.h.

#define V9FS_DEFGID   (-2)

Definition at line 169 of file v9fs.h.

#define V9FS_DEFUID   (-2)

Definition at line 168 of file v9fs.h.

#define V9FS_DEFUSER   "nobody"

Definition at line 166 of file v9fs.h.

#define V9FS_INO_INVALID_ATTR   0x01

Definition at line 122 of file v9fs.h.

#define V9FS_PORT   564

Definition at line 165 of file v9fs.h.

Enumeration Type Documentation

enum p9_cache_modes - user specified cache preferences : do not cache data, dentries, or directory contents (default) : cache data, dentries, and directory contents w/no consistency

eventually support loose, tight, time, session, default always none

Enumerator:
CACHE_NONE 
CACHE_LOOSE 
CACHE_FSCACHE 

Definition at line 65 of file v9fs.h.

Enumerator:
V9FS_PROTO_2000U 
V9FS_PROTO_2000L 
V9FS_ACCESS_SINGLE 
V9FS_ACCESS_USER 
V9FS_ACCESS_CLIENT 
V9FS_POSIX_ACL 

Definition at line 47 of file v9fs.h.

Function Documentation

struct inode* v9fs_inode_from_fid ( struct v9fs_session_info v9ses,
struct p9_fid fid,
struct super_block sb,
int  new 
)
read

Definition at line 550 of file vfs_inode.c.

struct inode* v9fs_inode_from_fid_dotl ( struct v9fs_session_info v9ses,
struct p9_fid fid,
struct super_block sb,
int  new 
)
read

Definition at line 161 of file vfs_inode_dotl.c.

void v9fs_session_begin_cancel ( struct v9fs_session_info v9ses)

v9fs_session_begin_cancel - Begin terminate of a session : session to terminate

After this call we don't allow any request other than clunk.

Definition at line 452 of file v9fs.c.

void v9fs_session_cancel ( struct v9fs_session_info v9ses)

v9fs_session_cancel - terminate a session : session to terminate

mark transport as disconnected and cancel all pending requests.

Definition at line 440 of file v9fs.c.

void v9fs_session_close ( struct v9fs_session_info v9ses)

v9fs_session_close - shutdown a session : session information structure

Definition at line 410 of file v9fs.c.

struct p9_fid* v9fs_session_init ( struct v9fs_session_info v9ses,
const char dev_name,
char data 
)
read

v9fs_session_init - initialize session : session information structure : device being mounted : options

Definition at line 293 of file v9fs.c.

struct dentry* v9fs_vfs_lookup ( struct inode dir,
struct dentry dentry,
unsigned int  flags 
)
read

Definition at line 787 of file vfs_inode.c.

void v9fs_vfs_put_link ( struct dentry dentry,
struct nameidata nd,
void p 
)

v9fs_vfs_put_link - release a symlink path : dentry for symlink : nameidata : unused

Definition at line 1330 of file vfs_inode.c.

int v9fs_vfs_rename ( struct inode old_dir,
struct dentry old_dentry,
struct inode new_dir,
struct dentry new_dentry 
)

v9fs_vfs_rename - VFS hook to rename an inode : old dir inode : old dentry : new dir inode : new dentry

Definition at line 973 of file vfs_inode.c.

int v9fs_vfs_rmdir ( struct inode i,
struct dentry d 
)

v9fs_vfs_rmdir - VFS unlink hook to delete a directory : inode that is being unlinked : dentry that is being unlinked

Definition at line 958 of file vfs_inode.c.

int v9fs_vfs_unlink ( struct inode i,
struct dentry d 
)

v9fs_vfs_unlink - VFS unlink hook to delete an inode : inode that is being unlinked : dentry that is being unlinked

Definition at line 946 of file vfs_inode.c.

Variable Documentation

struct inode_operations v9fs_dir_inode_operations_dotl

Definition at line 993 of file vfs_inode_dotl.c.

struct inode_operations v9fs_file_inode_operations_dotl

Definition at line 1013 of file vfs_inode_dotl.c.

struct inode_operations v9fs_symlink_inode_operations_dotl

Definition at line 1023 of file vfs_inode_dotl.c.