A few minor fixes.
This commit is contained in:
parent
63370caee9
commit
c0dd0102a5
4 changed files with 3 additions and 3 deletions
|
@ -1795,7 +1795,7 @@ start_compress(pc_ctx_t *pctx, const char *filename, uint64_t chunksize, int lev
|
|||
/* A host of sanity checks. */
|
||||
if (!pctx->pipe_mode) {
|
||||
char *tmp;
|
||||
if ((uncompfd = open(filename, O_RDWR, 0)) == -1) {
|
||||
if ((uncompfd = open(filename, O_RDONLY, 0)) == -1) {
|
||||
err_print(1, "Cannot open: %s", filename);
|
||||
return (1);
|
||||
}
|
||||
|
|
|
@ -361,7 +361,6 @@ int
|
|||
set_config_s(archive_config_t *cfg, const char *algo, cksum_t ck, cksum_t ck_sim,
|
||||
uint32_t chunksize, size_t file_sz, uint64_t user_chunk_sz, int pct_interval)
|
||||
{
|
||||
|
||||
cfg->algo = get_compress_algo(algo);
|
||||
cfg->chunk_cksum_type = ck;
|
||||
cfg->similarity_cksum = ck_sim;
|
||||
|
|
|
@ -268,6 +268,7 @@ init_global_db_s(char *path, char *tmppath, uint32_t chunksize, uint64_t user_ch
|
|||
if (pct_interval > 0) {
|
||||
int errored;
|
||||
|
||||
DEBUG_STAT_EN(printf("Using Segmented Global Deduplication.\n"));
|
||||
strcpy(cfg->rootdir, tmppath);
|
||||
strcat(cfg->rootdir, "/.segXXXXXX");
|
||||
cfg->seg_fd_w = mkstemp(cfg->rootdir);
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
#ifndef _RABIN_POLY_H_
|
||||
#define _RABIN_POLY_H_
|
||||
|
||||
#include "utils.h"
|
||||
#include <utils.h>
|
||||
#include <index.h>
|
||||
#include <crypto_utils.h>
|
||||
#include <pthread.h>
|
||||
|
|
Loading…
Reference in a new issue