file_io.c:    data = search_dbdata(DBU, stiger, config->hashlen, LOCK);
file_io.c:        bin_write_dbdata(DBU, stiger, config->hashlen,
file_io.c:    if (config->nospace == -ENOSPC) {
file_io.c:        config->nospace = ENOSPC;
file_io.c:    if (config->replication == 1 && config->replication_role == 0) {
file_io.c:        path=s_zmalloc(1+strlen("/high")+strlen(config->blockdata)+2*config->chunk_depth);
file_io.c:        sprintf(path,"%s/high",config->blockdata);
file_io.c:        path=s_zmalloc(1+strlen("/medium")+strlen(config->blockdata)+2*config->chunk_depth);
file_io.c:        sprintf(path,"%s/medium",config->blockdata);
file_io.c:        path=s_zmalloc(1+strlen("/low")+strlen(config->blockdata)+2*config->chunk_depth);
file_io.c:        sprintf(path,"%s/low",config->blockdata);
file_io.c:    for ( d=0; d<config->chunk_depth*2;d+=2){
file_io.c:        if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) {
file_io.c:        if (config->replication == 1 && config->replication_role == 0) {
file_io.c:                     config->hashlen);
file_io.c:        if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) {
file_io.c:        if (config->replication == 1 && config->replication_role == 0) {
file_io.c:                     config->hashlen);
file_io.c:        if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) {
file_io.c:                if (tctreernum(workqtree) * 2 > config->cachesize ||
file_io.c:                    tctreernum(readcachetree) * 2 > config->cachesize) {
file_io.c:    if (config->nospace != ENOSPC) {
file_io.c:        freeblock.reuseafter = thetime + (config->flushtime * 10);
file_io.c:        if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) {
file_io.c:        if (config->background_delete != 0) {
file_io.c:            if (config->background_delete != 0)
file_io.c:                if (config->background_delete != 0)
file_io.c:            if (config->background_delete != 0)
file_io.c:                if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) {
file_io.c:        if (config->background_delete != 0)
file_io.c:        if (config->background_delete) {
file_io.c:            if (config->shutdown) {
file_io.c:        if (config->background_delete != 0)
file_io.c:        if (config->background_delete != 0)
file_io.c:    if (config->background_delete == 0) {
file_io.c:        if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) {
lessfs.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 0) {
lessfs.c:        s_free(config->lfsstats);
lessfs.c:        config->lfsstats = lessfs_stats();
lessfs.c:        stbuf->st_size = strlen(config->lfsstats);
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (NULL != config->blockdatabs) {
lessfs.c:    if (config->relax == 0)
lessfs.c:    if (config->nospace == ENOSPC)
lessfs.c:        config->nospace = -ENOSPC;
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (config->sticky_on_locked && S_ISREG(stbuf.st_mode)) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:        if (NULL != config->blockdatabs) {
lessfs.c:    if (config->nospace == ENOSPC)
lessfs.c:        config->nospace = -ENOSPC;
lessfs.c:        strncpy(buf, &config->lfsstats[offset], size);
lessfs.c:        sprintf(buf, "%i\n", config->replication_enabled);
lessfs.c:        sprintf(buf, "%i\n", config->replication_backlog);
lessfs.c:        if (NULL != config->blockdatabs) {
lessfs.c:    data = search_dbdata(DBDTA, hash, config->hashlen, LOCK);
lessfs.c:            if (NULL == config->blockdatabs) {
lessfs.c:    if (tctreernum(workqtree) * 2 > config->cachesize ||
lessfs.c:        tctreernum(readcachetree) * 2 > config->cachesize) {
lessfs.c:    if (config->nospace == ENOSPC)
lessfs.c:            config->replication_enabled = 0;
lessfs.c:            config->replication_enabled = 1;
lessfs.c:    if (config->replication == 1 && config->replication_role == 1) {
lessfs.c:    if (NULL != config->blockdatabs) {
lessfs.c:        res = statvfs(config->blockdata, stbuf);
lessfs.c:        blockdatadir = s_dirname(config->blockdata);
lessfs.c:    if (config->relax < 2) {
lessfs.c:    /* When config->relax == 1 dbsync is not called but the caches within lessfs
lessfs.c:    if (config->relax == 0)
lessfs.c:    config->shutdown = 1;
lessfs.c:    if (config->replication_enabled) {
lessfs.c:        while (!config->safe_down) {
lessfs.c:    config->replication = 0;
lessfs.c:    if (config->transactions)
lessfs.c:    s_free(config->lfsstats);
lessfs.c:    if (config->encryptdata) {
lessfs.c:        s_free(config->passwd);
lessfs.c:        s_free(config->iv);
lessfs.c:    if (config->transactions)
lessfs.c:        free(config->commithash);
lessfs.c:    if (config->replication_watchdir)
lessfs.c:        s_free(config->replication_watchdir);
lessfs.c:      config->reclaim=1;
lessfs.c:    } else config->reclaim=0;
lessfs.c:    config->frozen = 1;
lessfs.c:    if (config->nospace != 0) {
lessfs.c:        if (config->nospace == 1) {
lessfs.c:            config->nospace = -ENOSPC;
lessfs.c:            if (config->nospace == 0) {
lessfs.c:                config->frozen = 0;
lessfs.c:    if (config->nospace == 0)
lessfs.c:                               config->meta);
lessfs.c:                if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lessfs.c:                    dbpath = s_strdup(config->blockdata);
lessfs.c:                               config->meta);
lessfs.c:                if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lessfs.c:                    dbpath = s_strdup(config->blockdata);
lessfs.c:                               config->fileblock);
lessfs.c:                               config->blockusage);
lessfs.c:                               config->meta);
lessfs.c:                if (NULL != config->blockdatabs) {
lessfs.c:                                   config->blockdata);
lessfs.c:                    dbpath = s_strdup(config->blockdata);
lessfs.c:                               config->symlink);
lessfs.c:                               config->dirent);
lessfs.c:                               config->hardlink);
lessfs.c:                config->nospace = RECLAIM_AGRESSIVE;
lessfs.c:            sleep(config->inspectdiskinterval);
lessfs.c:            if (config->replication && config->replication_role == 0
lessfs.c:                && 0 != strcmp(config->replication_partner_ip, "-1")) {
lessfs.c:            } else if (config->shutdown
lessfs.c:                       || config->replication_enabled == 0)
lessfs.c:                config->safe_down = 1;
lessfs.c:    if (0 != strcmp(config->blockdata_io_type, "file_io")) {
lessfs.c:    if (NULL == config->blockdatabs) {
lessfs.c:        if (config->replication) {
lessfs.c:            sleep(config->flushtime / 2);
lessfs.c:            sleep(config->flushtime);
lessfs.c:        if (config->replication != 1 || config->replication_role != 1) {
lessfs.c:                if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) sync();                
lessfs.c:                if (0 == strcmp(config->replication_partner_ip, "-1")
lessfs.c:                    && config->replication && config->replication_role == 0) {
lessfs.c:                    if (stbuf.st_size > config->rotate_replog_size || (curtime - config->replication_last_rotated) > REPLOG_DELAY) {
lessfs.c:                        config->replication_last_rotated = time(NULL);
lessfs.c:            if (config->replication == 1 && config->replication_role == 0) {
lessfs.c:                    if (0 != config->max_backlog_size
lessfs.c:                        && stbuf.st_size > config->max_backlog_size) {
lessfs.c:                            if (stbuf.st_size < config->max_backlog_size)
lessfs.c:    if (config->replication) {
lessfs.c:        if (config->replication_role == 1) {
lessfs.c:        as_sprintf(__FILE__, __LINE__, "%s%i", config->hash,
lessfs.c:                   config->hashlen);
lessfs.c:    if (NULL == config->blockdatabs) {
lessfs.c:        if (config->transactions) {
lessfs.c:        if (config->transactions) {
lessfs.c:    config->lfsstats = s_zmalloc(2);
lessfs.c:    if (config->replication != 1 || config->replication_role != 1) {
lessfsck.c:    data = search_dbdata(DBU, lfshash, config->hashlen, LOCK);
lessfsck.c:    for (n = 0; n < config->hashlen; n++) {
lessfsck.c:    if (0 == memcmp(config->nexthash, hash->data, config->hashlen)) {
lessfsck.c:    if (NULL == config->blockdatabs) {
lessfsck.c:        blockdatadir = s_dirname(config->blockdata);
lessfsck.c:        stat(config->blockdata, &stbuf);
lessfsck.c:                        if (NULL != config->blockdatabs) {
lessfsck.c:            if (!tchdbout(dbdta, key, config->hashlen)) {
lessfsck.c:    if (-1 == stat(config->blockdata, &stbuf))
lessfsck.c:        die_dataerr("%s does not exist.\n", config->blockdata);
lessfsck.c:                        config->blockdata, rsize);
lessfsck.c:    if (NULL != config->blockdatabs) {
lessfsck.c:    if (config->encryptdata) {
lessfsck.c:        free(config->passwd);
lessfsck.c:        free(config->iv);
lib_bdb.c:    if (config->transactions) {
lib_bdb.c:    if (NULL == config->blockdatabs) {
lib_bdb.c:        free(config->nexthash);
lib_bdb.c:    if (config->replication && config->replication_role == 0)
lib_bdb.c:    s_free(config->replication_logfile);
lib_bdb.c:    LINFO("Drop_databases called on %s", config->meta);
lib_bdb.c:    ret = envp->remove(envp, config->meta, 0);
lib_bdb.c:    sp = s_dirname(config->blockdata);
lib_bdb.c:    config->replication_logfile = s_strdup(dbname);
lib_bdb.c:             config->replication_logfile);
lib_bdb.c:    if (config->replication && config->replication_role == 0) {
lib_bdb.c:    LDEBUG("Open the environment : %s", config->meta);
lib_bdb.c:    if (config->tuneforspeed)
lib_bdb.c:    if ( config->bdb_private ) env_flags|=DB_PRIVATE;
lib_bdb.c:    ret = envp->open(envp, config->meta, env_flags, 0);
lib_bdb.c:    if (config->transactions) {
lib_bdb.c:    if ( config->tune_for_size == LFSMEDIUM ) {
lib_bdb.c:    }  else if ( config->tune_for_size == LFSHUGE ) {
lib_bdb.c:    if ( config->tune_for_size == LFSMEDIUM ) {
lib_bdb.c:    } else if ( config->tune_for_size == LFSHUGE ) {
lib_bdb.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_bdb.c:             s_open2(config->blockdata, O_CREAT | O_RDWR| O_NOATIME, S_IRWXU)))
lib_bdb.c:        if (-1 == (stat(config->blockdata, &stbuf)))
lib_bdb.c:        config->nexthash =
lib_bdb.c:        data = search_dbdata(DBU, config->nexthash, config->hashlen, LOCK);
lib_bdb.c:        if (config->transactions) {
lib_bdb.c:    if (config->tuneforspeed) {
lib_bdb.c:        config->transactions = 0;
lib_bdb.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_bdb.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_bdb.c:    if (config->transactions) {
lib_bdb.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_bdb.c:    if (config->transactions)
lib_bdb.c:    if (NULL == config->blockdatabs) {
lib_bdb.c:            bin_write_dbdata(DBU, config->nexthash, config->hashlen,
lib_bdb.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_bdb.c:    if (config->replication && config->replication_role == 0) {
lib_bdb.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_bdb.c:        if (config->replication == 1 && config->replication_role == 0) {
lib_bdb.c:        if (config->replication == 1 && config->replication_role == 0) {
lib_bdb.c:        if (config->encryptmeta && config->encryptdata) {
lib_bdb.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_bdb.c:    if (!config->background_delete)
lib_bdb.c:        if (NULL != config->blockdatabs) {
lib_bdb.c:        if (0 == memcmp(config->nexthash, key.data, config->hashlen)) {
lib_common.c:    if ( -1 == stat(config->blockdata,&stbuf)) die_dataerr("init_chunk_io : path %s does not exist",config->blockdata);
lib_common.c:    if (!S_ISDIR(stbuf.st_mode)) die_dataerr("init_chunk_io : path %s is not a directory",config->blockdata);
lib_common.c:    high=as_sprintf(__FILE__, __LINE__,"%s/high",config->blockdata);
lib_common.c:    medium=as_sprintf(__FILE__, __LINE__,"%s/medium",config->blockdata);
lib_common.c:    low=as_sprintf(__FILE__, __LINE__,"%s/low",config->blockdata);
lib_common.c:    if ( -1 == chdir(config->blockdata)) die_syserr();
lib_common.c:         if ( config->chunk_depth > 2 ) {
lib_common.c:                if ( config->chunk_depth > 3 ) {
lib_common.c:                      if ( config->chunk_depth > 4 ) {
lib_common.c:    td = mhash_init(config->selected_hash);
lib_common.c:    if (-1 == stat(config->blockdata, &stbuf))
lib_common.c:        die_dataerr("Failed to stat %s\n", config->blockdata);
lib_common.c:                        config->blockdata, rsize);
lib_common.c:    if ( config->reclaim) {
lib_common.c:           if (config->nospace != -ENOSPC && config->nospace != ENOSPC
lib_common.c:               && config->nospace != RECLAIM_AGRESSIVE) {
lib_common.c:                   config->nospace = ENOSPC;
lib_common.c:    for (n = 0; n < config->hashlen; n++) {
lib_common.c:    for (n = 0; n < config->hashlen; n++) {
lib_common.c:    for (n = 0; n < config->hashlen; n++) {
lib_common.c:    tctreeput(hashtree, (void *) hash, config->hashlen, &inuse,
lib_common.c:        data = tctreeget(hashtree, hash, config->hashlen, &vsize);
lib_common.c:    tctreeout(hashtree, (void *) hash, config->hashlen);
lib_common.c:    if (config->background_delete != 0) {
lib_common.c:    if (config->background_delete != 0) {
lib_common.c:    if (config->background_delete != 0) {
lib_common.c:    if (config->encryptmeta && config->encryptdata) {
lib_common.c:    if (config->encryptmeta && config->encryptdata) {
lib_common.c:    if (config->encryptmeta && config->encryptdata) {
lib_common.c:    if (config->sticky_on_locked && S_ISREG(stbuf.st_mode)) {
lib_common.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_common.c:        as_sprintf(__FILE__, __LINE__, "%s%i", config->hash,
lib_common.c:                   config->hashlen);
lib_common.c:    if (0 != strcmp(config->blockdata_io_type, "file_io")) {
lib_common.c:    if (config->encryptdata) {
lib_common.c:        stiger = thash(config->passwd, strlen((char *) config->passwd));
lib_common.c:        memcpy(&crypto.passwd, stiger, config->hashlen);
lib_common.c:        memcpy(&crypto.iv, config->iv, 8);
lib_common.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_common.c:        blockdatadir = s_dirname(config->blockdata);
lib_common.c:        stat(config->blockdata, &stbuf);
lib_common.c:    if (config->encryptdata) {
lib_common.c:    if (config->encryptdata) {
lib_common.c:                if (tctreernum(workqtree) * 2 > config->cachesize ||
lib_common.c:                    tctreernum(readcachetree) * 2 > config->cachesize) {
lib_common.c:    delete_key(DBU, stiger, config->hashlen, (char *) __PRETTY_FUNCTION__);
lib_common.c:    data = search_dbdata(DBU, tigerstr, config->hashlen, LOCK);
lib_common.c:        bin_write_dbdata(DBU, hashdata, config->hashlen,
lib_common.c:    if (memddstat->updated > config->cachesize) {
lib_common.c:    switch (config->compression) {
lib_common.c:    switch (config->compression) {
lib_common.c:    if (config->encryptdata) {
lib_common.c:        bin_write_dbdata(DBDTA, stiger, config->hashlen, compressed->data,
lib_common.c:                     config->hashlen);
lib_common.c:    data = search_dbdata(DBDTA, stiger, config->hashlen, LOCK);
lib_common.c:        delete_key(DBDTA, stiger, config->hashlen,
lib_common.c:        if (config->background_delete != 0) {
lib_common.c:            if (config->background_delete != 0)
lib_common.c:                if (config->background_delete != 0)
lib_common.c:            if (config->background_delete != 0)
lib_common.c:            delete_key(DBDTA, stiger, config->hashlen,
lib_common.c:        if (config->background_delete) {
lib_common.c:            if (config->shutdown) {
lib_common.c:        if (config->background_delete != 0)
lib_common.c:        if (config->background_delete != 0)
lib_common.c:    if (config->background_delete == 0) {
lib_common.c:    if (config->transactions) {
lib_common.c:        config->commithash =
lib_common.c:        if (config->blockdatabs != NULL) {
lib_common.c:            inuse = getInUse((unsigned char *) config->commithash);
lib_common.c:                inuse = getInUse((unsigned char *) config->commithash);
lib_common.c:            finuse = file_get_inuse((unsigned char *) config->commithash);
lib_common.c:                    file_get_inuse((unsigned char *) config->commithash);
lib_common.c:    memcpy(&ccachedta->hash, hash, config->hashlen);
lib_common.c:    if (config->blockdatabs != NULL) {
lib_common.c:    if (NULL == config->blockdatabs) {
lib_common.c:        bin_write_dbdata(DBU, config->commithash, config->hashlen,
lib_common.c:        bin_write_dbdata(DBU, config->commithash, config->hashlen,
lib_common.c:    if (config->background_delete == 0) {
lib_common.c:        bin_write_dbdata(DBDTA, &ccachedta->hash, config->hashlen,
lib_common.c:                     config->hashlen);
lib_common.c:        delete_key(DBDTA, hash, config->hashlen, NULL);
lib_common.c:        if (config->replication == 1 && config->replication_role == 0) {
lib_common.c:                            config->hashlen, NULL, 0,
lib_common.c:        if (NULL != config->blockdatabs) {
lib_common.c:            if (NULL != config->blockdatabs) {
lib_common.c:    delete_key(DBU, stiger, config->hashlen, NULL);
lib_common.c:    config->shutdown = 0;
lib_common.c:    config->chunk_depth=2;
lib_common.c:       config->chunk_depth=atoi(iv);
lib_common.c:       if ( config->chunk_depth <= 1 ) config->chunk_depth=2;
lib_common.c:       if ( config->chunk_depth > MAX_CHUNK_DEPTH ) {
lib_common.c:          config->chunk_depth=MAX_CHUNK_DEPTH;
lib_common.c:    config->reclaim = 0;
lib_common.c:    config->bdb_private = 0;
lib_common.c:    config->tune_for_size=LFSSMALL;
lib_common.c:      if ( 0 == strcasecmp("medium",iv)) config->tune_for_size=LFSMEDIUM;
lib_common.c:      if ( 0 == strcasecmp("huge",iv)) config->tune_for_size=LFSHUGE;
lib_common.c:        config->nospace = 1;
lib_common.c:        config->nospace = 0;
lib_common.c:      if ( 0 == strcasecmp("on",iv)) config->bdb_private=1;
lib_common.c:    config->frozen = 0;
lib_common.c:    config->safe_down = 0;
lib_common.c:    config->max_backlog_size = 0;
lib_common.c:    config->tuneforspeed = 0;
lib_common.c:    config->replication_watchdir = NULL;
lib_common.c:    config->replication_last_rotated = time(NULL);
lib_common.c:    config->blockdata = read_val("BLOCKDATA_PATH");
lib_common.c:    config->blockdata_io_type = "tokyocabinet";
lib_common.c:        config->blockdata_io_type = "file_io";
lib_common.c:        config->blockdata = read_val("META_PATH");
lib_common.c:        config->blockdatabs = read_val("BLOCKDATA_BS");
lib_common.c:        config->blockdata_io_type = "file_io";
lib_common.c:        config->blockdata = read_val("META_PATH");
lib_common.c:            config->blockdata_io_type = "file_io";
lib_common.c:            config->blockdatabs = NULL;
lib_common.c:            config->blockdata = read_val("BLOCKDATA_PATH");
lib_common.c:                    config->tuneforspeed = 1;
lib_common.c:            config->blockdata = read_val("BLOCKDATA_PATH");
lib_common.c:               config->blockdata_io_type = "chunk_io";
lib_common.c:               config->blockdata = read_val("BLOCKDATA_PATH");
lib_common.c:               config->blockdatabs = NULL;
lib_common.c:               config->blockdata = read_val("META_PATH");
lib_common.c:               config->blockdatabs = read_val("BLOCKDATA_BS");
lib_common.c:               config->blockdata = read_val("META_PATH");
lib_common.c:    if (0 == strcmp(config->blockdata_io_type, "tokyocabinet"))
lib_common.c:    if (0 == strcmp(config->blockdata_io_type, "tokyocabinet"))
lib_common.c:        sscanf(iv, "%lu", &config->max_backlog_size);
lib_common.c:              config->max_backlog_size);
lib_common.c:        config->transactions = 0;
lib_common.c:            config->transactions = 1;
lib_common.c:            config->transactions = 0;
lib_common.c:    config->meta = read_val("META_PATH");
lib_common.c:    config->meta = read_val("META_PATH");
lib_common.c:    config->freelist = read_val("FREELIST_PATH");
lib_common.c:    config->freelistbs = read_val("FREELIST_BS");
lib_common.c:    config->blockusage = read_val("BLOCKUSAGE_PATH");
lib_common.c:    config->blockusagebs = read_val("BLOCKUSAGE_BS");
lib_common.c:    config->dirent = read_val("DIRENT_PATH");
lib_common.c:    config->direntbs = read_val("DIRENT_BS");
lib_common.c:    config->fileblock = read_val("FILEBLOCK_PATH");
lib_common.c:    config->fileblockbs = read_val("FILEBLOCK_BS");
lib_common.c:    config->meta = read_val("META_PATH");
lib_common.c:    config->metabs = read_val("META_BS");
lib_common.c:    config->hardlink = read_val("HARDLINK_PATH");
lib_common.c:    config->hardlinkbs = read_val("HARDLINK_BS");
lib_common.c:    config->symlink = read_val("SYMLINK_PATH");
lib_common.c:    config->symlinkbs = read_val("SYMLINK_BS");
lib_common.c:    LINFO("config->blockdata = %s", config->blockdata);
lib_common.c:    config->encryptdata = 0;
lib_common.c:    config->encryptmeta = 1;
lib_common.c:    config->hashlen = 24;
lib_common.c:    config->hash = "MHASH_TIGER192";
lib_common.c:    config->selected_hash = MHASH_TIGER192;
lib_common.c:    config->compression = 'Q';
lib_common.c:    config->background_delete = 1;
lib_common.c:    config->sticky_on_locked = 0;
lib_common.c:            config->compression = 'P';
lib_common.c:            config->compression = 'Q';
lib_common.c:            config->compression = 'Q';
lib_common.c:            config->compression = 'L';
lib_common.c:            config->compression = 'G';
lib_common.c:            config->compression = 'B';
lib_common.c:            config->compression = 'D';
lib_common.c:            config->compression = 0;
lib_common.c:            config->compression = 0;
lib_common.c:            config->background_delete = 1;
lib_common.c:    if (config->background_delete) {
lib_common.c:                config->sticky_on_locked = 1;
lib_common.c:        config->hash = iv;
lib_common.c:            config->selected_hash = MHASH_SHA256;
lib_common.c:            config->selected_hash = MHASH_SHA512;
lib_common.c:            config->selected_hash = MHASH_WHIRLPOOL;
lib_common.c:            config->selected_hash = MHASH_HAVAL256;
lib_common.c:            config->selected_hash = MHASH_SNEFRU256;
lib_common.c:            config->selected_hash = MHASH_RIPEMD256;
lib_common.c:        if (config->selected_hash == MHASH_TIGER192)
lib_common.c:            if (atoi(iv) > 24 && config->selected_hash == MHASH_TIGER192) {
lib_common.c:            config->hashlen = atoi(iv);
lib_common.c:    LINFO("Lessfs uses a %i bytes long hash.", config->hashlen);
lib_common.c:        config->relax = 0;
lib_common.c:        config->relax = atoi(iv);
lib_common.c:        if (0 != config->relax) {
lib_common.c:    config->replication = 0;
lib_common.c:    config->replication_enabled = 0;
lib_common.c:    config->replication_backlog = 0;
lib_common.c:    config->rotate_replog_size = ROTATE_REPLOG_SIZE;
lib_common.c:            config->replication = 1;
lib_common.c:        sscanf(iv, "%lu", &config->rotate_replog_size);
lib_common.c:    if (1 == config->replication) {
lib_common.c:        config->replication_enabled = 1;
lib_common.c:            config->replication_role = 0;       // 0=master
lib_common.c:            config->replication_partner_ip =
lib_common.c:            config->replication_partner_port =
lib_common.c:            config->replication_role = 1;       // 1=slave
lib_common.c:            config->replication_listen_ip =
lib_common.c:            if (NULL != config->replication_listen_ip) {
lib_common.c:                if (0 == strcmp(config->replication_listen_ip, "0.0.0.0"))
lib_common.c:                    config->replication_listen_ip = NULL;
lib_common.c:                config->replication_watchdir = s_strdup(iv);
lib_common.c:            config->replication_listen_port =
lib_common.c:                config->replication_enabled = 0;
lib_common.c:        config->inspectdiskinterval = 1;
lib_common.c:        config->inspectdiskinterval = atoi(iv);
lib_common.c:    config->defrag = 0;
lib_common.c:            config->defrag = 1;
lib_common.c:    if (config->defrag)
lib_common.c:    config->cachesize = (calc * 1024 * 1024) / MAX_FUSE_BLKSIZE;
lib_common.c:    config->flushtime = cs;
lib_common.c:    LINFO("cache %llu data blocks", config->cachesize);
lib_common.c:                       config->fileblock);
lib_common.c:        if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) init_chunk_io();
lib_common.c:        if (0 == strncasecmp(config->blockdata_io_type, "chunk_io", strlen("chunk_io"))) {
lib_common.c:                config->encryptdata = 1;
lib_common.c:                        config->encryptmeta = 0;
lib_common.c:        if (config->encryptdata) {
lib_common.c:                config->passwd =
lib_common.c:                config->passwd =
lib_common.c:                thash(config->passwd, strlen((char *) config->passwd));
lib_common.c:            config->iv = s_malloc(8);
lib_common.c:            memcpy(config->iv, crypto->iv, 8);
lib_common.c:            //config->passwd is plain, crypto->passwd is hashed.
lib_common.c:    if (config->blockdatabs != NULL) {
lib_common.c:    if (config->blockdatabs != NULL) {
lib_common.c:    stiger = thash(config->passwd, strlen((char *) config->passwd));
lib_common.c:    if (0 != memcmp(cryptopasswd, stiger, config->hashlen)) {
lib_common.c:    for (n = 0; n < config->hashlen; n++) {
lib_crypto.c:    len = strlen((char *) config->passwd);
lib_crypto.c:    memcpy(safepasswd, config->passwd, len);
lib_crypto.c:    EVP_EncryptInit(&ctx, EVP_bf_cbc(), safepasswd, config->iv);
lib_crypto.c:    EVP_DecryptInit(&ctx, EVP_bf_cbc(), safepasswd, config->iv);
lib_hamster.c:        {HAM_PARAM_CACHESIZE, config->cachesize / 2},
lib_hamster.c:    sp = s_dirname(config->blockdata);
lib_hamster.c:    config->replication_logfile = s_strdup(dbname);
lib_hamster.c:             config->replication_logfile);
lib_hamster.c:    if (config->replication && config->replication_role == 0) {
lib_hamster.c:    dbname = as_sprintf(__FILE__, __LINE__, "%s/lessfs.db", config->meta);
lib_hamster.c:    if (config->transactions) {
lib_hamster.c:    if (config->transactions) {
lib_hamster.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_hamster.c:             s_open2(config->blockdata, O_CREAT | O_RDWR, S_IRWXU)))
lib_hamster.c:        if (-1 == (stat(config->blockdata, &stbuf)))
lib_hamster.c:        config->nexthash =
lib_hamster.c:        data = search_dbdata(DBU, config->nexthash, config->hashlen, LOCK);
lib_hamster.c:        if (config->transactions) {
lib_hamster.c:    dbname = as_sprintf(__FILE__, __LINE__, "%s/lessfs.db", config->meta);
lib_hamster.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_hamster.c:        if (-1 != stat(config->blockdata, &stbuf))
lib_hamster.c:            unlink(config->blockdata);
lib_hamster.c:    dbname = as_sprintf(__FILE__, __LINE__, "%s/lessfs.db", config->meta);
lib_hamster.c:        mkpath(config->meta, 0744);
lib_hamster.c:        {HAM_PARAM_KEYSIZE, config->hashlen}
lib_hamster.c:        {HAM_PARAM_CACHESIZE, config->cachesize / 2},
lib_hamster.c:    if (config->transactions) {
lib_hamster.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_hamster.c:             s_open2(config->blockdata, O_CREAT | O_RDWR, S_IRWXU)))
lib_hamster.c:        if (-1 == (stat(config->blockdata, &stbuf)))
lib_hamster.c:        config->nexthash =
lib_hamster.c:        data = search_dbdata(DBU, config->nexthash, config->hashlen, LOCK);
lib_hamster.c:        if (config->transactions) {
lib_hamster.c:    sp = s_dirname(config->blockdata);
lib_hamster.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_hamster.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_hamster.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_hamster.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_hamster.c:    if (config->transactions) {
lib_hamster.c:    if (NULL == config->blockdatabs) {
lib_hamster.c:        free(config->nexthash);
lib_hamster.c:    if (config->replication && config->replication_role == 0)
lib_hamster.c:    s_free(config->replication_logfile);
lib_hamster.c:    if (config->transactions) {
lib_hamster.c:    if (config->transactions) {
lib_hamster.c:    if (config->transactions)
lib_hamster.c:    if (NULL == config->blockdatabs) {
lib_hamster.c:            bin_write_dbdata(DBU, config->nexthash, config->hashlen,
lib_hamster.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_hamster.c:    if (config->transactions) {
lib_hamster.c:    if (!config->background_delete)
lib_hamster.c:            if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_hamster.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_hamster.c:                if (config->replication == 1
lib_hamster.c:                    && config->replication_role == 0) {
lib_hamster.c:                if (config->replication == 1
lib_hamster.c:                    && config->replication_role == 0) {
lib_hamster.c:            if (config->replication == 1 && config->replication_role == 0) {
lib_hamster.c:            if (config->replication == 1 && config->replication_role == 0) {
lib_hamster.c:        if (0 == memcmp(config->nexthash, key.data, config->hashlen)) {
lib_repl.c:    if (config->shutdown || config->replication_enabled == 0) {
lib_repl.c:        config->safe_down = 1;
lib_repl.c:    if (config->frozen)
lib_repl.c:    if (config->replication_enabled == 0)
lib_repl.c:                fulltimWrite(5, config->replication_socket,
lib_repl.c:                fulltimRead(5, config->replication_socket,
lib_repl.c:                fulltimWrite(5, config->replication_socket,
lib_repl.c:                fulltimRead(5, config->replication_socket,
lib_repl.c:        if (config->shutdown == 0) {
lib_repl.c:    close(config->replication_socket);
lib_repl.c:                   config->replication_logfile, sequence);
lib_repl.c:    if (0 != rename(config->replication_logfile, newfile))
lib_repl.c:                    config->replication_logfile, newfile);
lib_repl.c:         s_open2(config->replication_logfile, O_CREAT | O_RDWR, S_IRWXU)))
lib_repl.c:               config->replication_logfile);
lib_repl.c:        (freplbl = s_open2(config->replication_logfile, O_RDWR, S_IRWXU)))
lib_repl.c:    config->replication_backlog = 1;
lib_repl.c:    /*if (0 == strcmp(config->replication_partner_ip, "-1")
lib_repl.c:        && config->replication && config->replication_role == 0) {
lib_repl.c:        if (stbuf.st_size > config->rotate_replog_size
lib_repl.c:            || curtime - config->replication_last_rotated > REPLOG_DELAY) {
lib_repl.c:            config->replication_last_rotated = time(NULL);
lib_repl.c:        config->replication_backlog = 1;
lib_repl.c:        config->replication_backlog = 0;
lib_repl.c:    close(config->replication_socket);
lib_repl.c:        config->replication_socket =
lib_repl.c:            clientconnect(config->replication_partner_ip,
lib_repl.c:                          config->replication_partner_port, "tcp");
lib_repl.c:        if (config->replication_socket != -1)
lib_repl.c:        LINFO("Retry connect to %s:%s", config->replication_partner_ip,
lib_repl.c:              config->replication_partner_port);
lib_repl.c:           fulltimRead(1, config->replication_socket,
lib_repl.c:    LINFO("watchdir : open %s", config->replication_watchdir);
lib_repl.c:    if (-1 == stat(config->replication_watchdir, &stbuf))
lib_repl.c:                    config->replication_watchdir);
lib_repl.c:    if (-1 == chdir(config->replication_watchdir))
lib_repl.c:                    config->replication_watchdir);
lib_repl.c:        if (config->shutdown)
lib_repl.c:        while (config->frozen) {
lib_repl.c:        if (NULL == (dp = (opendir(config->replication_watchdir)))) {
lib_repl.c:                   config->replication_watchdir);
lib_repl.c:    config->safe_down = 1;
lib_repl.c:    if (NULL != config->replication_watchdir) {
lib_repl.c:    if (NULL == config->replication_listen_port)
lib_repl.c:        config->replication_listen_port = "101";
lib_repl.c:            serverinit(config->replication_listen_ip,
lib_repl.c:                       config->replication_listen_port, proto);
lib_repl.c:        config->safe_down = 1;
lib_repl.c:        config->replication_socket =
lib_repl.c:        config->safe_down = 0;
lib_repl.c:                close(config->replication_socket);
lib_repl.c:            if (config->replication_enabled == 0) {
lib_repl.c:                close(config->replication_socket);
lib_repl.c:                close(config->replication_socket);
lib_repl.c:                readstring(300, config->replication_socket, message, 64);
lib_repl.c:                close(config->replication_socket);
lib_repl.c:                close(config->replication_socket);
lib_repl.c:                fulltimWrite(5, config->replication_socket,
lib_repl.c:                close(config->replication_socket);
lib_repl.c:                fulltimRead(10, config->replication_socket,
lib_repl.c:    while (config->frozen) {
lib_repl.c:        fulltimWrite(3, config->replication_socket,
lib_repl.c:        close(config->replication_socket);
lib_repl.c:        fulltimWrite(3, config->replication_socket,
lib_repl.c:        close(config->replication_socket);
lib_tc.c:    if (config->transactions) {
lib_tc.c:    if (config->transactions) {
lib_tc.c:    if (config->defrag == 1) {
lib_tc.c:    if (config->defrag == 1) {
lib_tc.c:    if (!tchdboptimize(dbb, atol(config->fileblockbs), 0, 0, HDBTLARGE))
lib_tc.c:    if (!tchdboptimize(dbu, atol(config->blockusagebs), 0, 0, HDBTLARGE))
lib_tc.c:    if (!tchdboptimize(dbp, atol(config->metabs), 0, 0, HDBTLARGE))
lib_tc.c:    if (!tchdboptimize(dbs, atol(config->symlinkbs), 0, 0, HDBTLARGE))
lib_tc.c:    if (NULL != config->blockdatabs) {
lib_tc.c:            (dbdta, atol(config->blockdatabs), 0, 0, HDBTLARGE))
lib_tc.c:        (freelist, 0, 0, atol(config->freelistbs), -1, -1, BDBTLARGE))
lib_tc.c:        (dbdirent, 0, 0, atol(config->direntbs), -1, -1, BDBTLARGE))
lib_tc.c:        (dbl, 0, 0, atol(config->hardlinkbs), -1, -1, BDBTLARGE))
lib_tc.c:    if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_tc.c:       sp = s_dirname(config->blockdata);
lib_tc.c:    } else sp=s_strdup(config->blockdata);
lib_tc.c:    config->replication_logfile = s_strdup(dbpath);
lib_tc.c:             config->replication_logfile);
lib_tc.c:    if (config->replication && config->replication_role == 0) {
lib_tc.c:                   config->fileblock);
lib_tc.c:        mkpath(config->fileblock, 0744);
lib_tc.c:        hashdb_open(dbpath, 0, atol(config->fileblockbs), force_optimize);
lib_tc.c:                   config->blockusage);
lib_tc.c:        mkpath(config->blockusage, 0744);
lib_tc.c:        hashdb_open(dbpath, 0, atol(config->blockusagebs), force_optimize);
lib_tc.c:        as_sprintf(__FILE__, __LINE__, "%s/metadata.tcb", config->meta);
lib_tc.c:        mkpath(config->meta, 0744);
lib_tc.c:    dbp = hashdb_open(dbpath, 0, atol(config->metabs), force_optimize);
lib_tc.c:    if (NULL != config->blockdatabs) {
lib_tc.c:                       config->blockdata);
lib_tc.c:            mkpath(config->blockdata, 0744);
lib_tc.c:            hashdb_open(dbpath, 0, atol(config->blockdatabs),
lib_tc.c:                   config->freelist);
lib_tc.c:        mkpath(config->freelist, 0744);
lib_tc.c:        btreedb_open(dbpath, 0, atol(config->freelistbs), force_optimize);
lib_tc.c:        as_sprintf(__FILE__, __LINE__, "%s/symlink.tch", config->symlink);
lib_tc.c:        mkpath(config->symlink, 0744);
lib_tc.c:    dbs = hashdb_open(dbpath, 0, atol(config->symlinkbs), force_optimize);
lib_tc.c:        as_sprintf(__FILE__, __LINE__, "%s/dirent.tcb", config->dirent);
lib_tc.c:        mkpath(config->dirent, 0744);
lib_tc.c:        btreedb_open(dbpath, 0, atol(config->direntbs), force_optimize);
lib_tc.c:                   config->hardlink);
lib_tc.c:        mkpath(config->hardlink, 0744);
lib_tc.c:        btreedb_open(dbpath, 0, atol(config->hardlinkbs), force_optimize);
lib_tc.c:        if (0 == strcmp(config->blockdata_io_type, "file_io")) {
lib_tc.c:                 s_open2(config->blockdata, O_CREAT | O_RDWR, S_IRWXU)))
lib_tc.c:            if (-1 == (stat(config->blockdata, &stbuf)))
lib_tc.c:            if (config->transactions) {
lib_tc.c:        if (0 != strcmp(config->blockdata_io_type, "tokyocabinet")) {
lib_tc.c:            config->nexthash =
lib_tc.c:                search_dbdata(DBU, config->nexthash, config->hashlen,
lib_tc.c:    if (config->transactions) {
lib_tc.c:        if (NULL != config->blockdatabs) {
lib_tc.c:    if (NULL == config->blockdatabs) {
lib_tc.c:        bin_write_dbdata(DBU, config->nexthash, config->hashlen,
lib_tc.c:    if (NULL != config->blockdatabs) {
lib_tc.c:        if (NULL == config->blockdatabs) {
lib_tc.c:            s_free(config->nexthash);
lib_tc.c:    if (config->replication && config->replication_role == 0)
lib_tc.c:    if (0 == config->relax)
lib_tc.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_tc.c:    if (0 == config->relax)
lib_tc.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_tc.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_tc.c:            if (config->encryptmeta && config->encryptdata) {
lib_tc.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_tc.c:    if (config->replication == 1 && config->replication_role == 0) {
lib_tc.c:    if (!config->background_delete)
lib_tc.c:        if (NULL != config->blockdatabs) {
lib_tc.c:                   config->fileblock);
lib_tc.c:                   config->blockusage);
lib_tc.c:        as_sprintf(__FILE__, __LINE__, "%s/metadata.tcb", config->meta);
lib_tc.c:        as_sprintf(__FILE__, __LINE__, "%s/symlink.tch", config->symlink);
lib_tc.c:        as_sprintf(__FILE__, __LINE__, "%s/dirent.tcb", config->dirent);
lib_tc.c:                   config->hardlink);
lib_tc.c:    if (NULL != config->blockdatabs) {
lib_tc.c:                       config->blockdata);
lib_tc.c:                       config->freelist);
lib_tc.c:        unlink(config->blockdata);
lib_tc.c:    if (config->blockdatabs != NULL) {
lib_tc.c:        if (config->transactions)
lib_tc.c:        if (config->transactions)
lib_tc.c:    if (config->transactions) {
lib_tc.c:    if (config->transactions)
lib_tc.c:    if (NULL == config->blockdatabs) {
lib_tc.c:            bin_write_dbdata(DBU, config->nexthash, config->hashlen,
lib_tc.c:    if (config->transactions) {
lib_tc.c:        if (config->blockdatabs != NULL) {
lib_tc.c:    if (config->blockdatabs == NULL) {
lib_tc.c:                if (config->replication == 1
lib_tc.c:                    && config->replication_role == 0) {
lib_tc.c:                if (config->replication == 1
lib_tc.c:                    && config->replication_role == 0) {
lib_tc.c:                    if (config->replication == 1
lib_tc.c:                        && config->replication_role == 0) {
lib_tc.c:                    if (config->replication == 1
lib_tc.c:                        && config->replication_role == 0) {
lib_tc.c:        if (0 == memcmp(config->nexthash, key, config->hashlen)) {
lib_tc.c:            inuse = tchdbget(dbu, key, config->hashlen, &size);
lib_tc.c:            inuse = tchdbget(dbu, key, config->hashlen, &size);
lib_tc.c:        value = tchdbget(dbu, key, config->hashlen, &size);
listdb.c:    if (NULL != config->blockdatabs) {
mklessfs.c:    config->encryptdata = 0;
mklessfs.c:    config->passwd = NULL;
mklessfs.c:    config->iv = NULL;
mklessfs.c:    config->iv = s_malloc(8);
mklessfs.c:    memset(config->iv, 0, 8);
mklessfs.c:    config->encryptdata = 0;
mklessfs.c:            config->encryptdata = 1;
mklessfs.c:    config->encryptmeta = 1;
mklessfs.c:    if (config->encryptdata) {
mklessfs.c:        if (8 != s_read(rnd, config->iv, 8)) {
mklessfs.c:            config->passwd =
mklessfs.c:            if (0 != strcmp((char *) config->passwd, ckpasswd)) {
mklessfs.c:            config->passwd =
mklessfs.c:                config->encryptmeta = 0;
mklessfs.c:    config->replication = 0;
mklessfs.c:    config->commithash =
mklessfs.c:    if (config->encryptdata) {
mklessfs.c:        s_free(config->passwd);
mklessfs.c:        s_free(config->iv);
