############
Q1:init_hlfs和init_hlfs_by_config是两种独立的方式吗?
Q2:当入16行使用init_hlfs_by_config的时候,出现错误:
############
$ ./test_initbyconfig
parse config file error
param error
############
配置文件hlfs.config来自trunk/hlfs/output/conf,如下:
###########
1 [STORAGE]
2 storage_uri=local:///tmp/testenv/testfs
3 #storage_uri=dfs://localhoast/tmp/testenv/testfs
4 seg_clean_check_period = 10
5 seg_copy_waterlevel = 128
6 is_start_clean = TRUE
7 [CACHE]
8 is_enable_cache=0
9 block_size=8192
10 cache_size=1024
11 #second
12 flush_interval=1
13 #0..100
14 flush_trigger_level=80
15 #block
16 flush_once_size=64
17 [ICACHE]
18 is_enable_icache=1
19 iblock_size=8192
20 icache_size=1024
21 invalidate_trigger_level=80
22 #block
23 invalidate_once_size=64
###########
Q3:若换成init_hlfs来初始化,出现如下错误:
##########
enter func init_storage_handler
loc [fs:testfs],
uri:local:///tmp/testenv/testfs, head:local, dir:/tmp/testenv, fsname:testfs, hostname:default,port:0, user:kanghua
leave func init_storage_handler
enter func init_from_superblock
local -- enter func build_local_path, dir:/tmp/testenv, fs:testfs, path:superblock
superblock file can not be accessable
read superblock keyfile error
##########
我不知道哪里使用错了.
thanks!
--
Ren Zhen