Re: [PATCH] e2fsprogs: reserving code points for new ext4 quota feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2011-02-14, at 18:07, Aditya Kali <adityakali@xxxxxxxxxx> wrote:
> 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.
> 
> diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h
> index fee3919..74f5a2f 100644
> --- a/lib/ext2fs/ext2_fs.h
> +++ b/lib/ext2fs/ext2_fs.h
> @@ -52,6 +52,9 @@
> #define EXT2_JOURNAL_INO     8    /* Journal inode */
> #define EXT2_EXCLUDE_INO     9    /* The "exclude" inode, for snapshots */
> 
> +#define EXT4_USR_QUOTA_INO     3    /* User quota inode */
> +#define EXT4_GRP_QUOTA_INO     4    /* Group quota inode */

This is missing the fact that ino 3 and 4 are already reserved for ACLs:

#define EXT2_ACL_IDX_INO         3      /* ACL inode */
#define EXT2_ACL_DATA_INO        4      /* ACL inode */

That said, I don't know if those inodes are actually ever used, because the ACLs are stored in xattrs on each inode.

In any case, the quota definitions should replace the ACL ones instead of being hidden after the main list (which is otherwise kept in numeric order). 

Cheers, Andreas





--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux