Android-cuttlefish cvd tool
fastboot
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
22
struct
fs_generator
;
23
24
enum
FS_OPTION
{
25
FS_OPT_CASEFOLD
,
26
FS_OPT_PROJID
,
27
FS_OPT_COMPRESS
,
28
};
29
30
const
struct
fs_generator
*
fs_get_generator
(
const
std::string&
fs_type
);
31
int
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);
fs_get_generator
const struct fs_generator * fs_get_generator(const std::string &fs_type)
Definition:
fs.cpp:250
FS_OPTION
FS_OPTION
Definition:
fs.h:24
FS_OPT_COMPRESS
@ FS_OPT_COMPRESS
Definition:
fs.h:27
FS_OPT_PROJID
@ FS_OPT_PROJID
Definition:
fs.h:26
FS_OPT_CASEFOLD
@ FS_OPT_CASEFOLD
Definition:
fs.h:25
fs_generator_generate
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
fs_generator
Definition:
fs.cpp:238
fs_generator::fs_type
const char * fs_type
Definition:
fs.cpp:239
Generated by
1.9.4