|
Android-cuttlefish cvd tool
|
#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <string.h>#include <unistd.h>#include <f2fs_fs.h>#include <assert.h>#include <stdbool.h>#include <time.h>#include "quota.h"#include "f2fs_format_utils.h"
Macros | |
| #define | uuid_parse(a, b) -1 |
| #define | uuid_generate(a) |
| #define | uuid_unparse(a, b) -1 |
| #define | GET_SEGNO(blk_addr) |
| #define | START_BLOCK(segno) (segno * c.blks_per_seg + get_sb(main_blkaddr)) |
| #define | last_section(cur) (cur + (c.secs_per_zone - 1) * c.segs_per_sec) |
| #define | mkfs_time ((c.fixed_time == -1) ? time(NULL) : c.fixed_time) |
Functions | |
| static bool | device_is_aliased (unsigned int dev_num) |
| static unsigned int | target_device_index (uint64_t blkaddr) |
| static uint32_t | next_zone (int seg_type) |
| static uint32_t | last_zone (uint32_t total_zone) |
| static bool | is_extension_exist (const char *name) |
| static void | cure_extension_list (void) |
| static void | verify_cur_segs (void) |
| static int | f2fs_prepare_super_block (void) |
| static int | f2fs_init_sit_area (void) |
| static int | f2fs_init_nat_area (void) |
| static int | f2fs_write_check_point_pack (void) |
| static int | f2fs_write_super_block (void) |
| static int | f2fs_discard_obsolete_dnode (void) |
| static block_t | alloc_next_free_block (int curseg_type) |
| void | update_sit_journal (int curseg_type) |
| void | update_nat_journal (nid_t nid, block_t blkaddr) |
| void | update_summary_entry (int curseg_type, nid_t nid, unsigned short ofs_in_node) |
| static void | add_dentry (struct f2fs_dentry_block *dent_blk, unsigned int *didx, const char *name, uint32_t ino, u8 type) |
| static block_t | f2fs_add_default_dentry_root (void) |
| static int | f2fs_write_root_inode (void) |
| static int | f2fs_write_default_quota (int qtype, __le32 raw_id) |
| static int | f2fs_write_qf_inode (int qtype) |
| static int | f2fs_update_nat_default (void) |
| static block_t | f2fs_add_default_dentry_lpf (void) |
| static int | f2fs_write_lpf_inode (void) |
| static void | allocate_blocks_for_aliased_device (struct f2fs_node *raw_node, unsigned int dev_num) |
| static int | f2fs_write_alias_inodes (void) |
| static int | f2fs_create_root_dir (void) |
| int | f2fs_format_device (void) |
Variables | |
| struct f2fs_configuration | c |
| struct f2fs_super_block | raw_sb |
| struct f2fs_super_block * | sb = &raw_sb |
| struct f2fs_checkpoint * | cp |
| const char * | media_ext_lists [] |
| const char * | hot_ext_lists [] |
| const char ** | default_ext_list [] |
| #define GET_SEGNO | ( | blk_addr | ) |
| #define last_section | ( | cur | ) | (cur + (c.secs_per_zone - 1) * c.segs_per_sec) |
| #define mkfs_time ((c.fixed_time == -1) ? time(NULL) : c.fixed_time) |
| #define START_BLOCK | ( | segno | ) | (segno * c.blks_per_seg + get_sb(main_blkaddr)) |
| #define uuid_generate | ( | a | ) |
| #define uuid_parse | ( | a, | |
| b | |||
| ) | -1 |
f2fs_format.c
Copyright (c) 2012 Samsung Electronics Co., Ltd. http://www.samsung.com/
Dual licensed under the GPL or LGPL version 2 licenses.
| #define uuid_unparse | ( | a, | |
| b | |||
| ) | -1 |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
| int f2fs_format_device | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| void update_sit_journal | ( | int | curseg_type | ) |
| void update_summary_entry | ( | int | curseg_type, |
| nid_t | nid, | ||
| unsigned short | ofs_in_node | ||
| ) |
|
static |
|
extern |
| struct f2fs_checkpoint* cp |
| const char** default_ext_list[] |
| const char* hot_ext_lists[] |
| const char* media_ext_lists[] |
| struct f2fs_super_block raw_sb |
| struct f2fs_super_block* sb = &raw_sb |