blob: 8b09430ca3685ec23503bb1d20edb5b844a36d46 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* erofs_utils/include/erofs/config.h
*
* Copyright (C) 2018-2019 HUAWEI, Inc.
* http://www.huawei.com/
* Created by Li Guifu <bluce.liguifu@huawei.com>
*/
#ifndef __EROFS_CONFIG_H
#define __EROFS_CONFIG_H
#include "defs.h"
enum {
FORCE_INODE_COMPACT = 1,
FORCE_INODE_EXTENDED,
};
struct erofs_configure {
const char *c_version;
int c_dbg_lvl;
bool c_dry_run;
bool c_legacy_compress;
/* related arguments for mkfs.erofs */
char *c_img_path;
char *c_src_path;
char *c_compr_alg_master;
int c_compr_level_master;
int c_force_inodeversion;
};
extern struct erofs_configure cfg;
void erofs_init_configure(void);
void erofs_show_config(void);
void erofs_exit_configure(void);
#endif