Merge pull request #316 from mmichal10/update-example-adapter

Update example adapter
This commit is contained in:
Michal Rakowski 2019-10-21 15:46:53 +02:00 committed by GitHub
commit e6bdc2d247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ all: sync
$(MAKE) $(PROGRAM) $(MAKE) $(PROGRAM)
$(PROGRAM): $(OBJS) $(PROGRAM): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(CC) -o $@ $^ $(LDFLAGS)
sync: sync:
@$(MAKE) -C ${OCFDIR} inc O=$(PWD) @$(MAKE) -C ${OCFDIR} inc O=$(PWD)

View File

@ -207,7 +207,7 @@ int initialize_core(ocf_cache_t cache, ocf_core_t *core)
/* Core configuration */ /* Core configuration */
ocf_mngt_core_config_set_default(&core_cfg); ocf_mngt_core_config_set_default(&core_cfg);
core_cfg.name = "core1"; strcpy(core_cfg.name, "core1");
core_cfg.volume_type = VOL_TYPE; core_cfg.volume_type = VOL_TYPE;
ret = ocf_uuid_set_str(&core_cfg.uuid, "core"); ret = ocf_uuid_set_str(&core_cfg.uuid, "core");
if (ret) if (ret)