0001
0002
0003
0004
0005
0006 #ifndef __XFS_IOCTL_H__
0007 #define __XFS_IOCTL_H__
0008
0009 struct xfs_bstat;
0010 struct xfs_ibulk;
0011 struct xfs_inogrp;
0012
0013 int
0014 xfs_ioc_swapext(
0015 xfs_swapext_t *sxp);
0016
0017 extern int
0018 xfs_find_handle(
0019 unsigned int cmd,
0020 xfs_fsop_handlereq_t *hreq);
0021
0022 extern int
0023 xfs_open_by_handle(
0024 struct file *parfilp,
0025 xfs_fsop_handlereq_t *hreq);
0026
0027 extern int
0028 xfs_readlink_by_handle(
0029 struct file *parfilp,
0030 xfs_fsop_handlereq_t *hreq);
0031
0032 int xfs_ioc_attrmulti_one(struct file *parfilp, struct inode *inode,
0033 uint32_t opcode, void __user *uname, void __user *value,
0034 uint32_t *len, uint32_t flags);
0035 int xfs_ioc_attr_list(struct xfs_inode *dp, void __user *ubuf,
0036 size_t bufsize, int flags,
0037 struct xfs_attrlist_cursor __user *ucursor);
0038
0039 extern struct dentry *
0040 xfs_handle_to_dentry(
0041 struct file *parfilp,
0042 void __user *uhandle,
0043 u32 hlen);
0044
0045 extern int
0046 xfs_fileattr_get(
0047 struct dentry *dentry,
0048 struct fileattr *fa);
0049
0050 extern int
0051 xfs_fileattr_set(
0052 struct user_namespace *mnt_userns,
0053 struct dentry *dentry,
0054 struct fileattr *fa);
0055
0056 extern long
0057 xfs_file_ioctl(
0058 struct file *filp,
0059 unsigned int cmd,
0060 unsigned long p);
0061
0062 extern long
0063 xfs_file_compat_ioctl(
0064 struct file *file,
0065 unsigned int cmd,
0066 unsigned long arg);
0067
0068 int xfs_fsbulkstat_one_fmt(struct xfs_ibulk *breq,
0069 const struct xfs_bulkstat *bstat);
0070 int xfs_fsinumbers_fmt(struct xfs_ibulk *breq, const struct xfs_inumbers *igrp);
0071
0072 #endif