Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/PitchBlackRecoveryProject/android_external_f2fs-tools
https://github.com/PitchBlackRecoveryProject/android_external_f2fs-tools
Signed-off-by: Sheng Yong <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Signed-off-by: Sheng Yong <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Signed-off-by: Sheng Yong <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
If SECDISCARD/DISCARD is not defined, we can set it.
In Android, we must set -DWITH_BLKDISCARD t...
This feature flag will be used by f2fs to detect HMSMR device.
Signed-off-by: Jaegeuk Kim <jaeg...
70a8fc3df7b72730fd2d40394892688292e8f78e authored over 8 years ago by Jaegeuk Kim <[email protected]>This will be zeroed by f2fs during the mount time.
Signed-off-by: Jaegeuk Kim <[email protected]>
dc573510a3b7b764f22645da2352cf852b452e19 authored over 8 years ago by Jaegeuk Kim <[email protected]>modify sit dump && add nat dump like this:
dump_sit:
segment_type(0:HD, 1:WD, 2:CD, 3:HN, 4:WN...
4f105bbaba07a90f2bed1e87dbe961c4252366e4 authored over 8 years ago by Yunlei He <[email protected]>This patch adds "-m" option to configure ZBC device.
This is to support host-managed SMR device...
74673eb7e6f223ce4023494b48915aa4371b3ef4 authored over 8 years ago by Jaegeuk Kim <[email protected]>
This patch check sector size if formatted from a regular file,
write the sector info to superblo...
Let's update checkpoint, if fsck is set without any bug.
Signed-off-by: Jaegeuk Kim <jaegeuk@ke...
64198420586b5b37f4c23dea142492d376baaf22 authored over 8 years ago by Jaegeuk Kim <[email protected]>Remove duplicated codes in sanity_check_raw_super().
Signed-off-by: Junling Zheng <zhengjunling...
43448f9bfda5f2abcf36e3ce94e17752b0cbe421 authored over 8 years ago by Junling Zheng <[email protected]>
This patch replace the overprovision calculation method from
mkfs tool.
Signed-off-by: Yunlei H...
91bd80c4416e2633fe1020a30a9d209fea38f52a authored over 8 years ago by Yunlei He <[email protected]>This patch adds a script to test sload.f2fs, defrag.f2fs, and resize.f2fs.
Signed-off-by: Jaege...
e52321f3ebde1fba51b48f201c90d0aa21a0a8d1 authored over 8 years ago by Jaegeuk Kim <[email protected]>
Now user can expand existing partition with resize.f2fs.
Currently, it doesn't support shrink an...
This patch implements loading files into the existing partition.
For example,
# sload.f2fs -f ....
These funcs are provided by sys/sysmacros.h, so include the header
directly. Building with alte...
This patch detects any corrupted superblock and fix misalignment when it finds,
which is synced ...
Otherwise, we get a double free error by:
In fsck/main.c,
545 out_err:
546 if (sbi->ck...
The nid and ino of an inode are the same. So during building
nat_area_bitmap, we can know which ...
All nat entries are cached during building nat_area_bitmap, so that, in
fsck_chk_meta, we can ge...
Signed-off-by: Sheng Yong <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
This patch introduces a new option '-p' to do more checks on NAT/SIT areas.
'-p' has 2 levels: l...
Signed-off-by: Sheng Yong <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
This version mostly fixes the bugs in fsck.f2fs.
Especially, this fixes a segfault bug when exec...
Commit 4ea4f1db ("fsck.f2fs: large volume support") added the support
for large volume over abou...
There are some issues in original approach:
- memory allocated in i_extent.map will leak
- do no...
This patch enables fsck.f2fs to detect incorrect position where dirent
locates in an hierarchica...
Now f2fs will check statistics recorded in super block in
sanity_check_area_boundary() during mo...
Struct f2fs_summary_block has been changed in upstream commits:
- commit 8f1dbbbbdfe9 ("f2fs: i...
Commit 843f5b9388c4652a ("fsck.f2fs: check ino of an inode") checks
nat_entry->ino for inode. Ho...
Fix incorrect block_addr of node or meta inode into 0x1 during
build_nat_area_bitmap().
Signed-...
9b09631c8f82b4687c179a6a4b86a4e6c5b4df75 authored almost 9 years ago by Junling Zheng <[email protected]>
Correctly calculate the total FS size in init_sb_info(), for sector
size may not be 512 bytes.
...
bc6f686893f2b14a0d182fdb3b2165ac9720f0a2 authored almost 9 years ago by Junling Zheng <[email protected]>
Check valid values for '.' and '..', such as ino, hash_code, and the
number of dot or dotdot in ...
During mkfs, segment_count_sit is calculated using ALIGN and
SEG_ALIGN, which are both upward. T...
F2FS can support 16T bytes at most. Limit the config.total_sectors
so that most parameters calcu...
The first nat entry must be null. If it is corrupted, we set its bit in
nat_area_bitmap, without...
For indirect/double-indirect node, if the blk_addr in its nat entry is
corrupted, fsck could fig...
Once f2fs_stop_checkpoint makes f2fs as readonly, only /proc/mounts shows
RDONLY whereas /etc/mt...
This patch follows the kernel's encrypted name resolution.
Signed-off-by: Jaegeuk Kim <jaegeuk@...
f8bc97b333d0528cf15acf81d8b62b346c1aefb4 authored almost 9 years ago by Jaegeuk Kim <[email protected]>
If the node is an inode, its ino in the nat entry should be equal to the
ino in its node footer....
If a nid is valid, the ino in its nat entry should record its parent nid.
However if the ino is ...
Signed-off-by: Sheng Yong <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
In some case, we need confirm node or data blkaddr is ok at first,
and then fix the conflict in ...
This patch fixes resetting dnode blocks recursively.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel...
ad042d9194f5ff56b9e939b14a379f0346168b4a authored almost 9 years ago by Jaegeuk Kim <[email protected]>Otherwise it will cause double free.
Signed-off-by: Jaegeuk Kim <[email protected]>
e92fd4261894903fb8d6fa8de6a38c5eaf1a913c authored almost 9 years ago by Jaegeuk Kim <[email protected]>When skipping fsck, return 0 with message.
Signed-off-by: Jaegeuk Kim <[email protected]>
bbc4176aa7fbf5889156cf4117213c680fade87a authored almost 9 years ago by Jaegeuk Kim <[email protected]>This patch fixes a bug that cp pointer is not assigned correctly.
Signed-off-by: Jaegeuk Kim <j...
231fc70f6e9d57658393911c705346b061f23513 authored almost 9 years ago by Jaegeuk Kim <[email protected]>
Signed-off-by: Sheng Yong <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
This patch fixes to resolve build failure and warnings when compiling it
under AOSP.
Signed-off...
25b2e75312231659cd8460064e1892351171b00c authored almost 9 years ago by Jaegeuk Kim <[email protected]>
This patch calculate main area begin from a new zone,
avoid misalign if segments per zone is not...
The invalid checkpoin is freed in validate_checkpoint().
Signed-off-by: Sheng Yong <shengyong1@...
2d3ea141ccf280dbf8b04a43c61d388cd147a568 authored almost 9 years ago by Sheng Yong <[email protected]>This patch adds missing man pages.
Signed-off-by: Jaegeuk Kim <[email protected]>
52dedc6b2faecd802994cc9f6bab2ca492c3d466 authored about 9 years ago by Jaegeuk Kim <[email protected]>
This patch adds missing [sectors] option in mkfs.f2fs, and removes
meaningless version.
Signed-...
d3258fa034b46f57035eb553e1eec3ec0bd635c7 authored about 9 years ago by Jaegeuk Kim <[email protected]>This version introduces defrag.f2fs newly, and some major bug fixes too.
Signed-off-by: Jaegeuk...
ffd8d0514a624509e96ccfbdc1885478acf29be7 authored about 9 years ago by Jaegeuk Kim <[email protected]>
We should check sum_compact value when deal with sum_compact
calloc failure.
Signed-off-by: Xue...
e12a3c3a82bae42bf1b380718cb114ab540cf199 authored about 9 years ago by Liu Xue <[email protected]>
If fsck.f2fs reports a bug, move_curseg_info tries to change the current
segment info.
When it c...
Previously SSA is updated if it is not included in current segment info.
But, defrag.f2fs doesn'...
This patch improves the allocation speed.
Signed-off-by: Jaegeuk Kim <[email protected]>
f66104cf3a29b9e5645ba77090fac0521cf73318 authored about 9 years ago by Jaegeuk Kim <[email protected]>
When compiling f2fs toolset in 32-bits machine, following error was
reported:
libf2fs.c:342:5: ...
dbe78ae5297f5507472eedc3bfc59d658632c3e4 authored about 9 years ago by Chao Yu <[email protected]>This patch checks whether there is a space or not to allocate new blocks.
Signed-off-by: Jaegeu...
d6147940b92a409667cbff3b047ce7f384b8d6b5 authored about 9 years ago by Jaegeuk Kim <[email protected]>
When moving data or node blocks, it changes current segment information
dynamtically. Meanwhile,...
This patch fixes allocating wrong segment which has zero data but is registered
as a current seg...
This cleans up the bit operations.
Signed-off-by: Jaegeuk Kim <[email protected]>
b008605e994ad0eec5e1680b6921dc9d9d5da355 authored about 9 years ago by Jaegeuk Kim <[email protected]>This patch fixes test_bit_le functions for dentry bit operations.
Signed-off-by: Jaegeuk Kim <j...
ee65f6ebf21194bbb4f33e688c860a28e5c57c71 authored about 9 years ago by Jaegeuk Kim <[email protected]>
Currently, directory should not have any extent cache entry.
Otherwise, fsck.f2fs will trigger a...
This patch fixes to store volume label as utf16 correctly.
Many conversion codes are copied fro...
9e5c021b679ebd54c719d68e8b5e6b5614fbf127 authored about 9 years ago by Jaegeuk Kim <[email protected]>This reverts commit 43095ca4c293249affc29a975c151c92d24b13b5.
25e7128efa0ec86acb4bd67d9de946857bfe3f03 authored about 9 years ago by Jaegeuk Kim <[email protected]>
Deal with realloc failure to avoid memory leak and memory free,
and assert realloc size to avoid...
We reserved one segment for NAT region at least, so when formatting
fs, calculated maximum size ...
This tool tries to move the valid blocks ranging from blkaddr to blkaddr + len
to targeted blkad...
This patch checks alloc_type of current segment type.
If it is LFS, the last of segment should h...
This patch exports print_raw_sb_info().
Signed-off-by: Jaegeuk Kim <[email protected]>
1a35b5e29df043678b7ce485aee5fb2607d514c8 authored about 9 years ago by Jaegeuk Kim <[email protected]>This patch exports get_best_overprovision() function.
Signed-off-by: Jaegeuk Kim <jaegeuk@kerne...
c8ce2bf7b1416d65655786a44187f10a0479c6e2 authored about 9 years ago by Jaegeuk Kim <[email protected]>This patch adds to check the stored extent_cache entry is consistent or not.
Signed-off-by: Jae...
c605c5eb4c20d4617cfda397e602f7232a28d45f authored about 9 years ago by Jaegeuk Kim <[email protected]>This patch modifies the existing bit operations.
Signed-off-by: Jaegeuk Kim <[email protected]>
1ea31c47f4050e9d4b6685f28d4ae6bfd10d4368 authored about 9 years ago by Jaegeuk Kim <[email protected]>5bd943d50d103eb6f48a72f199a49dce4feeb61a authored about 9 years ago by Alex Deymo <[email protected]>
libext2_uuid_host was renamed to libext2_uuid-host to match the
"-host" suffix used in most libr...
libext2_uuid_host was renamed to libext2_uuid-host to match the
"-host" suffix used in most libr...
This patch gives the version info for two libraries.
mkfs/libf2fs_format.la
lib/libf2fs.la
The...
85aa525057e1314feb00aa7a06d620a42f1b4975 authored about 9 years ago by Jaegeuk Kim <[email protected]>
libf2fs_fmt is compiled from the same sources of mkfs.f2fs. This library is
required by libf2fs_...
It needs to consider different sector size when showing the total
size.
Signed-off-by: Jaegeuk ...
3894c697cede172982b319cceef4d7ea1ffdd999 authored about 9 years ago by Jaegeuk Kim <[email protected]>We can use get_cp, set_cp, get_sb, and set_sb in fsck.f2fs.
Signed-off-by: Jaegeuk Kim <jaegeuk...
0e0b9f284477dc8505a69a0f5073d4385f56a7d6 authored about 9 years ago by Jaegeuk Kim <[email protected]>This patch exports get_sb, set_sb, get_cp, and set_cp for other tools.
Signed-off-by: Jaegeuk K...
06a19451eeecd8421be7eafd8d6581d54b9f6b05 authored about 9 years ago by Jaegeuk Kim <[email protected]>
If there are many obsolete blocks written by previous usage, we can recover
wrong blocks with th...
The length of extension name has a limit of 8 bytes. If an extension
exceeds the limitation, it ...
Before copying an user specified extension to extension_list, check if it
is already in the list...
Deal with realloc failure to avoid memory leak and memory free.
Signed-off-by: Xue Liu <liuxuel...
43095ca4c293249affc29a975c151c92d24b13b5 authored about 9 years ago by Liu Xue <[email protected]>This avoids the following warning.
mount.c:783:27: warning: SM_I is static but used in inline f...
ee48fd2ced9bee686a51062d9d53f329a396a4e3 authored about 9 years ago by Jaegeuk Kim <[email protected]>If f2fs is mounted as ro, we can do fsck.f2fs.
Signed-off-by: Jaegeuk Kim <[email protected]>
67de42f76ac67a941cacb689cbd2e0d750ad67a9 authored about 9 years ago by Jaegeuk Kim <[email protected]>
This version includes bug fixes on fsck.f2fs and also support of more precise
overprovision sele...
Generic fsck uses -p, preen mode, and fsck.f2fs can support it as -a for now.
Signed-off-by: Ja...
5489249c23e00b775286d6f6d6df38b8614a30e9 authored about 9 years ago by Jaegeuk Kim <[email protected]>Big partition size needs uner 1% overprovision space to acquire more space.
section ovp ra...
2cdb04b52f202e931e370564396366d44bd4d1e2 authored about 9 years ago by Jaegeuk Kim <[email protected]>
Previously, check_sit_types didn't handle different numbers of active logs and
SSR cases. But, i...
This patch updates mkfs.f2fs man page to indicate the automatic ovp
calculation.
Signed-off-by:...
555138c23b2a13dbbe296d673cb871d3a733fda1 authored about 9 years ago by Jaegeuk Kim <[email protected]>
If a section consists of multiple segments, we should change the equation
to apply it on reserve...
The minimum volume size is determined while preparing superblock.
Signed-off-by: Jaegeuk Kim <j...
6f9c275125853d4195c4913b817ddc97510409c5 authored over 9 years ago by Jaegeuk Kim <[email protected]>
This patch introduces to set the default overprovision space according to the
partition size in ...
The -s should be the number of segments per a section.
Reported-by: Marc Lehmann <schmorp@schmo...
01219c7b195a552816c46ee3ad2ba8dcecc0eb5b authored over 9 years ago by Jaegeuk Kim <[email protected]>Add segment type information in sit_dump:
[sit_dump: 48] SIT[0x12905] : 0x 1 : 0
[sit_dump:...
This patch avoids wrong extent information modified by fixing block addresses.
Signed-off-by: J...
ca1436eeef10a23586c64491d308dd8c2e22174b authored over 9 years ago by Jaegeuk Kim <[email protected]>