4a335829da
mke2fs tool takes a filename and has its own open function to handle output file. Change fastboot in preparation to switch from make_ext4 to mke2fs. Test: fastboot format:ext4 userdata Bug: 35219933 Change-Id: I7a31cb215f443a4a7cb0bfc23ec28c121a6101e6
13 lines
366 B
C++
13 lines
366 B
C++
#ifndef _FS_H_
|
|
#define _FS_H_
|
|
|
|
#include <string>
|
|
#include <stdint.h>
|
|
|
|
struct fs_generator;
|
|
|
|
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,
|
|
const std::string& initial_dir, unsigned eraseBlkSize = 0, unsigned logicalBlkSize = 0);
|
|
|
|
#endif
|