| #ifndef _SYS_FS_EXT2FS_H |
| #define _SYS_FS_EXT2FS_H |
| |
| /* |
| * ioctl commands |
| */ |
| #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) |
| |
| /* |
| * File system states |
| */ |
| #define EXT2_VALID_FS 0x0001 /* Unmounted cleanly */ |
| #define EXT2_ERROR_FS 0x0002 /* Errors detected */ |
| |
| /* |
| * Mount flags |
| */ |
| #define EXT2_MOUNT_CHECK_NORMAL 0x0001 /* Do some more checks */ |
| #define EXT2_MOUNT_CHECK_STRICT 0x0002 /* Do again more checks */ |
| #define EXT2_MOUNT_CHECK (EXT2_MOUNT_CHECK_NORMAL | \ |
| EXT2_MOUNT_CHECK_STRICT) |
| #define EXT2_MOUNT_GRPID 0x0004 /* Create files with directory's group */ |
| #define EXT2_MOUNT_DEBUG 0x0008 /* Some debugging messages */ |
| #define EXT2_MOUNT_ERRORS_CONT 0x0010 /* Continue on errors */ |
| #define EXT2_MOUNT_ERRORS_RO 0x0020 /* Remount fs ro on errors */ |
| #define EXT2_MOUNT_ERRORS_PANIC 0x0040 /* Panic on errors */ |
| #define EXT2_MOUNT_MINIX_DF 0x0080 /* Mimics the Minix statfs */ |
| |
| #define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt |
| #define set_opt(o, opt) o |= EXT2_MOUNT_##opt |
| #define test_opt(sb, opt) ((sb)->u.ext2_sb.s_mount_opt & \ |
| EXT2_MOUNT_##opt) |
| /* |
| * Maximal mount counts between two filesystem checks |
| */ |
| #define EXT2_DFL_MAX_MNT_COUNT 20 /* Allow 20 mounts */ |
| #define EXT2_DFL_CHECKINTERVAL 0 /* Don't use interval check */ |
| |
| #endif /* _SYS_FS_EXT2FS_H */ |