Bug 4979 - [AnolisOS 7.9] resize2fs 工具支持 bigalloc 文件系统 online resizing
Summary: [AnolisOS 7.9] resize2fs 工具支持 bigalloc 文件系统 online resizing
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 7
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 7.9
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Joseph Qi
QA Contact: 杨晓旋
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-16 14:18 UTC by Joseph Qi
Modified: 2023-05-17 17:25 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Qi alibaba_cloud_group 2023-05-16 14:18:51 UTC
Current online resizing with resize2fs in e2fsprogs 1.43.5, it will trigger the following warning and then exit:

Resizing bigalloc file systems has not been fully tested.  Proceed at
your own risk!  Use the force option if you want to go ahead anyway.

But ANCK 4.19 kernel actually supports this feature. If we use -f to force resizing, it may also bypass other checks as well, which may bring risk.

This warning has been removed in e2fsprogs 1.44.0, but as of now we don't want to bother e2fsprogs version, so the best way is to cherry pick the related patch.

After analyzing, the following 2 patches will be cherry-picked:
b636e0cb04d6 resize2fs: remove bigalloc warning for online resizing
37e7426debda resize2fs: fix free blocks count sanity check for 64-bit file systems
Comment 2 Joseph Qi alibaba_cloud_group 2023-05-17 17:25:15 UTC
merged