Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xfs_ioctl.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_alloc.h"
#include "xfs_mount.h"
#include "xfs_bmap_btree.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_ioctl.h"
#include "xfs_rtalloc.h"
#include "xfs_itable.h"
#include "xfs_error.h"
#include "xfs_attr.h"
#include "xfs_bmap.h"
#include "xfs_buf_item.h"
#include "xfs_utils.h"
#include "xfs_dfrag.h"
#include "xfs_fsops.h"
#include "xfs_vnodeops.h"
#include "xfs_discard.h"
#include "xfs_quota.h"
#include "xfs_inode_item.h"
#include "xfs_export.h"
#include "xfs_trace.h"
#include <linux/capability.h>
#include <linux/dcache.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/exportfs.h>

Go to the source code of this file.

Macros

#define FSX_PROJID   1
 
#define FSX_EXTSIZE   2
 
#define FSX_XFLAGS   4
 
#define FSX_NONBLOCK   8
 

Functions

int xfs_find_handle (unsigned int cmd, xfs_fsop_handlereq_t *hreq)
 
STATIC int xfs_handle_acceptable (void *context, struct dentry *dentry)
 
struct dentryxfs_handle_to_dentry (struct file *parfilp, void __user *uhandle, u32 hlen)
 
STATIC struct dentryxfs_handlereq_to_dentry (struct file *parfilp, xfs_fsop_handlereq_t *hreq)
 
int xfs_open_by_handle (struct file *parfilp, xfs_fsop_handlereq_t *hreq)
 
STATIC int do_readlink (char __user *buffer, int buflen, const char *link)
 
int xfs_readlink_by_handle (struct file *parfilp, xfs_fsop_handlereq_t *hreq)
 
STATIC int xfs_fssetdm_by_handle (struct file *parfilp, void __user *arg)
 
STATIC int xfs_attrlist_by_handle (struct file *parfilp, void __user *arg)
 
int xfs_attrmulti_attr_get (struct inode *inode, unsigned char *name, unsigned char __user *ubuf, __uint32_t *len, __uint32_t flags)
 
int xfs_attrmulti_attr_set (struct inode *inode, unsigned char *name, const unsigned char __user *ubuf, __uint32_t len, __uint32_t flags)
 
int xfs_attrmulti_attr_remove (struct inode *inode, unsigned char *name, __uint32_t flags)
 
STATIC int xfs_attrmulti_by_handle (struct file *parfilp, void __user *arg)
 
int xfs_ioc_space (struct xfs_inode *ip, struct inode *inode, struct file *filp, int ioflags, unsigned int cmd, xfs_flock64_t *bf)
 
STATIC int xfs_ioc_bulkstat (xfs_mount_t *mp, unsigned int cmd, void __user *arg)
 
STATIC int xfs_ioc_fsgeometry_v1 (xfs_mount_t *mp, void __user *arg)
 
STATIC int xfs_ioc_fsgeometry (xfs_mount_t *mp, void __user *arg)
 
STATIC unsigned int xfs_merge_ioc_xflags (unsigned int flags, unsigned int start)
 
STATIC unsigned int xfs_di2lxflags (__uint16_t di_flags)
 
STATIC int xfs_ioc_fsgetxattr (xfs_inode_t *ip, int attr, void __user *arg)
 
STATIC void xfs_set_diflags (struct xfs_inode *ip, unsigned int xflags)
 
STATIC void xfs_diflags_to_linux (struct xfs_inode *ip)
 
STATIC int xfs_ioctl_setattr (xfs_inode_t *ip, struct fsxattr *fa, int mask)
 
STATIC int xfs_ioc_fssetxattr (xfs_inode_t *ip, struct file *filp, void __user *arg)
 
STATIC int xfs_ioc_getxflags (xfs_inode_t *ip, void __user *arg)
 
STATIC int xfs_ioc_setxflags (xfs_inode_t *ip, struct file *filp, void __user *arg)
 
STATIC int xfs_getbmap_format (void **ap, struct getbmapx *bmv, int *full)
 
STATIC int xfs_ioc_getbmap (struct xfs_inode *ip, int ioflags, unsigned int cmd, void __user *arg)
 
STATIC int xfs_getbmapx_format (void **ap, struct getbmapx *bmv, int *full)
 
STATIC int xfs_ioc_getbmapx (struct xfs_inode *ip, void __user *arg)
 
long xfs_file_ioctl (struct file *filp, unsigned int cmd, unsigned long p)
 

Macro Definition Documentation

#define FSX_EXTSIZE   2

Definition at line 910 of file xfs_ioctl.c.

#define FSX_NONBLOCK   8

Definition at line 912 of file xfs_ioctl.c.

#define FSX_PROJID   1

Definition at line 909 of file xfs_ioctl.c.

#define FSX_XFLAGS   4

Definition at line 911 of file xfs_ioctl.c.

Function Documentation

STATIC int do_readlink ( char __user buffer,
int  buflen,
const char link 
)

Definition at line 283 of file xfs_ioctl.c.

STATIC int xfs_attrlist_by_handle ( struct file parfilp,
void __user arg 
)

Definition at line 397 of file xfs_ioctl.c.

int xfs_attrmulti_attr_get ( struct inode inode,
unsigned char name,
unsigned char __user ubuf,
__uint32_t *  len,
__uint32_t  flags 
)

Definition at line 445 of file xfs_ioctl.c.

int xfs_attrmulti_attr_remove ( struct inode inode,
unsigned char name,
__uint32_t  flags 
)

Definition at line 505 of file xfs_ioctl.c.

int xfs_attrmulti_attr_set ( struct inode inode,
unsigned char name,
const unsigned char __user ubuf,
__uint32_t  len,
__uint32_t  flags 
)

Definition at line 480 of file xfs_ioctl.c.

STATIC int xfs_attrmulti_by_handle ( struct file parfilp,
void __user arg 
)

Definition at line 516 of file xfs_ioctl.c.

STATIC unsigned int xfs_di2lxflags ( __uint16_t  di_flags)

Definition at line 786 of file xfs_ioctl.c.

STATIC void xfs_diflags_to_linux ( struct xfs_inode *  ip)

Definition at line 885 of file xfs_ioctl.c.

long xfs_file_ioctl ( struct file filp,
unsigned int  cmd,
unsigned long  p 
)

Definition at line 1331 of file xfs_ioctl.c.

int xfs_find_handle ( unsigned int  cmd,
xfs_fsop_handlereq_t hreq 
)

Definition at line 66 of file xfs_ioctl.c.

STATIC int xfs_fssetdm_by_handle ( struct file parfilp,
void __user arg 
)

Definition at line 353 of file xfs_ioctl.c.

STATIC int xfs_getbmap_format ( void **  ap,
struct getbmapx bmv,
int full 
)

Definition at line 1240 of file xfs_ioctl.c.

STATIC int xfs_getbmapx_format ( void **  ap,
struct getbmapx bmv,
int full 
)

Definition at line 1284 of file xfs_ioctl.c.

STATIC int xfs_handle_acceptable ( void context,
struct dentry dentry 
)

Definition at line 148 of file xfs_ioctl.c.

struct dentry* xfs_handle_to_dentry ( struct file parfilp,
void __user uhandle,
u32  hlen 
)
read

Definition at line 159 of file xfs_ioctl.c.

STATIC struct dentry* xfs_handlereq_to_dentry ( struct file parfilp,
xfs_fsop_handlereq_t hreq 
)
read

Definition at line 191 of file xfs_ioctl.c.

STATIC int xfs_ioc_bulkstat ( xfs_mount_t *  mp,
unsigned int  cmd,
void __user arg 
)

Definition at line 653 of file xfs_ioctl.c.

STATIC int xfs_ioc_fsgeometry ( xfs_mount_t *  mp,
void __user arg 
)

Definition at line 734 of file xfs_ioctl.c.

STATIC int xfs_ioc_fsgeometry_v1 ( xfs_mount_t *  mp,
void __user arg 
)

Definition at line 712 of file xfs_ioctl.c.

STATIC int xfs_ioc_fsgetxattr ( xfs_inode_t *  ip,
int  attr,
void __user arg 
)

Definition at line 805 of file xfs_ioctl.c.

STATIC int xfs_ioc_fssetxattr ( xfs_inode_t *  ip,
struct file filp,
void __user arg 
)

Definition at line 1170 of file xfs_ioctl.c.

STATIC int xfs_ioc_getbmap ( struct xfs_inode *  ip,
int  ioflags,
unsigned int  cmd,
void __user arg 
)

Definition at line 1253 of file xfs_ioctl.c.

STATIC int xfs_ioc_getbmapx ( struct xfs_inode *  ip,
void __user arg 
)

Definition at line 1296 of file xfs_ioctl.c.

STATIC int xfs_ioc_getxflags ( xfs_inode_t *  ip,
void __user arg 
)

Definition at line 1195 of file xfs_ioctl.c.

STATIC int xfs_ioc_setxflags ( xfs_inode_t *  ip,
struct file filp,
void __user arg 
)

Definition at line 1208 of file xfs_ioctl.c.

int xfs_ioc_space ( struct xfs_inode *  ip,
struct inode inode,
struct file filp,
int  ioflags,
unsigned int  cmd,
xfs_flock64_t bf 
)

Definition at line 607 of file xfs_ioctl.c.

STATIC int xfs_ioctl_setattr ( xfs_inode_t *  ip,
struct fsxattr fa,
int  mask 
)

Definition at line 915 of file xfs_ioctl.c.

STATIC unsigned int xfs_merge_ioc_xflags ( unsigned int  flags,
unsigned int  start 
)

Definition at line 755 of file xfs_ioctl.c.

int xfs_open_by_handle ( struct file parfilp,
xfs_fsop_handlereq_t hreq 
)

Definition at line 199 of file xfs_ioctl.c.

int xfs_readlink_by_handle ( struct file parfilp,
xfs_fsop_handlereq_t hreq 
)

Definition at line 305 of file xfs_ioctl.c.

STATIC void xfs_set_diflags ( struct xfs_inode *  ip,
unsigned int  xflags 
)

Definition at line 843 of file xfs_ioctl.c.