diff --git a/doc/jsonrpc.md b/doc/jsonrpc.md index 7ee6ce9f1..5b06b14e4 100644 --- a/doc/jsonrpc.md +++ b/doc/jsonrpc.md @@ -779,14 +779,14 @@ Example response: Construct new OCF bdev. Command accepts cache mode that is going to be used. -Currently, we support Write-Through and Pass-Through OCF cache modes. +Currently, we support Write-Through, Pass-Through and Write-Back OCF cache modes. ### Parameters Name | Optional | Type | Description ----------------------- | -------- | ----------- | ----------- name | Required | string | Bdev name to use -mode | Required | string | OCF cache mode ('wt' or 'pt') +mode | Required | string | OCF cache mode ('wb' or 'wt' or 'pt') cache_bdev_name | Required | string | Name of underlying cache bdev core_bdev_name | Required | string | Name of underlying core bdev diff --git a/scripts/rpc.py b/scripts/rpc.py index bd28ef48d..3bd8d99b2 100755 --- a/scripts/rpc.py +++ b/scripts/rpc.py @@ -183,7 +183,7 @@ if __name__ == "__main__": p = subparsers.add_parser('construct_ocf_bdev', help='Add an OCF block device') p.add_argument('name', help='Name of resulting OCF bdev') - p.add_argument('mode', help='OCF cache mode', choices=['wt', 'pt']) + p.add_argument('mode', help='OCF cache mode', choices=['wb', 'wt', 'pt']) p.add_argument('cache_bdev_name', help='Name of underlying cache bdev') p.add_argument('core_bdev_name', help='Name of unerlying core bdev') p.set_defaults(func=construct_ocf_bdev) diff --git a/scripts/rpc/bdev.py b/scripts/rpc/bdev.py index dcbf9b1ff..23536f803 100644 --- a/scripts/rpc/bdev.py +++ b/scripts/rpc/bdev.py @@ -73,7 +73,7 @@ def construct_ocf_bdev(client, name, mode, cache_bdev_name, core_bdev_name): Args: name: name of constructed OCF bdev - mode: OCF cache mode: {'wt', 'pt'} + mode: OCF cache mode: {'wb', 'wt', 'pt'} cache_bdev_name: name of underlying cache bdev core_bdev_name: name of underlying core bdev