Skip to content

Commit

Permalink
c0appz: get pools fids from config file
Browse files Browse the repository at this point in the history
Currently, all the pools fids are hard-coded at pool.c,
which requires applications re-build whenever something
changes in the cluster configuration, which is very
inconvenient.

Solution: get pools fids from the utilities startup
config file at $HOME/.c0appz/<app>rc/<node-name> via
M0_POOL_TIER%d parameters.

The format of the config file is changing also: all
the parameters have names now. Here is the example:

```
$ cat ~/.c0appz/c0cprc/client-22
LOCAL_ENDPOINT_ADDR = 172.18.1.22@o2ib:12345:41:351
HA_ENDPOINT_ADDR    = 172.18.1.22@o2ib:12345:34:101
PROFILE_FID         = 0x7000000000000001:0xcfd
LOCAL_PROC_FID      = 0x7200000000000001:0x645
M0_POOL_TIER1 = 0x6f00000000000001:0xc74 # tier1-nvme
M0_POOL_TIER2 = 0x6f00000000000001:0xc8a # tier2-ssd
M0_POOL_TIER3 = 0x6f00000000000001:0xca5 # tier3-hdd
```

Closes Seagate#8.
  • Loading branch information
andriytk committed Sep 15, 2020
1 parent 6a19993 commit 9f3a3aa
Show file tree
Hide file tree
Showing 9 changed files with 198 additions and 270 deletions.
12 changes: 0 additions & 12 deletions .cappsrc

This file was deleted.

11 changes: 0 additions & 11 deletions .project

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ LFLAGS += -L$(M0_SRC_DIR)/extra-libs/gf-complete/src/.libs -Wl,-rpath,$(M0_SRC_D
CFLAGS += -I$(M0_SRC_DIR)
endif

SRC = perf.o buffer.o qos.o c0appz.o pool.o
SRC = perf.o buffer.o qos.o c0appz.o
SRC_ALL = $(SRC) c0cp.o c0ct.o c0rm.o fgen.o \
c0isc_register.o c0isc_demo.o isc_libdemo.o

Expand Down
Loading

0 comments on commit 9f3a3aa

Please sign in to comment.