fca11f1519
Use SPDK bdev subsystem to allow basic IO to pmem pool using pmemblk_* calls. New pmem bdev can be constructed using RPC call construct_pmem_bdev PMEM_FILE Signed-off-by: Piotr Pelplinski <piotr.pelplinski@intel.com> Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: If5ca94161fe53644b8fccd3b77de5479da1b2e55 Reviewed-on: https://review.gerrithub.io/376973 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
41 lines
1.4 KiB
Bash
Executable File
41 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
# Please run this script as root.
|
|
|
|
SYSTEM=`uname -s`
|
|
|
|
if [ -s /etc/redhat-release ]; then
|
|
# Includes Fedora, CentOS
|
|
if [ -f /etc/centos-release ]; then
|
|
# Add EPEL repository for CUnit-devel
|
|
yum --enablerepo=extras install -y epel-release
|
|
fi
|
|
yum install -y gcc gcc-c++ make CUnit-devel libaio-devel openssl-devel \
|
|
git astyle-devel python-pep8 lcov python clang-analyzer libuuid-devel
|
|
# Additional dependencies for NVMe over Fabrics
|
|
yum install -y libibverbs-devel librdmacm-devel
|
|
# Additional dependencies for DPDK
|
|
yum install -y numactl-devel
|
|
# Additional dependencies for building docs
|
|
yum install -y doxygen mscgen
|
|
# Additional dependencies for building nvml based backends
|
|
yum install -y libpmemblk-devel || true
|
|
elif [ -f /etc/debian_version ]; then
|
|
# Includes Ubuntu, Debian
|
|
apt-get install -y gcc g++ make libcunit1-dev libaio-dev libssl-dev \
|
|
git astyle pep8 lcov clang uuid-dev
|
|
# Additional dependencies for NVMe over Fabrics
|
|
apt-get install -y libibverbs-dev librdmacm-dev
|
|
# Additional dependencies for DPDK
|
|
apt-get install -y libnuma-dev
|
|
# Additional dependencies for building docs
|
|
apt-get install -y doxygen mscgen
|
|
elif [ $SYSTEM = "FreeBSD" ] ; then
|
|
pkg install gmake cunit openssl git devel/astyle bash devel/pep8 \
|
|
python misc/e2fsprogs-libuuid
|
|
# Additional dependencies for building docs
|
|
pkg install doxygen mscgen
|
|
else
|
|
echo "pkgdep: unknown system type."
|
|
exit 1
|
|
fi
|