Skip to content

Commit

Permalink
add docs content
Browse files Browse the repository at this point in the history
  • Loading branch information
spyang committed Dec 14, 2021
1 parent 87f8ecc commit f75d6e3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
9 changes: 9 additions & 0 deletions docs/curve-interface/curve-cli.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Curve CLI

- [Create a directory](#create-a-directory)
- [Delete a directory](#delete-a-directory)
- [Create a volume](#create-a-volume)
- [Extend a volume](#extend-a-volume)
- [Get the volume information](#get-the-volume-information)
- [List the volumes in a directory](#list-the-volumes-in-a-directory)
- [Delete a volume](#delete-a-volume)
- [Code Comparison](#code-comparison)

### Create a directory

`curve mkdir [-h] --user USER --dirname DIRNAME`
Expand Down
5 changes: 5 additions & 0 deletions docs/curve-interface/curve-nbd.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Map/unmap the curve device.

- [Usage](#usage)
- [Map](#map)
- [List mapped](#list-mapped)
- [Unmap](#unmap)

### Usage

```
Expand Down
22 changes: 17 additions & 5 deletions docs/curve-interface/snapshot-clone-service.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Curve Snapshot/Clone Interface

- [Create a snapshot](#create-a-snapshot)
- [Delete a snapshot](#delete-a-snapshot)
- [Cancel a snapshot](#cancel-a-snapshot)
- [Query the snapshot information](#query-the-snapshot-information)
- [Clone](#clone)
- [Volume recover from a snapshot](#volume-recover-from-a-snapshot)
- [Flatten](#flatten)
- [Query the information of the specific clone or recover task](#query-the-information-of-the-specific-clone-or-recover-task)
- [Clean a clone or recover task](#clean-a-clone-or-recover-task)
- [Code Comparison](#code-comparison)


## Create a snapshot

| Method | Url |
Expand Down Expand Up @@ -209,7 +221,7 @@ Content-Length: xxx
}
```

## Clone
## Clone

| Method | Url |
| --- | --- |
Expand Down Expand Up @@ -303,7 +315,7 @@ Content-Length: xxx
}
```

## Flatten: recover lazy-cloned volume
## Flatten

| Method | Url |
| --- | --- |
Expand Down Expand Up @@ -346,7 +358,7 @@ Content-Length: xxx
}
```

## Query the information of the specific clone/recover task
## Query the information of the specific clone or recover task

Get all tasks of the specific user, you can limit with:

Expand Down Expand Up @@ -424,7 +436,7 @@ Content-Length: xxx
}
```

## Clean a clone/recover task
## Clean a clone or recover task

Clean the clone/recover task. Delete the temporary cloned file in curvefs server if the task has been failed, otherwise delete the task only.

Expand Down Expand Up @@ -469,7 +481,7 @@ Content-Length: xxx
}
```

## Code Comparison
## Code Comparison

|Code |Message | HTTP Status Code| Description |
| --- | --- | --- | --- |
Expand Down

0 comments on commit f75d6e3

Please sign in to comment.