btrfs-progs/ioctl-test.c
Eric Sandeen fa25b35dcc btrfs-progs: mark static & remove unused from non-kernel code
Mark many functions as static, and remove any resulting dead code.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
2013-09-03 19:40:54 +02:00

38 lines
663 B
C

#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;
}