-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add document: how to make a patch for export-diff cmd #117
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Yuji Ito <[email protected]>
@@ -15,8 +15,7 @@ make test | |||
|
|||
## Procedure to update | |||
### Update ceph version | |||
|
|||
Imports all of the contents from upstream git, including tags. | |||
**In the `cybozu/ceph` repository,** imports all of the contents from upstream git, including tags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**In the `cybozu/ceph` repository,** imports all of the contents from upstream git, including tags. | |
**In the `cybozu/ceph` repository,** sync with the contents from upstream git (`ceph/ceph`), including tags. |
@@ -29,9 +28,24 @@ git push origin --tags | |||
``` | |||
|
|||
### Update the patch | |||
TBD | |||
**In the `cybozu/ceph` repository,** the export-diff patch is created by each target Ceph version. A branch is created for each Ceph version. If there is no branch for the target version, You can create it like the following. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**In the `cybozu/ceph` repository,** the export-diff patch is created by each target Ceph version. A branch is created for each Ceph version. If there is no branch for the target version, You can create it like the following. | |
**In the `cybozu/ceph` repository,** you checkout the target branch (`rbd-export-vx.y.z`). If it doesn't exist yet, it's necessary to create it and apply the newest patch as follows. |
git checkout -b rbd-export-v$VERSION tags/v$VERSION | ||
``` | ||
|
||
You commit & push to the branch in the same way as normal development, but **you do not create an RP, and do not merge to the main branch.** You simply save the changes to the branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You commit & push to the branch in the same way as normal development, but **you do not create an RP, and do not merge to the main branch.** You simply save the changes to the branch. | |
You modify code, commit the changes, and push to the branch in the same way as normal development. **You must not create a PR corresponding to this branch**. |
git diff tags/v$VERSION > export-diff.patch | ||
``` | ||
|
||
The patches are stored in the `ceph` directory in the `cybozu-go/mantle` repository. Please copy them manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patches are stored in the `ceph` directory in the `cybozu-go/mantle` repository. Please copy them manually. | |
You store the up-to-date export-diff.patch as [`ceph/export-diff.patch`](https://github.com/cybozu-go/mantle/blob/main/ceph/export-diff.patch). |
**In the `cybozu/ceph` repository,** the export-diff patch is created by each target Ceph version. A branch is created for each Ceph version. If there is no branch for the target version, You can create it like the following. | ||
|
||
```sh | ||
# at working directory for https://github.com/ceph/ceph.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# at working directory for https://github.com/ceph/ceph.git | |
# at working directory for https://github.com/cybozu/ceph.git |
```sh | ||
# at working directory for https://github.com/ceph/ceph.git | ||
VERSION=16.2.4 | ||
git checkout -b rbd-export-v$VERSION tags/v$VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git checkout -b rbd-export-v$VERSION tags/v$VERSION | |
git checkout -b rbd-export-v$VERSION tags/v$VERSION | |
git apply ceph/export-diff.patch |
No description provided.