#include <sys/ioctl.h>
#if EXT2_FLAT_INCLUDES
#include "ext2_fs.h"
#else
#include <ext2fs/ext2_fs.h>
#endif

/* [Portability question: gcc accepts these repeated definitions
    without even a warning, which is what we want.
    (It only gives a warning/error if the second definition
    differs from the first.)  I don't know how friendly other
    compilers are about this.] */
#define EXT2_IOC_GETFLAGS             _IOR('f', 1, long)
#define EXT2_IOC_SETFLAGS             _IOW('f', 2, long)
#define EXT2_IOC_GETVERSION           _IOR('v', 1, long)
#define EXT2_IOC_SETVERSION           _IOW('v', 2, long)
#define EXT2_IOC_GETCLUSTERSIZE       _IOR('c', 0, long)
#define EXT2_IOC_SETCLUSTERSIZE       _IOW('c', 0, long)
#define EXT2_IOC_GETCOMPRMETHOD       _IOR('c', 1, long)
#define EXT2_IOC_SETCOMPRMETHOD       _IOW('c', 1, long)
#define EXT2_IOC_GETFIRSTCLUSTERSIZE  _IOR('c', 2, long)
#define EXT2_IOC_RECOGNIZE_COMPRESSED _IOW('c', 2, long)
#define EXT2_IOC_GETCLUSTERBIT        _IOR('c', 3, long)
#define EXT2_IOC_GETCOMPRRATIO        _IOR('c', 4, long)
