Skip to content

Commit 99a3905

Browse files
Merge pull request #439 from martin-belanger/add-dhchap-secret
udev-rules: use systemd escape char (\x09) instead of \t (tab)
2 parents 3b4b4c1 + 013aaae commit 99a3905

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ install: stas
4747

4848
.PHONY: uninstall
4949
uninstall: ${BUILD-DIR}
50-
sudo ninja $@ -C ${BUILD-DIR}
50+
cd ${BUILD-DIR} && sudo meson --internal uninstall
51+
5152

5253
.PHONY: dist
5354
dist: stas

staslib/service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def _dc_removed(self):
510510
UDEV_RULE_OVERRIDE = r'''
511511
ACTION=="change", SUBSYSTEM=="fc", ENV{FC_EVENT}=="nvmediscovery", \
512512
ENV{NVMEFC_HOST_TRADDR}=="*", ENV{NVMEFC_TRADDR}=="*", \
513-
RUN+="%s --no-block start nvmf-connect@--transport=fc\t--traddr=$env{NVMEFC_TRADDR}\t--trsvcid=none\t--host-traddr=$env{NVMEFC_HOST_TRADDR}.service"
513+
RUN+="%s --no-block restart nvmf-connect@--device\x3dnone\x09--transport\x3dfc\x09--traddr\x3d$env{NVMEFC_TRADDR}\x09--trsvcid\x3dnone\x09--host-traddr\x3d$env{NVMEFC_HOST_TRADDR}.service"
514514
'''
515515

516516

@@ -864,10 +864,12 @@ def _nvme_cli_interop(self, udev_obj):
864864
return
865865

866866
# We need to invoke "nvme connect-all" using nvme-cli's [email protected]
867-
# NOTE: Eventually, we'll be able to drop --host-traddr and --host-iface from
867+
# NOTE 1: Eventually, we'll be able to drop --host-traddr and --host-iface from
868868
# the parameters passed to [email protected]. A fix was added to connect-all
869869
# to infer these two values from the device used to connect to the DC.
870870
# Ref: https://github.com/linux-nvme/nvme-cli/pull/1812
871+
#
872+
# NOTE 2:--transport, --traddr, and --trsvcid, not needed when using --device
871873
cnf = [
872874
('--device', udev_obj.sys_name),
873875
('--host-traddr', udev_obj.properties.get('NVME_HOST_TRADDR', None)),

0 commit comments

Comments
 (0)