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

blk: set libpmemblk as deprecated #5538

Merged
merged 1 commit into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ Libraries available in this repository:

- [libpmemobj](https://pmem.io/pmdk/libpmemobj/): provides a transactional object store, providing memory allocation, transactions, and general facilities for persistent memory programming.

- [libpmemblk](https://pmem.io/pmdk/libpmemblk/): supports arrays of pmem-resident blocks, all the same size, that are atomically updated.
- [libpmemblk](https://pmem.io/pmdk/libpmemblk/): supports arrays of pmem-resident blocks, all the same size, that are atomically updated. (DEPRECATED)

Copy link
Contributor

Choose a reason for hiding this comment

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

Please put NOTICE here, under libpmemblk line.

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release
and will be removed in the PMDK 1.14.0 release.

- [libpmemlog](https://pmem.io/pmdk/libpmemlog/): provides a pmem-resident log file.

Expand Down
2 changes: 1 addition & 1 deletion doc/README
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ document subdirectories:

libpmem -- low-level persistent memory support
libpmem2 -- low-level persistent memory support
libpmemblk -- pmem-resident arrays of blocks
libpmemblk -- pmem-resident arrays of blocks (DEPRECATED)
libpmemlog -- pmem-resident log files
libpmemobj -- transactional object store
libpmempool -- persistent memory pool management library
Expand Down
10 changes: 8 additions & 2 deletions doc/libpmemblk/libpmemblk.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmemblk API version 1.1"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2018, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (libpmemblk.7 -- man page for libpmemblk)

Expand All @@ -26,7 +26,7 @@ header: "pmemblk API version 1.1"

# NAME #

**libpmemblk** - persistent memory resident array of blocks
**libpmemblk** - persistent memory resident array of blocks (DEPRECATED)

# SYNOPSIS #

Expand Down Expand Up @@ -300,6 +300,12 @@ See <https://pmem.io/pmdk/libpmemblk> for more examples using the **libpmemblk**
Unlike **libpmemobj**(7), data replication is not supported in **libpmemblk**.
Thus, specifying replica sections in pool set files is not allowed.

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release
and will be removed in the PMDK 1.14.0 release.

# ACKNOWLEDGEMENTS #

**libpmemblk** builds on the persistent memory programming model recommended
Expand Down
4 changes: 2 additions & 2 deletions doc/libpmemblk/pmemblk_bsize.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmemblk API version 1.1"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2017-2018, Intel Corporation)
[comment]: <> (Copyright 2017-2023, Intel Corporation)

[comment]: <> (pmemblk_bsize.3 -- man page for functions that check number of available blocks or usable space in block memory pool)

Expand All @@ -21,7 +21,7 @@ header: "pmemblk API version 1.1"

# NAME #

**pmemblk_bsize**(), **pmemblk_nblock**() - check number of available blocks or
**pmemblk_bsize**()(DEPRECATED), **pmemblk_nblock**()(DEPRECATED) - check number of available blocks or
usable space in block memory pool

# SYNOPSIS #
Expand Down
6 changes: 3 additions & 3 deletions doc/libpmemblk/pmemblk_create.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmemblk API version 1.1"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2017-2018, Intel Corporation)
[comment]: <> (Copyright 2017-2023, Intel Corporation)

[comment]: <> (pmemblk_create.3 -- man page for libpmemblk create, open, close and validate functions)

Expand All @@ -21,8 +21,8 @@ header: "pmemblk API version 1.1"

# NAME #

_UW(pmemblk_create), _UW(pmemblk_open),
**pmemblk_close**(), _UW(pmemblk_check)
_UW(pmemblk_create)(DEPRECATED), _UW(pmemblk_open)(DEPRECATED),
**pmemblk_close**()(DEPRECATED), _UW(pmemblk_check)(DEPRECATED)
- create, open, close and validate block pool

# SYNOPSIS #
Expand Down
8 changes: 4 additions & 4 deletions doc/libpmemblk/pmemblk_ctl_get.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmemblk API version 1.1"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2018-2019, Intel Corporation)
[comment]: <> (Copyright 2018-2023, Intel Corporation)

[comment]: <> (pmemblk_ctl_get.3 -- man page for libpmemblk CTL)

Expand All @@ -22,9 +22,9 @@ header: "pmemblk API version 1.1"

# NAME #

_UW(pmemblk_ctl_get),
_UW(pmemblk_ctl_set),
_UW(pmemblk_ctl_exec)
_UW(pmemblk_ctl_get)(DEPRECATED),
_UW(pmemblk_ctl_set)(DEPRECATED),
_UW(pmemblk_ctl_exec)(DEPRECATED)
- Query and modify libpmemblk internal behavior (EXPERIMENTAL)

# SYNOPSIS #
Expand Down
4 changes: 2 additions & 2 deletions doc/libpmemblk/pmemblk_read.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmemblk API version 1.1"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2017-2018, Intel Corporation)
[comment]: <> (Copyright 2017-2023, Intel Corporation)

[comment]: <> (pmemblk_read.3 -- man page for libpmemblk read and write functions)

Expand All @@ -21,7 +21,7 @@ header: "pmemblk API version 1.1"

# NAME #

**pmemblk_read**(), **pmemblk_write**() - read or write a block from a block
**pmemblk_read**()(DEPRECATED), **pmemblk_write**()(DEPRECATED) - read or write a block from a block
memory pool

# SYNOPSIS #
Expand Down
4 changes: 2 additions & 2 deletions doc/libpmemblk/pmemblk_set_zero.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmemblk API version 1.1"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2017-2018, Intel Corporation)
[comment]: <> (Copyright 2017-2023, Intel Corporation)

[comment]: <> (pmemblk_set_zero.3 -- man page for block management functions)

Expand All @@ -21,7 +21,7 @@ header: "pmemblk API version 1.1"

# NAME #

**pmemblk_set_zero**(), **pmemblk_set_error**() - block management functions
**pmemblk_set_zero**()(DEPRECATED), **pmemblk_set_error**()(DEPRECATED) - block management functions

# SYNOPSIS #

Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool-check.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2018, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-check.1 -- man page for pmempool-check)

Expand All @@ -29,6 +29,11 @@ header: "pmem Tools version 1.4"
$ pmempool check [<options>] <file>
```

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool** invoked with *check* command checks consistency of a given pool file.
Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool-convert.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2018, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-convert.1 -- man page for pmempool-convert)

Expand All @@ -24,6 +24,11 @@ header: "pmem Tools version 1.4"
**pmempool-convert** - this is a wrapper around pmdk-convert tool. More information
can be found in **pmdk-convert**(1) man page.

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# SEE ALSO #

**pmdk-convert**(1), **pmempool**(1), **libpmemblk**(7), **libpmemlog**(7),
Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool-create.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2019, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-create.1 -- man page for pmempool-create)

Expand All @@ -29,6 +29,11 @@ header: "pmem Tools version 1.4"
$ pmempool create [<options>] [<type>] [<bsize>] <file>
```

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool** invoked with *create* command creates a pool file
Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool-dump.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2018, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-dump.1 -- man page for pmempool-dump)

Expand All @@ -30,6 +30,11 @@ header: "pmem Tools version 1.4"
$ pmempool dump [<options>] <file>
```

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool** invoked with *dump* command dumps user data from specified pool file.
Expand Down
8 changes: 7 additions & 1 deletion doc/pmempool/pmempool-info.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2022, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-info.1 -- man page for pmempool-info)

Expand All @@ -31,6 +31,12 @@ header: "pmem Tools version 1.4"
$ pmempool info [<options>] <file>
```

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated (this affects pool types **blk** and **btt**)
since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool** invoked with *info* command analyzes an existing pool
Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool-rm.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2022, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-rm.1 -- man page for pmempool-rm)

Expand All @@ -29,6 +29,11 @@ header: "pmem Tools version 1.4"
$ pmempool rm [<options>] <file>..
```

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool rm** command removes each specified file. If the specified file
Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool-sync.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2018, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-sync.1 -- man page for pmempool-sync)

Expand All @@ -32,6 +32,11 @@ pmempool sync [options] <poolset_file>
NOTE: Only the pool set file used to create the pool should be used
for syncing the pool.

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool sync** command synchronizes data between replicas within
Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool-transform.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2022, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool-transform.1 -- man page for pmempool-transform)

Expand All @@ -29,6 +29,11 @@ header: "pmem Tools version 1.4"
pmempool transform [options] <poolset_file_src> <poolset_file_dst>
```

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool transform** command modifies internal structure of a pool set
Expand Down
7 changes: 6 additions & 1 deletion doc/pmempool/pmempool.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ header: "pmem Tools version 1.4"
---

[comment]: <> (SPDX-License-Identifier: BSD-3-Clause)
[comment]: <> (Copyright 2016-2020, Intel Corporation)
[comment]: <> (Copyright 2016-2023, Intel Corporation)

[comment]: <> (pmempool.1 -- man page for pmempool)

Expand All @@ -31,6 +31,11 @@ header: "pmem Tools version 1.4"
$ pmempool [--help] [--version] <command> [<args>]
```

# NOTE #

> NOTICE:
The **libpmemblk** library is deprecated since PMDK 1.13.0 release.

# DESCRIPTION #

The **pmempool** is a management tool for *Persistent Memory* pool files
Expand Down
6 changes: 5 additions & 1 deletion src/benchmarks/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2022, Intel Corporation
# Copyright 2014-2023, Intel Corporation

#
# src/benchmarks/Makefile -- build all benchmarks
Expand Down Expand Up @@ -102,6 +102,10 @@ CXXFLAGS += -I../core
CXXFLAGS += -I../examples/libpmemobj/map
CXXFLAGS += $(OS_INCS)
CXXFLAGS += -DSRCVERSION='"$(SRCVERSION)"'
# Libpmemblk is deprecated.
# This flag allows to build tests, examples and benchmarks
# using pmemblk despite the deprecated state.
CXXFLAGS += -Wno-deprecated-declarations

ifeq ($(OS_DIMM),ndctl)
CXXFLAGS += -DSDS_ENABLED
Expand Down
7 changes: 6 additions & 1 deletion src/examples/libpmemblk/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2016, Intel Corporation
# Copyright 2014-2023, Intel Corporation

#
# examples/libpmemblk/Makefile -- build the libpmemblk examples
Expand All @@ -11,4 +11,9 @@ LIBS = -lpmemblk -lpmem -pthread

include ../Makefile.inc

# Libpmemblk is deprecated.
# This flag allows to build tests, examples and benchmarks
# using pmemblk despite the deprecated state.
CFLAGS += -Wno-deprecated-declarations

manpage: manpage.o
7 changes: 6 additions & 1 deletion src/examples/libpmemblk/assetdb/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2016, Intel Corporation
# Copyright 2014-2023, Intel Corporation

#
# examples/libpmemblk/assetdb/Makefile -- build the assetdb example
Expand All @@ -10,6 +10,11 @@ LIBS = -lpmemblk -lpmem -pthread

include ../../Makefile.inc

# Libpmemblk is deprecated.
# This flag allows to build tests, examples and benchmarks
# using pmemblk despite the deprecated state.
CFLAGS += -Wno-deprecated-declarations

asset_load: asset_load.o

asset_list: asset_list.o
Expand Down
Loading