Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

llamerada-jp
Copy link
Contributor

No description provided.

@llamerada-jp llamerada-jp marked this pull request as ready for review February 27, 2025 01:08
@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants