Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c0appz: get pools fids from config file
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