File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ if systemd-analyze compare-versions "$(nvme --version | grep libnvme | awk '{pri
11
11
fi
12
12
fi
13
13
14
+ VERBOSE=" "
15
+ if systemd-analyze compare-versions " $( nvme --version | grep ' ^nvme' | awk ' {print $3}' ) " ge 2.7; then
16
+ VERBOSE=" -vv"
17
+ fi
18
+
14
19
/usr/lib/systemd/systemd-storagetm --list-devices
15
20
16
21
modprobe -v nvmet-tcp
@@ -24,7 +29,7 @@ NVME_UUID="$(cat /proc/sys/kernel/random/uuid)"
24
29
systemd-run -u teststoragetm.service -p Type=notify -p " Environment=SYSTEMD_NVME_UUID=${NVME_UUID:? } " /usr/lib/systemd/systemd-storagetm /var/tmp/storagetm.test --nqn=quux
25
30
NVME_DEVICE=" /dev/disk/by-id/nvme-uuid.${NVME_UUID:? } "
26
31
27
- nvme connect-all -vv -t tcp -a 127.0.0.1 -s 16858 --hostnqn=" $( nvme gen-hostnqn) "
32
+ nvme connect-all " ${VERBOSE} " -t tcp -a 127.0.0.1 -s 16858 --hostnqn=" $( nvme gen-hostnqn) "
28
33
udevadm wait --settle --timeout=30 " $NVME_DEVICE "
29
34
30
35
dd if=" $NVME_DEVICE " bs=1024 | cmp /var/tmp/storagetm.test -
You can’t perform that action at this time.
0 commit comments