Re: 转发: 请教一下,想提交一个内核的补丁,怎么操作,谢谢。(补丁内容见内)

你好, 非常欢迎参与 openEuler kernel 开发。 首先在这里提交 issue,描述下要解决什么问题。 https://gitee.com/openeuler/kernel/issues 补丁的 Commit Message 中 附上对应的 issue 链接, 如在bugzila 行添加: bugzilla: https://gitee.com/openeuler/kernel/issues/I3DJ83 然后将适配之后的补丁发往 kernel@openeuler.org, 有问题可以联系我或 Cheng Jian. --- Xie XiuQi On 2021/8/27 14:18, 徐力群 wrote:
*发件人:*徐力群 *发送时间:*2021年8月27日14:18 *收件人:*kernel-owner@openeuler.org;<kernel-owner@openeuler.org;>; kernel@openeuler.org *主题:*请教一下,想提交一个内核的补丁,怎么操作,谢谢。(补丁内容见内)
该补丁打上之后,guest如果删除了磁盘的文件,那么从host上看磁盘文件会变小。
virtio_blk: add discard and write zeroes support
mainline inclusion
from mainline-5.14-rc7
commit 1f23816b8eb8fdc39990abe166c10a18c16f6b21、af822aa68fbdf0a480a17462ed70232998127453
category: bugfix
bugzilla: NA
CVE: NA
-------------------------------------------------
from:
https://github.com/torvalds/linux/commit/1f23816b8eb8fdc39990abe166c10a18c16... <https://github.com/torvalds/linux/commit/1f23816b8eb8fdc39990abe166c10a18c16f6b21>
https://github.com/torvalds/linux/commit/af822aa68fbdf0a480a17462ed702329981... <https://github.com/torvalds/linux/commit/af822aa68fbdf0a480a17462ed70232998127453>
In commit 88c85538, "virtio-blk: add discard and write zeroes features
to specification" (https://github.com/oasis-tcs/virtio-spec <https://github.com/oasis-tcs/virtio-spec>), the virtio
block specification has been extended to add VIRTIO_BLK_T_DISCARD and
VIRTIO_BLK_T_WRITE_ZEROES commands. This patch enables support for
discard and write zeroes in the virtio-blk driver when the device
advertises the corresponding features, VIRTIO_BLK_F_DISCARD and
VIRTIO_BLK_F_WRITE_ZEROES.
participants (1)
-
Xie XiuQi