platform_system_core/fastboot/fs.h
Thiébaud Weksteen 5d72d6ce20 Remove unused execution paths when formatting
fastboot uses the internal functions generate_ext4_image and
generate_f2fs_image when called via the `format` subcommand. An option
for populating the newly created fs with an initial directory exists,
but it is not exposed to the command line interface (initial_dir is
always ""). Remove the unused codepaths for this preloading.

Test: atest --host fastboot_test
Bug: 237960487
Change-Id: I7acfe6352cf26b5cbe0e5553b288c3798e96a893
2022-07-21 14:50:05 +10:00

17 lines
463 B
C++

#pragma once
#include <string>
#include <stdint.h>
struct fs_generator;
enum FS_OPTION {
FS_OPT_CASEFOLD,
FS_OPT_PROJID,
FS_OPT_COMPRESS,
};
const struct fs_generator* fs_get_generator(const std::string& fs_type);
int fs_generator_generate(const struct fs_generator* gen, const char* fileName, long long partSize,
unsigned eraseBlkSize = 0, unsigned logicalBlkSize = 0,
unsigned fsOptions = 0);