Codebase list tcmu / 650930f
configfs: add CFGFS_TARGET_MOD macro Signed-off-by: Xiubo Li <xiubli@redhat.com> Xiubo Li 5 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6363
6464 #define CFGFS_ROOT "/sys/kernel/config/target"
6565 #define CFGFS_CORE CFGFS_ROOT"/core"
66
67 #define CFGFS_TARGET_MOD "/sys/module/target_core_user"
6668
6769 /* Temporarily limit this to 32M */
6870 #define VPD_MAX_UNMAP_LBA_COUNT (32 * 1024 * 1024)
485485 } else {
486486 tcmu_info("no modules directory '/lib/modules/%s', checking module target_core_user entry in '/sys/modules/'\n",
487487 u.release);
488 ret = stat("/sys/module/target_core_user", &sb);
488 ret = stat(CFGFS_TARGET_MOD, &sb);
489489 if (!ret) {
490490 tcmu_dbg("Module target_core_user already loaded\n");
491491 } else {
492 tcmu_err("stat() on '/sys/module/target_core_user' failed: %m\n");
492 tcmu_err("stat() on '%s' failed: %m\n",
493 CFGFS_TARGET_MOD);
493494 }
494495 }
495496 } else {