aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2018-01-30 17:24:57 -0800
committerMichael Bestas <mkbestas@lineageos.org>2018-07-28 17:42:06 +0300
commit235999bf4620b8a988d6f2210ce016d19d8b89b6 (patch)
tree7d74f32779aed15ac8363e757206766ecb3787a7 /lib
parentb93ced9daccb0509f77a0f03ba1abb7395eaddf2 (diff)
downloadandroid_external_f2fs-tools-235999bf4620b8a988d6f2210ce016d19d8b89b6.tar.gz
android_external_f2fs-tools-235999bf4620b8a988d6f2210ce016d19d8b89b6.tar.bz2
android_external_f2fs-tools-235999bf4620b8a988d6f2210ce016d19d8b89b6.zip
f2fs-tools: release 1.11.0
Cherry-picked from: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git This release includes: - add sg_write_buffer for UFS firmware update in Android - wanted_sector_size to specify sector size explicity - support fsverity feature bit - support lost+found feature And, it includes some critical bug fixes. b98fab3 f2fs-tools: release 1.11.0 1c15c8d resize.f2fs: fix wrong nat_bits migration 154bf70 fsck.f2fs: add sanity check nat_bits 41149fb fsck.f2fs: simplify fsck_chk_quota_node in PREEN_MODE_1 eb61637 fsck.f2fs: reconnect unreachable files to lost+found ff37829 mkfs.f2fs: create lost+found directory 1325c93 dump.f2fs: fix a wrong report for dump an {d,id,did}node 7b73b6e mkfs.f2fs: treat db's data as hot one 6fdc37f mkfs.f2fs: support hot file extension 4d4a9f2 fibmap: include f2fs_fs.h before other header files c265813 fsck.f2fs: read nat block if nat entry is invalid fbcc3b1 fsck.f2fs: integrate sanity_check_inode to __check_inode_mode 5e91b36 mkfs.f2fs: introduce mkfs parameters in f2fs_configuration be4f9a6 fsck.f2fs: fix typo 822e1a1 f2fs-tools: init f2fs_configuration as 0 3e8c8d7 dump.f2fs: correct the seg type in ssa_dump f52987e mkfs.f2fs: fix to handle endianness in f2fs_write_check_point_pack 8a96b6a fsck.f2fs: fix to check all the types of current offsets baaa076 mkfs.f2fs: expand scalability of nat bitmap 06addd3 fsck.f2fs: reduce mem alloc during read sit block fffc395 fsck.f2fs: read ahead xattr & direct node blocks 10eea8a dump.f2fs: support to dump dirent from blkaddr c56821f fsck.f2fs: allow -p without value Change-Id: I6023b5faa3435b7b320b5ad8c531049586981efc Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libf2fs.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index 2a26f43..01580c8 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -586,25 +586,18 @@ void f2fs_init_configuration(void)
{
int i;
+ memset(&c, 0, sizeof(struct f2fs_configuration));
c.ndevs = 1;
- c.total_sectors = 0;
- c.sector_size = 0;
c.sectors_per_blk = DEFAULT_SECTORS_PER_BLOCK;
c.blks_per_seg = DEFAULT_BLOCKS_PER_SEGMENT;
c.rootdev_name = get_rootdev();
c.wanted_total_sectors = -1;
c.wanted_sector_size = -1;
- c.zoned_mode = 0;
- c.zoned_model = 0;
- c.zone_blocks = 0;
-#ifdef WITH_ANDROID
- c.preserve_limits = 0;
-#else
+#ifndef WITH_ANDROID
c.preserve_limits = 1;
#endif
for (i = 0; i < MAX_DEVICES; i++) {
- memset(&c.devices[i], 0, sizeof(struct device_info));
c.devices[i].fd = -1;
c.devices[i].sector_size = DEFAULT_SECTOR_SIZE;
c.devices[i].end_blkaddr = -1;
@@ -612,18 +605,12 @@ void f2fs_init_configuration(void)
}
/* calculated by overprovision ratio */
- c.reserved_segments = 0;
- c.overprovision = 0;
c.segs_per_sec = 1;
c.secs_per_zone = 1;
c.segs_per_zone = 1;
- c.heap = 0;
c.vol_label = "";
c.trim = 1;
- c.trimmed = 0;
- c.ro = 0;
c.kd = -1;
- c.dry_run = 0;
c.fixed_time = -1;
}