[PATCH] fs: ext4: Change the Settings of file permissions

2024-03-19 Thread Jixiong Hu
When a file is created in the linux and corresponding file permission is set, if the file needs to be modified in uboot during the startup process, the modified file permission will be reset to 755. Therefore, when the ext4fs_write() function is called, if the file already exists, the file permissi

[PATCH] fs: ext4: Fixed file permissions

2024-03-14 Thread Jixiong Hu
Modified the ext4fs_write function to create a new file that inherits the inode->mode of existing file. To fix an issue where file permissions are changed after modifying the contents of an existing file. --- fs/ext4/ext4_write.c | 20 ++-- 1 file changed, 18 insertions(+), 2 delet