]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Adapt debug subsystem in libubifs
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:37:09 +0000 (16:37 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commit6c65bcc57fbc51deed6e48b8bdc6d85cf00ef647
tree0e2aaf707ff4684d4ec0cff681fa1f8a406320d7
parent16214e03f976de54bfae41d7328606155ea0fe96
ubifs-utils: Adapt debug subsystem in libubifs

Adapt debug subsystem(debug.c, debug.h) in libubifs, compared with
linux kernel implementations:
 1. Only keep the disk data and space statistics dumping implementations,
    dbg_walk_index and add_size which are used by fsck, other debuging
    related implementations and sysfs interfaces are removed, because
    fsck will check fs in another way.
 2. Change the behavior of ubifs_assert_failed(), make filesystem
    readonly when assertion is failed.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/libubifs/debug.c
ubifs-utils/libubifs/debug.h
ubifs-utils/libubifs/ubifs.h