]> git.proxmox.com Git - ceph.git/blob - ceph/src/pmdk/src/libpmem2/pmem2_utils_none.c
import ceph 16.2.7
[ceph.git] / ceph / src / pmdk / src / libpmem2 / pmem2_utils_none.c
1 // SPDX-License-Identifier: BSD-3-Clause
2 /* Copyright 2020, Intel Corporation */
3
4 #include <errno.h>
5
6 #include "libpmem2.h"
7 #include "out.h"
8 #include "pmem2_utils.h"
9 #include "source.h"
10
11 /*
12 * pmem2_device_dax_alignment -- checks the alignment of a given
13 * dax device from given source
14 */
15 int
16 pmem2_device_dax_alignment(const struct pmem2_source *src, size_t *alignment)
17 {
18 ERR("Cannot read Device Dax alignment - ndctl is not available");
19
20 return PMEM2_E_NOSUPP;
21 }
22
23 /*
24 * pmem2_device_dax_size -- checks the size of a given dax device from
25 * given source
26 */
27 int
28 pmem2_device_dax_size(const struct pmem2_source *src, size_t *size)
29 {
30 ERR("Cannot read Device Dax size - ndctl is not available");
31
32 return PMEM2_E_NOSUPP;
33 }