Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vfs_inode_dotl.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/pagemap.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/inet.h>
#include <linux/namei.h>
#include <linux/idr.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/xattr.h>
#include <linux/posix_acl.h>
#include <net/9p/9p.h>
#include <net/9p/client.h>
#include "v9fs.h"
#include "v9fs_vfs.h"
#include "fid.h"
#include "cache.h"
#include "xattr.h"
#include "acl.h"

Go to the source code of this file.

Data Structures

struct  dotl_openflag_map
 
struct  dotl_iattr_map
 

Macros

#define P9_ATTR_MODE   (1 << 0)
 
#define P9_ATTR_UID   (1 << 1)
 
#define P9_ATTR_GID   (1 << 2)
 
#define P9_ATTR_SIZE   (1 << 3)
 
#define P9_ATTR_ATIME   (1 << 4)
 
#define P9_ATTR_MTIME   (1 << 5)
 
#define P9_ATTR_CTIME   (1 << 6)
 
#define P9_ATTR_ATIME_SET   (1 << 7)
 
#define P9_ATTR_MTIME_SET   (1 << 8)
 

Functions

struct inodev9fs_inode_from_fid_dotl (struct v9fs_session_info *v9ses, struct p9_fid *fid, struct super_block *sb, int new)
 
int v9fs_open_to_dotl_flags (int flags)
 
int v9fs_vfs_setattr_dotl (struct dentry *dentry, struct iattr *iattr)
 
void v9fs_stat2inode_dotl (struct p9_stat_dotl *stat, struct inode *inode)
 
int v9fs_refresh_inode_dotl (struct p9_fid *fid, struct inode *inode)
 

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 P9_ATTR_ATIME   (1 << 4)

Definition at line 524 of file vfs_inode_dotl.c.

#define P9_ATTR_ATIME_SET   (1 << 7)

Definition at line 527 of file vfs_inode_dotl.c.

#define P9_ATTR_CTIME   (1 << 6)

Definition at line 526 of file vfs_inode_dotl.c.

#define P9_ATTR_GID   (1 << 2)

Definition at line 522 of file vfs_inode_dotl.c.

#define P9_ATTR_MODE   (1 << 0)

Definition at line 520 of file vfs_inode_dotl.c.

#define P9_ATTR_MTIME   (1 << 5)

Definition at line 525 of file vfs_inode_dotl.c.

#define P9_ATTR_MTIME_SET   (1 << 8)

Definition at line 528 of file vfs_inode_dotl.c.

#define P9_ATTR_SIZE   (1 << 3)

Definition at line 523 of file vfs_inode_dotl.c.

#define P9_ATTR_UID   (1 << 1)

Definition at line 521 of file vfs_inode_dotl.c.

Function Documentation

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.

int v9fs_open_to_dotl_flags ( int  flags)

v9fs_open_to_dotl_flags- convert Linux specific open flags to plan 9 open flag. : flags to convert

Definition at line 214 of file vfs_inode_dotl.c.

int v9fs_refresh_inode_dotl ( struct p9_fid fid,
struct inode inode 
)

Definition at line 962 of file vfs_inode_dotl.c.

void v9fs_stat2inode_dotl ( struct p9_stat_dotl stat,
struct inode inode 
)

v9fs_stat2inode_dotl - populate an inode structure with stat info : stat structure : inode to populate : superblock of filesystem

Definition at line 626 of file vfs_inode_dotl.c.

int v9fs_vfs_setattr_dotl ( struct dentry dentry,
struct iattr iattr 
)

v9fs_vfs_setattr_dotl - set file metadata : file whose metadata to set : metadata assignment structure

Definition at line 564 of file vfs_inode_dotl.c.

Variable Documentation

struct inode_operations v9fs_dir_inode_operations_dotl
Initial value:
= {
.create = v9fs_vfs_create_dotl,
.atomic_open = v9fs_vfs_atomic_open_dotl,
.lookup = v9fs_vfs_lookup,
.link = v9fs_vfs_link_dotl,
.symlink = v9fs_vfs_symlink_dotl,
.unlink = v9fs_vfs_unlink,
.mkdir = v9fs_vfs_mkdir_dotl,
.rmdir = v9fs_vfs_rmdir,
.mknod = v9fs_vfs_mknod_dotl,
.rename = v9fs_vfs_rename,
.getattr = v9fs_vfs_getattr_dotl,
.setxattr = generic_setxattr,
.getxattr = generic_getxattr,
.removexattr = generic_removexattr,
.listxattr = v9fs_listxattr,
.get_acl = v9fs_iop_get_acl,
}

Definition at line 993 of file vfs_inode_dotl.c.

struct inode_operations v9fs_file_inode_operations_dotl
Initial value:
= {
.getattr = v9fs_vfs_getattr_dotl,
.setxattr = generic_setxattr,
.getxattr = generic_getxattr,
.removexattr = generic_removexattr,
.listxattr = v9fs_listxattr,
.get_acl = v9fs_iop_get_acl,
}

Definition at line 1013 of file vfs_inode_dotl.c.

struct inode_operations v9fs_symlink_inode_operations_dotl
Initial value:
= {
.readlink = generic_readlink,
.follow_link = v9fs_vfs_follow_link_dotl,
.put_link = v9fs_vfs_put_link,
.getattr = v9fs_vfs_getattr_dotl,
.setxattr = generic_setxattr,
.getxattr = generic_getxattr,
.removexattr = generic_removexattr,
.listxattr = v9fs_listxattr,
}

Definition at line 1023 of file vfs_inode_dotl.c.