/*
 * This file automatically generated by ext2_iflags.sh.
 * To make changes, either change ext2_iflags.sh and rerun it,
 * or make the changes to this file and delete ext2_iflags.sh.
 */

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

/* 
 * The ext2fs library private definition of the ext2 inode flag bits,
 * so we don't have to depend on the kernel's definition of the flag
 * bits, which might not have the latest features.
 */

#define	EXT2FS_SECRM_FL		0x00000001 /* Secure deletion */
#define	EXT2FS_UNRM_FL		0x00000002 /* Undelete */
#define	EXT2FS_COMPR_FL		0x00000004 /* Compress file */
#define EXT2FS_SYNC_FL		0x00000008 /* Synchronous updates */
#define EXT2FS_IMMUTABLE_FL	0x00000010 /* Immutable file */
#define EXT2FS_APPEND_FL	0x00000020 /* writes to file may only append */
#define EXT2FS_NODUMP_FL	0x00000040 /* do not dump file */
#define EXT2FS_NOATIME_FL	0x00000080 /* do not update atime */
#define EXT2FS_DIRTY_FL		0x00000100 /* Needs decompressing. */
#define EXT2FS_COMPRBLK_FL	0x00000200 /* One or more compressed clusters. */
#define EXT2FS_NOCOMPR_FL 	0x00000400 /* Access raw compressed data. */
#define EXT2FS_ECOMPR_FL 	0x00000800 /* Compression error */

/*
 * Check for incompatibilities. 
 */

#ifdef EXT2_SECRM_FL
# if EXT2_SECRM_FL != EXT2FS_SECRM_FL
#  error "This kernel using a non-standard value of EXT2_SECRM_FL"
# endif
#endif

#ifdef EXT2_UNRM_FL
# if EXT2_UNRM_FL != EXT2FS_UNRM_FL
#  error "This kernel using a non-standard value of EXT2_UNRM_FL"
# endif
#endif

#ifdef EXT2_COMPR_FL
# if EXT2_COMPR_FL != EXT2FS_COMPR_FL
#  error "This kernel using a non-standard value of EXT2_COMPR_FL"
# endif
#endif

#ifdef EXT2_SYNC_FL
# if EXT2_SYNC_FL != EXT2FS_SYNC_FL
#  error "This kernel using a non-standard value of EXT2_SYNC_FL"
# endif
#endif

#ifdef EXT2_IMMUTABLE_FL
# if EXT2_IMMUTABLE_FL != EXT2FS_IMMUTABLE_FL
#  error "This kernel using a non-standard value of EXT2_IMMUTABLE_FL"
# endif
#endif

#ifdef EXT2_APPEND_FL
# if EXT2_APPEND_FL != EXT2FS_APPEND_FL
#  error "This kernel using a non-standard value of EXT2_APPEND_FL"
# endif
#endif

#ifdef EXT2_NODUMP_FL
# if EXT2_NODUMP_FL != EXT2FS_NODUMP_FL
#  error "This kernel using a non-standard value of EXT2_NODUMP_FL"
# endif
#endif

#ifdef EXT2_NOATIME_FL
# if EXT2_NOATIME_FL != EXT2FS_NOATIME_FL
#  error "This kernel using a non-standard value of EXT2_NOATIME_FL"
# endif
#endif

#ifdef EXT2_DIRTY_FL
# if EXT2_DIRTY_FL != EXT2FS_DIRTY_FL
#  error "This kernel using a non-standard value of EXT2_DIRTY_FL"
# endif
#endif

#ifdef EXT2_COMPRBLK_FL
# if EXT2_COMPRBLK_FL != EXT2FS_COMPRBLK_FL
#  error "This kernel using a non-standard value of EXT2_COMPRBLK_FL"
# endif
#endif

#ifdef EXT2_NOCOMPR_FL
# if EXT2_NOCOMPR_FL != EXT2FS_NOCOMPR_FL
#  error "This kernel using a non-standard value of EXT2_NOCOMPR_FL"
# endif
#endif

#ifdef EXT2_ECOMPR_FL
# if EXT2_ECOMPR_FL != EXT2FS_ECOMPR_FL
#  error "This kernel using a non-standard value of EXT2_ECOMPR_FL"
# endif
#endif
