Commit Graph

983 Commits

Author SHA1 Message Date
openharmony_ci
5e5c12b007
!59 Fix: unrechable nid scanf & disk model change to config WITH_OHOS
Some checks failed
CI / build (android, clang, aarch64-linux-android32) (push) Has been cancelled
CI / build (linux-clang, clang) (push) Has been cancelled
CI / build (linux-gcc, gcc) (push) Has been cancelled
CI / build (linux-mingw64-gcc, gcc, -D__USE_MINGW_ANSI_STDIO, x86_64-w64-mingw32) (push) Has been cancelled
CI / build (linux-powerpc64-gcc, gcc, powerpc64-linux-gnu) (push) Has been cancelled
CI / build (macos, clang, macos-latest) (push) Has been cancelled
CI / build (x86, linux-x86-gcc, gcc) (push) Has been cancelled
Merge pull request !59 from nieben/cancel_disk_model_and_unref_nid_log
2024-10-11 04:35:38 +00:00
nieben
24003db3f4 Cancel disk model print and unref nid scan
Signed-off-by: nieben <nieben1@huawei.com>

Change-Id: I3817dbcdef565842b6eb13c2a6b973b8d61e9c0e
2024-10-09 19:12:37 +08:00
openharmony_ci
92cf264610
!58 Fix xattr max value len bug
Some checks failed
CI / build (android, clang, aarch64-linux-android32) (push) Has been cancelled
CI / build (linux-clang, clang) (push) Has been cancelled
CI / build (linux-gcc, gcc) (push) Has been cancelled
CI / build (linux-mingw64-gcc, gcc, -D__USE_MINGW_ANSI_STDIO, x86_64-w64-mingw32) (push) Has been cancelled
CI / build (linux-powerpc64-gcc, gcc, powerpc64-linux-gnu) (push) Has been cancelled
CI / build (macos, clang, macos-latest) (push) Has been cancelled
CI / build (x86, linux-x86-gcc, gcc) (push) Has been cancelled
Merge pull request !58 from nieben/xattr_max_value_len_bug
2024-10-08 11:57:56 +00:00
nieben
7067537b04 fix xattr max value len bug
Signed-off-by: nieben <nieben1@huawei.com>

Change-Id: I69291a8bf2304fc3af3d6f2678f17f67f6255306
2024-10-08 11:12:23 +08:00
openharmony_ci
a30faae1c6
!57 Fix: casefold dlen bug
Some checks failed
CI / build (android, clang, aarch64-linux-android32) (push) Has been cancelled
CI / build (linux-clang, clang) (push) Has been cancelled
CI / build (linux-gcc, gcc) (push) Has been cancelled
CI / build (linux-mingw64-gcc, gcc, -D__USE_MINGW_ANSI_STDIO, x86_64-w64-mingw32) (push) Has been cancelled
CI / build (linux-powerpc64-gcc, gcc, powerpc64-linux-gnu) (push) Has been cancelled
CI / build (macos, clang, macos-latest) (push) Has been cancelled
CI / build (x86, linux-x86-gcc, gcc) (push) Has been cancelled
Merge pull request !57 from nieben/casefold_bugfix
2024-09-26 02:52:04 +00:00
nieben
f32457e119 casefold bugfix
Signed-off-by: nieben <nieben1@huawei.com>
2024-09-25 16:49:38 +08:00
openharmony_ci
791908c828
!56 Fix: add WITH_BLKDISCARD & HAVE_FSYNC config
Merge pull request !56 from nieben/config_compare_merge
2024-09-03 08:06:39 +00:00
nieben
52a9f13cab config compare merge
Signed-off-by: nieben <nieben1@huawei.com>

Change-Id: I3f75ef781cb6b7d5bfe6bdd1fbc0f45fff868f12
2024-09-03 11:33:43 +08:00
openharmony_ci
a1ae71b22e
!50 Fix: casefold fikename fuzz test panic
Merge pull request !50 from nieben/casefold_filename_fuzz_panic
2024-08-19 11:17:17 +00:00
nieben
015a4b5ab3 Fix casefold filename fuzz test panic
Signed-off-by: nieben <nieben1@huawei.com>
2024-08-19 16:34:36 +08:00
openharmony_ci
099be2917a
!47 hmfs支持格式化时设置UUID/LABEL
Merge pull request !47 from linlinlin/master
2024-07-09 08:24:37 +00:00
linlinlin
f486aebf08 修改mkfs支持生成uuid和label
Signed-off-by: linlinlin <linhaotian2@huawei.com>
2024-07-06 17:18:59 +08:00
openharmony_ci
45debf115c
!45 Revert "f2fs-tools: give less overprovisioning space"
Merge pull request !45 from 张代曰/revert_ovp
2024-06-02 08:33:15 +00:00
zhang-daiyue
1799d79113 Revert "f2fs-tools: give less overprovisioning space"
This reverts commit 76a88baa90.

Signed-off-by: zhang-daiyue <zhangdaiyue1@huawei.com>
Change-Id: Id84af613696213680384d8dd9ef8e0b30c9d177b
2024-06-02 14:54:53 +08:00
openharmony_ci
51558b7dcb
!43 第三方f2fs-tools部件告警消除
Merge pull request !43 from tongkai0808fh/master
2024-05-30 02:07:19 +00:00
tongkai0808fh
7840acd16e gn文件格式化
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-28 20:34:11 +08:00
tongkai0808fh
a3fd557bd7
修改fsck/BUILD.gn,消除蓝区include_dirs告警
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-28 08:30:24 +00:00
tongkai0808fh
af1c3576a8
修改mkfs/BUILD.gn,消除蓝区include_dirs告警
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-28 08:27:49 +00:00
tongkai0808fh
960ed9ac7b
修改mkfs/BUILD.gn,外部部件依赖external_deps改成public_external_deps
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-27 11:23:15 +00:00
tongkai0808fh
58b79de074
update fsck/BUILD.gn.
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-27 07:48:11 +00:00
tongkai0808fh
377379d690 格式化gn文件
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-27 14:24:20 +08:00
tongkai0808fh
36a5458a68
update bundle.json,删去header字段
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-27 06:17:37 +00:00
tongkai0808fh
ef11282bca
修改f2fs-tools部件的mkfs接口依赖,消除蓝区ci看板告警
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-27 05:54:57 +00:00
tongkai0808fh
fff71bfadf
修改f2fs-tools的fsck接口依赖,清除蓝区ci看板告警
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
2024-05-27 05:51:10 +00:00
openharmony_ci
7e11b4c4d0
!42 README.OpenSource文件与黄区文件修改同步
Merge pull request !42 from 覃权/master
2024-05-15 10:05:28 +00:00
qinquan5
3f4f913b57 update config.h f2fs version to 1.15.0
Signed-off-by: qinquan5 <qinquan5@huawei.com>
2024-05-15 11:59:33 +08:00
qinquan5
8629bf9550 README.OpenSource修改同步
Signed-off-by: qinquan5 <qinquan5@huawei.com>
2024-05-13 17:00:30 +08:00
openharmony_ci
a7e97206a7
!41 f2fs-tools upgrade version 1.16.0
Merge pull request !41 from shenshensun/f2fs_tools_v1.16
2024-04-16 10:32:11 +00:00
Jaegeuk Kim
6943d0196f f2fs-tools: upgrade version 1.16.0
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:47 +08:00
Juhyung Park
7a64f18f69 fsck.f2fs: fix sanity check logic for cp_payload
cp_payload is set differently [1] when extended node bitmap feature is
enabled. Commit b79c3ba4ea broke fsck on f2fs file systems created on
2+ TB device with extended node bitmap feature enabled.

As the sanity check is for checking overflows, fix this to assume the max
possible cp_payload size under the extended node bitmap.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/tree/mkfs/f2fs_format.c?h=v1.15.0#n372 [1]
Fixes: b79c3ba4ea ("fsck.f2fs: sanity check cp_payload before reading checkpoint")
Reported-by: Alexander Koskovich <akoskovich@pm.me>
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:47 +08:00
Jaegeuk Kim
7835032f2c mkfs.f2fs: remove indentation
Show info w/o it.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
540bec88ab fsck.f2fs: don't call report_zone on normal partition
Report_zone is not supported on normal partition.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
53055e6db1 f2fs-tools: relax zone size of power of 2
Let's relax this for Android support.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
ca912d6446 mkfs.f2fs: trim all the devices except the first one
We need to check the first disk only, and trim the other disks.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
6d50a75823 f2fs-tools: fix # of total segments
TOTAL_SEGS should include metadata segments and main segments.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
79410835d2 f2fs_io: support AES_256_HCTR2
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Khem Raj
e118fca18c f2fs_io: Fix out of tree builds
Relative path does not work when searching for include files
when srcdir != builddir

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Chao Yu
4207f53215 fsck.f2fs: relocate chksum verification step during f2fs_do_mount()
Keep sanity_check_raw_super flow in fsck.f2fs being consistent w/
sanity_check_raw_super() in f2fs kernel module, otherwise, it outputs
different error information when mounting/fscking the same image which
contains corrupted superblock.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
7026a73750 f2fs-tools: Remove deprecated f2fstat
Let's remove this.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Bart Van Assche
f3344cf6db Remove sg_write_buffer
Remove the sg_write_buffer source code and build rules now that the
sg3_utils project has been imported.

Signed-off-by: Bart Van Assche <bvanassche@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Sheng Yong
c027dc1905 fsck.f2fs: avoid uncessary recalculation
There is no need to recalculate ADDRS_PER_INODE and ADDRS_PER_BLOCK,
especially in a for loop.

Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Sheng Yong
792c0b4a71 fsck.f2fs: fix potential overflow of copying i_name
If i_namelen is corrupted, there may be an overflow when doing memcpy.

Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Sheng Yong
e9217c4777 fsck.f2fs: add parentheses for SB_MASK
Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Sheng Yong
eed09be1c4 dump.f2fs: remove unavailable option -g
Option "-g" for dump.f2fs is unavailable and not used in dump.f2fs.

Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Juhyung Park
8247209800 f2fs-tools: define HAVE_CLOCK_GETTIME properly
HAVE_CLOCK_GETTIME wasn't defined during autoconf, leading to
messages like "Done: 0.000000 secs" on Linux distros.

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Daeho Jeong
4c2d71c5b6 f2fs-tools: support F2FS_IOC_START_ATOMIC_REPLACE
Added options in f2fs_io write command to support
F2FS_IOC_START_ATOMIC_REPLACE.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
76a88baa90 f2fs-tools: give less overprovisioning space
As f2fs becomes more resilient for GCs, let's give the marginal overprovision
space back to user.

Fix an issue where reserved_space > ovp_space, reported by Shinichiro.

Signed-off-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
2f3589348f f2fs-tools: set host-aware zoned device similar to host-managed one
It'd be good to generate zone-aware sequential writes to both of HA and HM
zoned devices.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Jaegeuk Kim
9d92496013 fsck.f2fs: fix missing to assign c.zoned_model
We need to set the c.zoned_model appropriately for further usages.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00
Chao Yu
b98aab471a fsck.f2fs: trigger repairing if filesystem has inconsistent errors
In auto/preen mode, let's trigger repairing if filesystem has
inconsistent errors.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-04-15 11:31:46 +08:00