本文将介绍利用b4来获取mailing list中的patch。

1. Motivation

如何将mailing list中看到的patch https://lore.kernel.org/all/20210915095037.1149-1-shameerali.kolothum.thodi@huawei.com/ 下载下来呢?

b4正式登场!

2. 安装

1
pip3 install b4

3. Usage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$ b4 am https://lore.kernel.org/all/20210915095037.1149-1-shameerali.kolothum.thodi@huawei.com

Grabbing thread from lore.kernel.org/all/20210915095037.1149-1-shameerali.kolothum.thodi%40huawei.com/t.mbox.gz
Analyzing 31 messages in the thread
Checking attestation on all messages, may take a moment...
---
[PATCH v3 1/6] crypto: hisilicon/qm: Move the QM header to include/linux
[PATCH v3 2/6] crypto: hisilicon/qm: Move few definitions to common header
[PATCH v3 3/6] hisi_acc_qm: Move PCI device IDs to common header
[PATCH v3 4/6] hisi-acc-vfio-pci: add new vfio_pci driver for HiSilicon ACC devices
[PATCH v3 5/6] hisi_acc_vfio_pci: Restrict access to VF dev BAR2 migration region
[PATCH v3 6/6] hisi_acc_vfio_pci: Add support for VFIO live migration
---
Total patches: 6
---
Cover: ./v3_20210915_shameerali_kolothum_thodi_vfio_hisilicon_add_acc_live_migration_driver.cover
Link: https://lore.kernel.org/r/20210915095037.1149-1-shameerali.kolothum.thodi@huawei.com
Base: not specified
git am ./v3_20210915_shameerali_kolothum_thodi_vfio_hisilicon_add_acc_live_migration_driver.mbx
  • grab the whole thread
  • find the latest revision of the series (v3)
  • save all patches into a mbox file
  • save the cover letter into a cover file
  • show example git am commands

参考资料:

  1. Introducing b4 and patch attestation
  2. 如何跟踪发现Linux内核补丁
  3. Applying mailing list patches with ‘git b4’