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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions ceph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```sh
git swtich main
Expand All @@ -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.

```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
```

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.

```sh
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.

### Release
**Works in the `cybozu-go/mantle` repository.**

1. The version is determined. The patch version is the same as the base ceph version. The fourth field starts at 0 for each ceph version and increases by 1 for each release.
```sh
Expand Down
Loading