diff options
author | Aditya Kali <adityakali@google.com> | 2011-02-15 14:27:27 -0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-02-25 18:31:52 -0500 |
commit | 0edcc2702106ef8ea0d4ab60ef06c0c38b0b87ee (patch) | |
tree | e2f02cc1a348c4e418242b38f912a3b85f3e8ebd /lib/e2p | |
parent | 855a77a19704ef7e0acd542cce19a6e8ee07582d (diff) | |
download | e2fsprogs-0edcc2702106ef8ea0d4ab60ef06c0c38b0b87ee.tar.gz |
e2fsprogs: reserving code points for new ext4 quota feature
This patch adds support for detecting the new 'quota' feature in ext4.
The patch reserves code points for usr and group quota inodes and also
for the feature flag EXT4_FEATURE_RO_COMPAT_QUOTA.
Signed-off-by: Aditya Kali <adityakali@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/e2p')
-rw-r--r-- | lib/e2p/feature.c | 2 | ||||
-rw-r--r-- | lib/e2p/ls.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/e2p/feature.c b/lib/e2p/feature.c index c7f8a359..9324199b 100644 --- a/lib/e2p/feature.c +++ b/lib/e2p/feature.c @@ -55,6 +55,8 @@ static struct feature feature_list[] = { "dir_nlink" }, { E2P_FEATURE_RO_INCOMPAT, EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE, "extra_isize" }, + { E2P_FEATURE_RO_INCOMPAT, EXT4_FEATURE_RO_COMPAT_QUOTA, + "quota" }, { E2P_FEATURE_INCOMPAT, EXT2_FEATURE_INCOMPAT_COMPRESSION, "compression" }, diff --git a/lib/e2p/ls.c b/lib/e2p/ls.c index 5ef80988..8b8360a8 100644 --- a/lib/e2p/ls.c +++ b/lib/e2p/ls.c @@ -374,6 +374,12 @@ void list_super2(struct ext2_super_block * sb, FILE *f) fprintf(f, "Last error block #: %llu\n", sb->s_last_error_block); } + if (sb->s_usr_quota_inum) + fprintf(f, "User quota inode: %u\n", + sb->s_usr_quota_inum); + if (sb->s_grp_quota_inum) + fprintf(f, "Group quota inode: %u\n", + sb->s_grp_quota_inum); } void list_super (struct ext2_super_block * s) |