kernel: Add nuke_ext4_sysfs interface (#632)

Co-authored-by: weishu <twsxtd@gmail.com>
This commit is contained in:
AlexLiuDev233
2025-11-27 21:14:01 +08:00
committed by GitHub
parent 57e3c095be
commit 3a12bdead1
4 changed files with 41 additions and 6 deletions

View File

@@ -105,10 +105,10 @@ void on_post_fs_data(void)
}
extern void ext4_unregister_sysfs(struct super_block *sb);
static void nuke_ext4_sysfs(void)
int nuke_ext4_sysfs(const char* mnt)
{
struct path path;
int err = kern_path("/data/adb/modules", 0, &path);
int err = kern_path(mnt, 0, &path);
if (err) {
pr_err("nuke path err: %d\n", err);
return;