Android-cuttlefish cvd tool
fs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <string>
20#include <stdint.h>
21
22struct fs_generator;
23
28};
29
30const struct fs_generator* fs_get_generator(const std::string& fs_type);
31int fs_generator_generate(const struct fs_generator* gen, const char* fileName, long long partSize,
32 unsigned eraseBlkSize = 0, unsigned logicalBlkSize = 0,
33 unsigned fsOptions = 0);
const struct fs_generator * fs_get_generator(const std::string &fs_type)
Definition: fs.cpp:250
FS_OPTION
Definition: fs.h:24
@ FS_OPT_COMPRESS
Definition: fs.h:27
@ FS_OPT_PROJID
Definition: fs.h:26
@ FS_OPT_CASEFOLD
Definition: fs.h:25
int fs_generator_generate(const struct fs_generator *gen, const char *fileName, long long partSize, unsigned eraseBlkSize=0, unsigned logicalBlkSize=0, unsigned fsOptions=0)
Definition: fs.cpp:259
Definition: fs.cpp:238
const char * fs_type
Definition: fs.cpp:239