mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
a5b4d63582
By default the zpool_layout command would always use the slot number assigned by Linux when generating the zdev.conf file. This is a reasonable default there are cases when it makes sense to remap the slot id assigned by Linux using your own custom mapping. This commit adds support to zpool_layout to provide a custom slot mapping file. The file contains in the first column the Linux slot it and in the second column the custom slot mapping. By passing this map file with '-m map' to zpool_config the mapping will be applied when generating zdev.conf. Additionally, two sample mapping have been added which reflect different ways to map the slots in the dragon drawers.
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
SUBDIRS = zpool-config zpool-layout zpios-test zpios-profile
|
|
|
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
|
dist_pkglibexec_SCRIPTS = \
|
|
$(top_builddir)/scripts/common.sh \
|
|
$(top_srcdir)/scripts/zconfig.sh \
|
|
$(top_srcdir)/scripts/zfs.sh \
|
|
$(top_srcdir)/scripts/zpool-create.sh \
|
|
$(top_srcdir)/scripts/zpios.sh \
|
|
$(top_srcdir)/scripts/zpios-sanity.sh \
|
|
$(top_srcdir)/scripts/zpios-survey.sh
|
|
|
|
ZFS=$(top_builddir)/scripts/zfs.sh
|
|
ZCONFIG=$(top_builddir)/scripts/zconfig.sh
|
|
ZTEST=$(top_builddir)/cmd/ztest/ztest
|
|
ZPIOS_SANITY=$(top_builddir)/scripts/zpios-sanity.sh
|
|
|
|
all:
|
|
@list='$(dist_pkglibexec_SCRIPTS)'; \
|
|
for file in $$list; do \
|
|
link=$$(basename $$file); \
|
|
if [ ! -e $$link ]; then \
|
|
$(LN_S) $$file $$link; \
|
|
fi \
|
|
done
|
|
|
|
clean:
|
|
@list='$(dist_pkglibexec_SCRIPTS)'; \
|
|
for file in $$list; do \
|
|
link=$$(basename $$file); \
|
|
if [ -L $$link ]; then \
|
|
$(RM) $$link; \
|
|
fi \
|
|
done
|
|
|
|
check:
|
|
@echo
|
|
@echo -n "===================================="
|
|
@echo -n " ZTEST "
|
|
@echo "===================================="
|
|
@echo
|
|
@$(ZFS)
|
|
@$(ZTEST) -V
|
|
@$(ZFS) -u
|
|
@echo
|
|
@echo
|
|
@echo -n "==================================="
|
|
@echo -n " ZCONFIG "
|
|
@echo "==================================="
|
|
@echo
|
|
@$(ZCONFIG)
|
|
@echo
|
|
@echo -n "===================================="
|
|
@echo -n " ZPIOS "
|
|
@echo "===================================="
|
|
@echo
|
|
@$(ZFS)
|
|
@$(ZPIOS_SANITY)
|
|
@$(ZFS) -u
|
|
@echo
|