btrfs-progs: use on-stack buffer for btrfs_scan_one_device
[btrfs-progs-unstable/devel.git] / ioctl-test.c
blob54fc013584e31e9419efb16260a95e02e714c5d9
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "kerncompat.h"
4 #include "ioctl.h"
6 static 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;