|
Revision tags: v25.01-rc1, v24.09, v25.01-pre, v24.09-rc1 |
|
| #
1521bf3b |
| 17-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
bdev/null: Make DIF PI format configurable at bdev creation
Make bdev's PI format configurable via the bdev_null_create RPC. Add the same check as the NVMe specification, for example, metadata size
bdev/null: Make DIF PI format configurable at bdev creation
Make bdev's PI format configurable via the bdev_null_create RPC. Add the same check as the NVMe specification, for example, metadata size should not be less than 16 bytes if format is 16/32b Guard PI.
Additionally, add dif_pi_format into write_json_config().
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I64a53fd3d6dae4c85865c5174d86a55854d74d87 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24110 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
| #
36943038 |
| 17-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
bdev/null: bdev_null_create RPC uses bdev_null_opts directly
The bdev_null_create RPC set rpc_construct_null structure and copied it to null_bdev_opts structure. However, this was not efficient or c
bdev/null: bdev_null_create RPC uses bdev_null_opts directly
The bdev_null_create RPC set rpc_construct_null structure and copied it to null_bdev_opts structure. However, this was not efficient or clean.
The difference of rpc_construct_null structure and null_bdev_opts structure were: 1. null_bdev_opts::block_size was block size, rpc_construct_null::block_size was data block size 2. null_bdev_opts::uuid was pointer, rpc_construct_null::uuid was instance
For #1, as we do for malloc bdev, we can use null_bdev_opts::block_size as data block size. If null_bdev_opts::block_size is data block size, we do not have to compare opts::block_size and opts::md_size.
For #2, as we do for malloc bdev, null_bdev_opts::uuid can be instance and we can copy null_bdev_opts::uuid to spdk_bdev::uuid.
Additionally, spdk_null_bdev_opts is not a public data structure. Hence, it should not have "spdk_" prefix.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: If53702071cf02fe23d03f464a63c2495c70e1f12 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24109 Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
show more ...
|
| #
ccc88995 |
| 17-Jul-2024 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
bdev/null: Remove md_interleave from null_bdev_opts
Null bdev module supports only interleaved metadata. We can remove md_interleave from null_bdev_opts and just set md_interleave to true at bdev cr
bdev/null: Remove md_interleave from null_bdev_opts
Null bdev module supports only interleaved metadata. We can remove md_interleave from null_bdev_opts and just set md_interleave to true at bdev creation.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I60eb1769914d62a3e855d893b03199b395631100 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24207 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
|
Revision tags: v24.05, v24.09-pre, v24.05-rc1, LTS, v24.01, v24.05-pre, v24.01-rc1, v23.09, v24.01-pre, v23.09-rc1, v23.05, v23.09-pre, v23.01.1 |
|
| #
7f50da15 |
| 14-Feb-2023 |
Panfil, Wojciech <wojciech.panfil@intel.com> |
null_bdev: Add physical block size optional argument
In the past we didn't use the distinction between logical block size and physical block size in null bdev. Now we can optionally set the physical
null_bdev: Add physical block size optional argument
In the past we didn't use the distinction between logical block size and physical block size in null bdev. Now we can optionally set the physical block size to be different then logical block size. It's useful for testing NVMe 512e Advanced Format scenarios.
Change-Id: Ib3713af9a4d0ce7fd322170b4d87100cfc91a103 Signed-off-by: Panfil, Wojciech <wojciech.panfil@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16792 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
show more ...
|
|
Revision tags: v23.01, v23.05-pre, v23.01-rc1, v22.01.2 |
|
| #
a6dbe372 |
| 01-Nov-2022 |
paul luse <paul.e.luse@intel.com> |
update Intel copyright notices
per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices.
git log --follow -C90% --format=%ad --date defa
update Intel copyright notices
per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices.
git log --follow -C90% --format=%ad --date default <file> | tail -1
and then pull just the 4 digit year from the result.
Intel copyrights were not added to files where Intel either had no contribution ot the contribution lacked substance (ie license header updates, formatting changes, etc). Contribution date used "--follow -C95%" to get the most accurate date.
Note that several files in this patch didn't end the license/(c) block with a blank comment line so these were added as the vast majority of files do have this last blank line. Simply there for consistency.
Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: Id5b7ce4f658fe87132f14139ead58d6e285c04d4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15192 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot
show more ...
|
|
Revision tags: v22.09, v23.01-pre, v22.09-rc1 |
|
| #
488570eb |
| 03-Jun-2022 |
Jim Harris <james.r.harris@intel.com> |
Replace most BSD 3-clause license text with SPDX identifier.
Many open source projects have moved to using SPDX identifiers to specify license information, reducing the amount of boilerplate code in
Replace most BSD 3-clause license text with SPDX identifier.
Many open source projects have moved to using SPDX identifiers to specify license information, reducing the amount of boilerplate code in every source file. This patch replaces the bulk of SPDK .c, .cpp and Makefiles with the BSD-3-Clause identifier.
Almost all of these files share the exact same license text, and this patch only modifies the files that contain the most common license text. There can be slight variations because the third clause contains company names - most say "Intel Corporation", but there are instances for Nvidia, Samsung, Eideticom and even "the copyright holder".
Used a bash script to automate replacement of the license text with SPDX identifier which is checked into scripts/spdx.sh.
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Iaa88ab5e92ea471691dc298cfe41ebfb5d169780 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12904 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: <qun.wan@intel.com>
show more ...
|
|
Revision tags: v22.05, v22.09-pre, v22.05-rc1, v22.01.1 |
|
| #
02e3c62c |
| 29-Mar-2022 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
bdev/null: Use bdev_open_ext() for resize instead of bdev_get_by_name()
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I9381aad017fae63b725deb21790bf4e3f717c88e Reviewed-on: http
bdev/null: Use bdev_open_ext() for resize instead of bdev_get_by_name()
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I9381aad017fae63b725deb21790bf4e3f717c88e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12072 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
| #
4573e4cc |
| 29-Mar-2022 |
Shuhei Matsumoto <smatsumoto@nvidia.com> |
module/bdev: Use spdk_bdev_unregister_by_name() if possible
Replace spdk_bdev_get_by_name() + spdk_bdev_unregister() by spdk_bdev_unregister_by_name() wherever possible.
This simplifies the code an
module/bdev: Use spdk_bdev_unregister_by_name() if possible
Replace spdk_bdev_get_by_name() + spdk_bdev_unregister() by spdk_bdev_unregister_by_name() wherever possible.
This simplifies the code and makes the code more reliable.
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I91388c9d0b2e244cb745720a480803b03c42a226 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12066 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
|
Revision tags: v22.01, v22.01-rc1, v21.10, v21.10-rc1, v21.07, v21.07-rc1, v21.04, v21.04-rc1, v21.01.1, v21.01, v21.01-rc1 |
|
| #
d0657f32 |
| 06-Jan-2021 |
Jin Yu <jin.yu@intel.com> |
bdev_null: add null bdev resize rpc
Usually null bdev is used in testing. The resize function provides flexibility
Change-Id: I603db0b85ff13a86d38ccc8dd6f260807393df93 Signed-off-by: Jin Yu <jin.yu
bdev_null: add null bdev resize rpc
Usually null bdev is used in testing. The resize function provides flexibility
Change-Id: I603db0b85ff13a86d38ccc8dd6f260807393df93 Signed-off-by: Jin Yu <jin.yu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5797 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
|
Revision tags: v20.10, v20.10-rc1, v20.07, v20.07-rc1, v20.04.1, v20.01.2, v20.04, v20.04-rc1, v20.01.1, v20.01, v20.01-rc1, v19.10.1, v19.10, v19.10-rc1, v19.07.1 |
|
| #
60563dfe |
| 20-Aug-2019 |
Pawel Kaminski <pawelx.kaminski@intel.com> |
scripts/rpc: Rename rpc related to null bdev
Rename construct_null_bdev to bdev_null_create Rename delete_null_bdev to bdev_null_delete
Change-Id: I2390b14ac62130eaf20b2c43ebd30c763eca34de Signed-o
scripts/rpc: Rename rpc related to null bdev
Rename construct_null_bdev to bdev_null_create Rename delete_null_bdev to bdev_null_delete
Change-Id: I2390b14ac62130eaf20b2c43ebd30c763eca34de Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465789 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
| #
65848d0c |
| 01-Aug-2019 |
Evgeniy Kochetov <evgeniik@mellanox.com> |
bdev/null: Add protection information support to Null bdev
Signed-off-by: Evgeniy Kochetov <evgeniik@mellanox.com> Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com> Signed-off-by: Alexey Ma
bdev/null: Add protection information support to Null bdev
Signed-off-by: Evgeniy Kochetov <evgeniik@mellanox.com> Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com> Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Change-Id: I6e3a4bdf7de812074f28b329b003049ba00bb23c Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464780 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| #
f1209426 |
| 31-Jul-2019 |
Evgeniy Kochetov <evgeniik@mellanox.com> |
bdev/null: Add metadata support for Null bdev
'md_interleave' option is added to spdk_null_bdev_opts along with 'md_size', but only interleaved metadata is supported at the moment. 'md_interleave' o
bdev/null: Add metadata support for Null bdev
'md_interleave' option is added to spdk_null_bdev_opts along with 'md_size', but only interleaved metadata is supported at the moment. 'md_interleave' option must be initialiazed with 'true', otherwise -ENOTSUP will be returned from Null bdev constructor.
Signed-off-by: Evgeniy Kochetov <evgeniik@mellanox.com> Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com> Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Change-Id: Ibee745741d0125534e06aa6a35767d9dff795951 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464777 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
| #
07fe6a43 |
| 16-Aug-2019 |
Seth Howell <seth.howell@intel.com> |
mk: move the bdev modules under module directory.
This is more accurate to what they are, and will make defining library dependencies much simpler. This change in directory does not affect the final
mk: move the bdev modules under module directory.
This is more accurate to what they are, and will make defining library dependencies much simpler. This change in directory does not affect the final placement of naming of libraries at the end of time.
Change-Id: Ic48a9233dff564e39ce357a9ea0a111ea2b6414b Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465454 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
show more ...
|