Make quota support disabled by support
PATCH 1/1 Make quota support disabled by support
Quota support can be enabled using --enable-quota. There are still some buglets that we need to fix up before it can be considered 100% supported, so let's disable it for the 1.42 release.
Signed-off-by "Theodore Ts'o" <[email protected]>
--- RELEASE-NOTES | 9 +++-- configure | 95 ++++++++------------------------------------------- configure.in | 42 ++++++---------------- debian/rules | 2 +- lib/config.h.in | 3 ++ lib/ext2fs/ext2fs.h | 10 +++++ misc/mke2fs.c | 5 ++- 7 files changed, 50 insertions(+), 116 deletions(-)
RELEASE-NOTES +5 -4
@@ -14,10 +14,6 @@ called 'bigalloc', which must be enabled when the file system is initially formatted. It is not backwards compatible with older kernels. -This release of e2fsprogs has support for integrated feature, where -the quota files are hidden system files that are automatically -maintained by e2fsck. - Added support for the Multi-Mount Protection (MMP) feature. Fix a bug in e2fsck where if the free blocks and inodes counts are
@@ -202,6 +198,11 @@ Updated/clarified man pages. (Addresses Debian Bugs: #639411, Programming notes ----------------- +Initial support for quota as an integrated feature, where the quota +files are hidden system files that are automatically maintained by +e2fsck is present, although disabled by default. It must be enabled +by using the configure option --enable-quota. + Reserved the on-disk fields for the metadata checksum and snapshot features, which are currently in development.
configure +15 -80
126 lines not on this page · raw message
configure.in +12 -30
61 lines not on this page · raw message
debian/rules +1 -1
@@ -129,7 +129,7 @@ endif BF_CFLAGS = -Os -fomit-frame-pointer COMMON_CONF_FLAGS = --disable-e2initrd-helper --enable-elf-shlibs \ - --infodir=/usr/share/info + --enable-quota --infodir=/usr/share/info ifeq ($(UTIL_LINUX_NG),yes) COMMON_CONF_FLAGS += --disable-fsck --disable-libblkid \ --disable-libuuid --disable-uuidd
lib/config.h.in +3 -0
@@ -12,6 +12,9 @@ /* Define to 1 if debugging ext3/4 journal code */ #undef CONFIG_JBD_DEBUG +/* Define to 1 to enable quota support */ +#undef CONFIG_QUOTA + /* Define to 1 if the testio I/O manager should be enabled */ #undef CONFIG_TESTIO_DEBUG
lib/ext2fs/ext2fs.h +10 -0
@@ -577,6 +577,7 @@ typedef struct ext2_icount *ext2_icount_t; EXT4_FEATURE_INCOMPAT_MMP|\ EXT4_FEATURE_INCOMPAT_64BIT)#endif +#ifdef CONFIG_QUOTA #define EXT2_LIB_FEATURE_RO_COMPAT_SUPP (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER|\ EXT4_FEATURE_RO_COMPAT_HUGE_FILE|\ EXT2_FEATURE_RO_COMPAT_LARGE_FILE|\
@@ -585,6 +586,15 @@ typedef struct ext2_icount *ext2_icount_t; EXT4_FEATURE_RO_COMPAT_GDT_CSUM|\ EXT4_FEATURE_RO_COMPAT_BIGALLOC|\ EXT4_FEATURE_RO_COMPAT_QUOTA) +#else +#define EXT2_LIB_FEATURE_RO_COMPAT_SUPP (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER|\ + EXT4_FEATURE_RO_COMPAT_HUGE_FILE|\ + EXT2_FEATURE_RO_COMPAT_LARGE_FILE|\ + EXT4_FEATURE_RO_COMPAT_DIR_NLINK|\ + EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE|\ + EXT4_FEATURE_RO_COMPAT_GDT_CSUM|\ + EXT4_FEATURE_RO_COMPAT_BIGALLOC) +#endif /* * These features are only allowed if EXT2_FLAG_SOFTSUPP_FEATURES is passed
misc/mke2fs.c +4 -1
@@ -847,7 +847,10 @@ static __u32 ok_features[3] = { EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER| EXT4_FEATURE_RO_COMPAT_GDT_CSUM| EXT4_FEATURE_RO_COMPAT_BIGALLOC| - EXT4_FEATURE_RO_COMPAT_QUOTA +#ifdef CONFIG_QUOTA +EXT4_FEATURE_RO_COMPAT_QUOTA | +#endif +0 };
Signature · 1 line
1.7.4.1.22.gec8e1.dirty