[LU-9724] update ext4-large-eas.patch to match upstream ext4 feature Created: 29/Jun/17 Updated: 11/Apr/18 Resolved: 27/Feb/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.0, Lustre 2.7.0 |
| Fix Version/s: | Lustre 2.11.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Andreas Dilger | Assignee: | Emoly Liu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||
| Description |
|
In order to match the enhanced ea_inode functionality being landed to the upstream ext4 kernel tree, we need to modify our ext4-large-eas.patch and e2fsprogs patches to start properly initializing some of the fields we don't currently use to minimize the interoperability issues. In particular, the new EA inode refcount should be initialized to 1, and hash field should be computed based on the xattr value as it is in the upstream kernel patch. We don't need to backport any of the xattr sharing functionality, since Lustre never shares large xattrs as the lov and link xattrs are always unique. This can be landed to master for the 2.11 release, and possibly included into 2.10.1 or later maintenance release. For e2fsck we should set the EA inode refcount = 1 and set the hash on large xattrs that are found during scanning and are otherwise valid. This should be done in a manner that is not alarming to existing users, such as printing a fix_problem() message like: |
| Comments |
| Comment by Emoly Liu [ 25/Jan/18 ] |
|
Andreas, if (!IS_ERR(ea_inode)) {
...
ext4_xattr_inode_set_ref(ea_inode, 1);
ext4_xattr_inode_set_hash(ea_inode, hash);
...
}
And all the kernel series need this change? Thanks, |
| Comment by Gerrit Updater [ 26/Jan/18 ] |
|
Emoly Liu (emoly.liu@intel.com) uploaded a new patch: https://review.whamcloud.com/31033 |
| Comment by Gerrit Updater [ 27/Feb/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31033/ |
| Comment by Peter Jones [ 27/Feb/18 ] |
|
Landed for 2.11 |