gpt4 book ai didi

filesystems - 原始闪存设备上的 F2FS

转载 作者:行者123 更新时间:2023-12-04 03:20:02 26 4
gpt4 key购买 nike

我读到 F2FS 未在原始闪存设备上使用。我的问题是:可以吗?如果不是,为什么不呢?什么可能会阻止文件系统在存储介质上使用?

最佳答案

根据 https://lwn.net/Articles/518988/ ,

Unlike jffs2 and logfs, f2fs is not targeted at raw flash devices, but rather at the specific hardware that is commonly available to consumers — SSDs, eMMC, SD cards, and other flash storage with an FTL (flash translation layer) already built in.

在我看来,使用 f2fs (FTL) 的硬件要求是禁止原始闪存使用 f2fs 的原因。进一步阅读本文,您会发现:

As the FTL typically uses a log-structured design to provide the wear-leveling and write-gathering that flash requires, this means that there are two log structures active on the device — one in the firmware and one in the operating system. f2fs is explicitly designed to make use of this fact and leaves a number of tasks to the FTL while focusing primarily on those tasks that it is well positioned to perform. So, for example, f2fs makes no effort to distribute writes evenly across the address space to provide wear-leveling.

这或许可以解释为什么原始闪存无法使用 f2fs:使用此文件系统需要 FTL。

关于filesystems - 原始闪存设备上的 F2FS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38882210/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com