Android-cuttlefish cvd tool
|
#include "fs.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <vector>
#include <android-base/errors.h>
#include <android-base/file.h>
#include <android-base/macros.h>
#include <android-base/stringprintf.h>
#include <android-base/unique_fd.h>
Classes | |
struct | fs_generator |
Enumerations | |
enum | { FSCK_SUCCESS = 0 , FSCK_ERROR_CORRECTED = 1 << 0 , FSCK_SYSTEM_SHOULD_REBOOT = 1 << 1 , FSCK_ERRORS_LEFT_UNCORRECTED = 1 << 2 , FSCK_OPERATIONAL_ERROR = 1 << 3 , FSCK_USAGE_OR_SYNTAX_ERROR = 1 << 4 , FSCK_USER_CANCELLED = 1 << 5 , FSCK_SHARED_LIB_ERROR = 1 << 7 } |
Functions | |
static int | exec_cmd (const char *path, const char **argv, const char **envp) |
static int | generate_ext4_image (const char *fileName, long long partSize, unsigned eraseBlkSize, unsigned logicalBlkSize, const unsigned fsOptions) |
static int | generate_f2fs_image (const char *fileName, long long partSize, unsigned, unsigned, const unsigned fsOptions) |
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, unsigned logicalBlkSize, const unsigned fsOptions) |
Variables | |
static const struct fs_generator | generators [] |
anonymous enum |
|
static |
int fs_generator_generate | ( | const struct fs_generator * | gen, |
const char * | fileName, | ||
long long | partSize, | ||
unsigned | eraseBlkSize, | ||
unsigned | logicalBlkSize, | ||
const unsigned | fsOptions | ||
) |
const struct fs_generator * fs_get_generator | ( | const std::string & | fs_type | ) |
|
static |
|
static |
|
static |