diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-11-06 03:07:10 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-11-06 03:07:10 -0500 |
commit | 806468f8bf76a3cb2b626dd282946a6c9c0a50f0 (patch) | |
tree | 2de54229a5623756417a9bad7f426a2e8b06cad7 /fs/btrfs/ioctl.h | |
parent | 531f4b1ae5e0fc8c9b3f03838218e5ea178f80d3 (diff) | |
parent | 5da6fcbc4eb50c0f55d520750332f5a6ab13508c (diff) |
Merge git://git.jan-o-sch.net/btrfs-unstable into integration
Conflicts:
fs/btrfs/Makefile
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/scrub.c
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r-- | fs/btrfs/ioctl.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h index ad1ea789fcb4..2da30d4950e6 100644 --- a/fs/btrfs/ioctl.h +++ b/fs/btrfs/ioctl.h | |||
@@ -193,6 +193,31 @@ struct btrfs_ioctl_space_args { | |||
193 | struct btrfs_ioctl_space_info spaces[0]; | 193 | struct btrfs_ioctl_space_info spaces[0]; |
194 | }; | 194 | }; |
195 | 195 | ||
196 | struct btrfs_data_container { | ||
197 | __u32 bytes_left; /* out -- bytes not needed to deliver output */ | ||
198 | __u32 bytes_missing; /* out -- additional bytes needed for result */ | ||
199 | __u32 elem_cnt; /* out */ | ||
200 | __u32 elem_missed; /* out */ | ||
201 | union { | ||
202 | char *str[0]; /* out */ | ||
203 | __u64 val[0]; /* out */ | ||
204 | }; | ||
205 | }; | ||
206 | |||
207 | struct btrfs_ioctl_ino_path_args { | ||
208 | __u64 inum; /* in */ | ||
209 | __u32 size; /* in */ | ||
210 | __u64 reserved[4]; | ||
211 | struct btrfs_data_container *fspath; /* out */ | ||
212 | }; | ||
213 | |||
214 | struct btrfs_ioctl_logical_ino_args { | ||
215 | __u64 logical; /* in */ | ||
216 | __u32 size; /* in */ | ||
217 | __u64 reserved[4]; | ||
218 | struct btrfs_data_container *inodes; /* out */ | ||
219 | }; | ||
220 | |||
196 | #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ | 221 | #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ |
197 | struct btrfs_ioctl_vol_args) | 222 | struct btrfs_ioctl_vol_args) |
198 | #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ | 223 | #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ |
@@ -248,4 +273,9 @@ struct btrfs_ioctl_space_args { | |||
248 | struct btrfs_ioctl_dev_info_args) | 273 | struct btrfs_ioctl_dev_info_args) |
249 | #define BTRFS_IOC_FS_INFO _IOR(BTRFS_IOCTL_MAGIC, 31, \ | 274 | #define BTRFS_IOC_FS_INFO _IOR(BTRFS_IOCTL_MAGIC, 31, \ |
250 | struct btrfs_ioctl_fs_info_args) | 275 | struct btrfs_ioctl_fs_info_args) |
276 | #define BTRFS_IOC_INO_PATHS _IOWR(BTRFS_IOCTL_MAGIC, 35, \ | ||
277 | struct btrfs_ioctl_ino_path_args) | ||
278 | #define BTRFS_IOC_LOGICAL_INO _IOWR(BTRFS_IOCTL_MAGIC, 36, \ | ||
279 | struct btrfs_ioctl_ino_path_args) | ||
280 | |||
251 | #endif | 281 | #endif |