[LU-14904] Current master fails to build on Ubuntu 20.04 Kernel : 5.4.0.80 Created: 02/Aug/21  Updated: 31/Aug/21  Resolved: 31/Aug/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: David Bestor Assignee: James A Simmons
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-13740 Ubuntu 20.04 LTS release Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Current master fails to build on Ubuntu 20.04 Kernel : 5.4.0.80

ln -s ../../ldiskfs/kernel_patches/patches linux-stage/patches
ln -s ../../ldiskfs/kernel_patches/series/ldiskfs-5.4.0-66-ubuntu20.series linux-stage/series
cd linux-stage && quilt push -a -q
Applying patch patches/rhel8/ext4-inode-version.patch
Applying patch patches/linux-5.4/ext4-lookup-dotdot.patch
Applying patch patches/suse15/ext4-print-inum-in-htree-warning.patch
Applying patch patches/rhel8/ext4-prealloc.patch
Applying patch patches/ubuntu18/ext4-osd-iop-common.patch
Applying patch patches/ubuntu19/ext4-misc.patch
Applying patch patches/rhel8/ext4-mballoc-extra-checks.patch
Applying patch patches/linux-5.4/ext4-hash-indexed-dir-dotdot-update.patch
Applying patch patches/linux-5.4/ext4-kill-dx-root.patch
Applying patch patches/rhel7.6/ext4-mballoc-pa-free-mismatch.patch
Applying patch patches/linux-5.4/ext4-data-in-dirent.patch
Applying patch patches/rhel8/ext4-nocmtime.patch
Applying patch patches/base/ext4-htree-lock.patch
Applying patch patches/ubuntu2004/ext4-pdirop.patch
Applying patch patches/rhel8/ext4-max-dir-size.patch
Applying patch patches/rhel8/ext4-corrupted-inode-block-bitmaps-handling-patches.patch
Applying patch patches/linux-5.4/ext4-give-warning-with-dir-htree-growing.patch
Applying patch patches/ubuntu18/ext4-jcb-optimization.patch
Applying patch patches/linux-5.4/ext4-attach-jinode-in-writepages.patch
Applying patch patches/rhel8/ext4-dont-check-before-replay.patch
Applying patch patches/rhel7.6/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
Applying patch patches/rhel7.6/ext4-export-orphan-add.patch
Applying patch patches/rhel8/ext4-export-mb-stream-allocator-variables.patch
Applying patch patches/ubuntu19/ext4-iget-with-flags.patch
Applying patch patches/linux-5.4/export-ext4fs-dirhash-helper.patch
Applying patch patches/linux-5.4/ext4-misc.patch
Applying patch patches/rhel8/ext4-simple-blockalloc.patch
2 out of 7 hunks FAILED
Patch patches/rhel8/ext4-simple-blockalloc.patch does not apply (enforce with -f)

Assuming this is part of the issue :

https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/fs/ext4/sysfs.c?h=Ubuntu-5.4.0-80.90&id=513e62226d8c2ea7415a18f5692100d074a11fca



 Comments   
Comment by James A Simmons [ 02/Aug/21 ]

can you try patch https://review.whamcloud.com/#/c/44450.

Comment by David Bestor [ 02/Aug/21 ]

I grabbed linux-5.4/ext4-simple-blockalloc.patch
from the above link.

i swapped in the ldiskfs-5.4.0-66-ubuntu20.series file

rhel8/ext4-simple-blockalloc.patch
with
linux-5.4/ext4-simple-blockalloc.patch

I know its not pretty but it is a success!
I have debs now...

examples :
lustre-source_2.14.53-7-ge9cffb2-dirty-1_all.deb
lustre-server-modules-5.4.0-80-generic_2.14.53-7-ge9cffb2-dirty-1_amd64.deb

and others...

Comment by James A Simmons [ 02/Aug/21 ]

Great. I will create a patch on top of 44450 which does it right for Ubuntu. 

Comment by Gerrit Updater [ 18/Aug/21 ]

"James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/44703
Subject: LU-14904 ldiskfs: add support for Ubuntu20 kernel 5.4.0.80
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e1655074a1a17d7749b013ed060e8bf40ab04349

Comment by Gerrit Updater [ 31/Aug/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44703/
Subject: LU-14904 ldiskfs: add support for Ubuntu20 kernel 5.4.0.80
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 89ad68452012624d4d29553b271080305b2a44d4

Comment by James A Simmons [ 31/Aug/21 ]

Builds now

Generated at Sat Feb 10 03:13:46 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.