File: ioctl-test.c

package info (click to toggle)
btrfs-tools 0.19%2B20100601-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,064 kB
  • ctags: 1,862
  • sloc: ansic: 23,597; python: 356; makefile: 115; sh: 73
file content (36 lines) | stat: -rw-r--r-- 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <stdio.h>
#include <stdlib.h>
#include "kerncompat.h"
#include "ioctl.h"

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,
	0 };

int main(int ac, char **av)
{
	int i = 0;
	while(ioctls[i]) {
		printf("%lu\n" ,ioctls[i]);
		i++;
	}
	return 0;
}