diff options
author | Nicholas D Steeves <nsteeves@gmail.com> | 2016-04-23 00:41:30 +0100 |
---|---|---|
committer | Nicholas D Steeves <nsteeves@gmail.com> | 2016-04-23 00:41:30 +0100 |
commit | cec572daccafa1e912cbed363df6f84687778c6f (patch) | |
tree | 7d99ab9f73d25c1ed8eaf6393f6374edf5316b03 /ioctl-test.c |
btrfs-progs (4.4.1-1.1) unstable; urgency=medium
* Non-maintainer upload.
* New upstream release.
* Rename package to btrfs-progs (Closes: #780081)
* Update standards version to 3.9.7 (no changes needed).
* debian/control: Add "Breaks" per Gianfranco Costamagna's suggestion
* Change lintian override to reflect package rename
* Switch from using postinst and postrm to using triggers
per Christian Seiler's recommendation.
# imported from the archive
Diffstat (limited to 'ioctl-test.c')
-rw-r--r-- | ioctl-test.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ioctl-test.c b/ioctl-test.c new file mode 100644 index 00000000..54fc0135 --- /dev/null +++ b/ioctl-test.c @@ -0,0 +1,37 @@ +#include <stdio.h> +#include <stdlib.h> +#include "kerncompat.h" +#include "ioctl.h" + +static unsigned long ioctls[] = { + BTRFS_IOC_SNAP_CREATE, + BTRFS_IOC_DEFRAG, + BTRFS_IOC_RESIZE, + BTRFS_IOC_SCAN_DEV, + BTRFS_IOC_TRANS_START, + BTRFS_IOC_TRANS_END, + BTRFS_IOC_SYNC, + BTRFS_IOC_CLONE, + BTRFS_IOC_ADD_DEV, + BTRFS_IOC_RM_DEV, + BTRFS_IOC_BALANCE, + BTRFS_IOC_SUBVOL_CREATE, + BTRFS_IOC_SNAP_DESTROY, + BTRFS_IOC_DEFRAG_RANGE, + BTRFS_IOC_TREE_SEARCH, + BTRFS_IOC_INO_LOOKUP, + BTRFS_IOC_DEFAULT_SUBVOL, + BTRFS_IOC_SPACE_INFO, + BTRFS_IOC_SNAP_CREATE_V2, + 0 }; + +int main(int ac, char **av) +{ + int i = 0; + while(ioctls[i]) { + printf("%lu\n" ,ioctls[i]); + i++; + } + return 0; +} + |