Btrfs-progs: fall back to the v1 ioctl if the new balance ioctl fails
[btrfs-progs-unstable/devel.git] / ioctl-test.c
blob1c27d61600cb0c9a686bdc27cc2bf18b8671a8bf
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "kerncompat.h"
4 #include "ioctl.h"
6 unsigned long ioctls[] = {
7 BTRFS_IOC_SNAP_CREATE,
8 BTRFS_IOC_DEFRAG,
9 BTRFS_IOC_RESIZE,
10 BTRFS_IOC_SCAN_DEV,
11 BTRFS_IOC_TRANS_START,
12 BTRFS_IOC_TRANS_END,
13 BTRFS_IOC_SYNC,
14 BTRFS_IOC_CLONE,
15 BTRFS_IOC_ADD_DEV,
16 BTRFS_IOC_RM_DEV,
17 BTRFS_IOC_BALANCE,
18 BTRFS_IOC_SUBVOL_CREATE,
19 BTRFS_IOC_SNAP_DESTROY,
20 BTRFS_IOC_DEFRAG_RANGE,
21 BTRFS_IOC_TREE_SEARCH,
22 BTRFS_IOC_INO_LOOKUP,
23 BTRFS_IOC_DEFAULT_SUBVOL,
24 BTRFS_IOC_SPACE_INFO,
25 BTRFS_IOC_SNAP_CREATE_V2,
26 0 };
28 int main(int ac, char **av)
30 int i = 0;
31 while(ioctls[i]) {
32 printf("%lu\n" ,ioctls[i]);
33 i++;
35 return 0;