blob: f832938e69ebab109db74b75d7a2e76c73efed87 [file] [log] [blame]
Elliott Hughes6ebec932018-04-10 14:22:13 -07001#pragma once
Dmitry Grinberge6f3e9b2014-03-11 18:28:15 -07002
Paul Crowley8f7f56e2015-11-27 09:29:37 +00003#include <string>
Dmitry Grinberge6f3e9b2014-03-11 18:28:15 -07004#include <stdint.h>
5
6struct fs_generator;
7
Jaegeuk Kim638d05e2020-11-09 08:54:13 -08008enum FS_OPTION {
9 FS_OPT_CASEFOLD,
10 FS_OPT_PROJID,
11 FS_OPT_COMPRESS,
12};
13
Elliott Hughes8ab9a322015-11-02 14:05:57 -080014const struct fs_generator* fs_get_generator(const std::string& fs_type);
Jin Qian4a335822017-04-18 16:23:18 -070015int fs_generator_generate(const struct fs_generator* gen, const char* fileName, long long partSize,
Jaegeuk Kim638d05e2020-11-09 08:54:13 -080016 const std::string& initial_dir, unsigned eraseBlkSize = 0,
17 unsigned logicalBlkSize = 0, unsigned fsOptions = 0);