btrfs-progs: tests: print shorter test name in the output
[platform/upstream/btrfs-progs.git] / ioctl-test.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "kerncompat.h"
4 #include "ioctl.h"
5
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 };
27
28 int main(int ac, char **av)
29 {
30         int i = 0;
31         while(ioctls[i]) {
32                 printf("%lu\n" ,ioctls[i]);
33                 i++;
34         }
35         return 0;
36 }
37