Skip to content

Commit 057c801

Browse files
authored
Merge pull request #297 from igaw/fix-stringify-hostnqn
fabrics: Correctly stringify default hostnqn and hostid paths
2 parents 121b14f + 0e5e1e3 commit 057c801

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pkgconfiglibdir = get_option('pkgconfiglibdir') == '' ? join_paths(libdir, 'pkgc
3636
################################################################################
3737
conf = configuration_data()
3838

39-
conf.set('SYSCONFDIR', sysconfdir)
39+
conf.set('SYSCONFDIR', '"@0@"'.format(sysconfdir))
4040

4141
# Check for libuuid availability
4242
libuuid_dep = dependency('uuid', required: true)

src/nvme/fabrics.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
#define NVMF_HOSTID_SIZE 37
4242
#define UUID_SIZE 37 /* 1b4e28ba-2fa1-11d2-883f-0016d3cca427 + \0 */
4343

44-
#define NVMF_HOSTNQN_FILE "SYSCONFDIR/nvme/hostnqn"
45-
#define NVMF_HOSTID_FILE "SYSCONFDIR/nvme/hostid"
44+
#define NVMF_HOSTNQN_FILE SYSCONFDIR "/nvme/hostnqn"
45+
#define NVMF_HOSTID_FILE SYSCONFDIR "/nvme/hostid"
4646

4747
const char *nvmf_dev = "/dev/nvme-fabrics";
4848

0 commit comments

Comments
 (0)