Skip to content

F2FS优化重启失效,建议锁定文件权限 #29

Description

@Orionx-Lampros

借鉴@代号10007代码如下
find /sys/fs/f2fs -iname "gc_urgent_sleep_time" -type f 2> /dev/null | while read file ;do
chmod 0666 "$file"
echo "50" > "$file"
test "$(cat $file)" = "50" && echo "修改$file成功!" || echo "修改$file失败!"
chmod 0444 "$file"
done

find /sys/fs/f2fs -iname "cp_interval" -type f 2> /dev/null | while read file ;do
chmod 0666 "$file"
echo "200" > "$file"
test "$(cat $file)" = "200" && echo "修改$file成功!" || echo "修改$file失败!"
chmod 0444 "$file"
done

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions