Fix the issue where compiling containers-storage with exclude_disk_qu…#1978
Fix the issue where compiling containers-storage with exclude_disk_qu…#1978Syx5290 wants to merge 2 commits intocontainers:mainfrom
Conversation
…ota enabled on the Linux CGO platform results in an error indicating that d.quotaCtl.GetDiskUsage is not defined. Signed-off-by: Shi Xue <shixue@cestc.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: xuegege5290 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
mtrmac
left a comment
There was a problem hiding this comment.
Thanks!
I don’t think the quota build tag should affect whether getComposeFsHelper and others are included; this should probably be split into more files or something.
I don't understand what you mean by getComposeFsHelper. I only know that when I use the XFS file system, the overlay driver, and enable the quota, I need to use exclude_disk_quota to disable the quota feature, and then overlay_cgo.go will be compiled, and d.quotaCtl.GetDiskUsage needs to be referenced. You said 'this should probably be split into more files or something,' what exactly needs to be done? I am very willing to listen. |
|
You need to create two new files for disk quota. and not just tread no_disk_quota as no nocgo |
I've got it., thanks. I will give it a try. |
Fix the issue where compiling containers-storage with exclude_disk_quota enabled on the Linux CGO platform results in an error indicating that d.quotaCtl.GetDiskUsage is not defined.
Certainly, the reason I compiled it this way was an attempt to disable the xfs_quota limit feature during the compilation of CRI-O, which led to this issue. When I tried to use the exclude_disk_quota build argument, I should have chosen to compile the overlay_nocgo.go file.