\u4e00\u3001\u6982\u8ff0<\/strong><\/div>\nF2FS\u662fFlash Friendly File System\u7684\u7b80\u79f0\u3002\u8be5\u6587\u4ef6\u7cfb\u7edf\u662f\u7531\u97e9\u56fd\u4e09\u661f\u7535\u5b50\u516c\u53f8\u4e8e2012\u5e74\u7814\u53d1\uff0c\u53ea\u63d0\u4f9b\u7ed9\u8fd0\u884cLinux\u5185\u6838\u7684\u7cfb\u7edf\u4f7f\u7528\uff0c\u8fd9\u79cd\u6587\u4ef6\u7cfb\u7edf\u5bf9\u4e8eNAND\u95ea\u5b58\u7c7b\u5b58\u50a8\u4ecb\u8d28\u662f\u975e\u5e38\u53cb\u597d\u7684\u3002\u5e76\u4e14F2FS\u662f\u4e13\u95e8\u4e3a\u57fa\u4e8e NAND \u7684\u5b58\u50a8\u8bbe\u5907\u8bbe\u8ba1\u7684\u65b0\u578b\u5f00\u6e90 flash \u6587\u4ef6\u7cfb\u7edf\u3002\u7279\u522b\u9488\u5bf9NAND \u95ea\u5b58\u5b58\u50a8\u4ecb\u8d28\u505a\u4e86\u53cb\u597d\u8bbe\u8ba1\u3002F2FS \u4e8e2012\u5e7412\u6708\u8fdb\u5165Linux 3.8 \u5185\u6838\u3002\u76ee\u524d\uff0cF2FS\u4ec5\u652f\u6301Linux\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n
\u6839\u636e\u5185\u90e8\u51e0\u4f55\u7ed3\u6784\u548c\u95ea\u5b58\u7ba1\u7406\u673a\u5236(FTL)\uff0c\u95ea\u5b58\u5b58\u50a8\u8bbe\u5907\u6709\u5f88\u591a\u4e0d\u540c\u7684\u5c5e\u6027\uff0c\u6240\u4ee5F2FS\u7684\u8bbe\u8ba1\u8005\u589e\u52a0\u4e86\u591a\u79cd\u53c2\u6570\uff0c\u4e0d\u4ec5\u7528\u4e8e\u914d\u7f6e\u78c1\u76d8\u5e03\u5c40\uff0c\u8fd8\u53ef\u4ee5\u9009\u62e9\u5206\u914d\u548c\u6e05\u7406\u7b97\u6cd5\uff0c\u4f18\u5316\u6027\u80fd(\u5e76\u884cIO\u63d0\u9ad8\u6027\u80fd)<\/p>\n
F2FS\u65e9\u671f\u5f00\u53d1\u8005\u4e3aJaegeuk Kim\uff0c\u5f53\u65f6\u662f\u4e09\u661f\u5458\u5de5\uff0c\u4f46\u662f\u4e09\u661f\u81ea\u5bb6\u7684\u673a\u5668\u6ca1\u6709\u76f4\u63a5\u4f7f\u7528F2FS\uff0c\u800c\u662fCM\u5f00\u6e90ROM\u7ec4\u6709\u505a\u76f8\u5173\u7684\u9002\u914d\u3002\u540e\u6765\u8fd9\u4e2a\u5f00\u53d1\u8005\u88abMOTO\u6316\u8d70\uff0c\u4e8e\u662f\u6211\u4eec\u89c1\u5230\u4e86\u7528F2FS\u7684MOTO X\u7cfb\u5217\u3002\u540e\u6765\u53c8\u53bb\u4e86\u534e\u4e3a\uff0c\u6545\u800c\u6709\u4e86\u5168\u7ebfF2FS\u7684EMUI5.0\uff0c\u53f7\u79f0\u6d41\u7545\u5ea6\u63d0\u534720%\u534e\u4e3a\u7684P9\u548cMate9\u90fd\u4f7f\u7528F2FS\uff0c\u6d41\u7545\u5ea6\u660e\u663e\u63d0\u5347\u3002\u5f53\u7136F2FS\u5012\u6ca1\u4ec0\u4e48\u7248\u6743\u7ea0\u7eb7\uff0cLinux\u4f53\u7cfb\u4e0b\u7684\u4e1c\u897f\u81ea\u7136\u9075\u5b88\u5f00\u6e90\u534f\u5b9a\u3002<\/p>\n
\u5bf9\u4e8eF2FS\uff0c\u5b98\u65b9\u6587\u6863\u548c\u5176\u4ed6\u535a\u4e3b\u5927\u90fd\u4ece\u539f\u7406\u548c\u4ee3\u7801\u7684\u89d2\u5ea6\u6765\u5206\u6790\uff0c\u6211\u4eca\u5929\u4f1a\u4ece\u5b9e\u6218\u6a2a\u5411\u5bf9\u6bd4EXT4\u6587\u4ef6\u7cfb\u7edf\u7684\u89c6\u89d2\uff0c\u5e26\u4f60\u611f\u53d7\u771f\u5b9e\u7684F2FS\uff01<\/p>\n
device\/ $platform\/device.mk\r\nvendor\/proprietary\/hardware\/fstab\/$platform\/fstab.bin\r\nkernel-4.4\/arch\/arm64\/configs\/ $platform_n_defconfig\r\nexternal\/f2fs-tools\/*\r\nsystem\/extras\/f2fs_utils\/*<\/pre>\n\u4e8c\u3001F2FS\u67b6\u6784<\/strong><\/div>\nF2FS\u6587\u4ef6\u7cfb\u7edf\u7684\u6570\u636e\u7ed3\u6784\u8bf4\u660e\uff1aF2FS\u4f7f\u7528\u4e09\u79cdnode\uff1ainode\uff0c\u76f4\u63a5node\uff0c\u95f4\u63a5node\u3002F2FS\u5206\u914d4KB\u7684\u7a7a\u95f4\u7ed9\u4e00\u4e2ainode\uff0c\u5176\u4e2d\u5305\u62ec929\u4e2a\u6570\u636e\u5757\u7d22\u5f15\u6307\u9488\uff0c\u4e24\u4e2a\u4e00\u7ea7\u7d22\u5f15\u5757(\u76f4\u63a5node)\u6307\u9488\uff0c\u4e24\u4e2a\u4e8c\u7ea7\u7d22\u5f15\u5757(\u95f4\u63a5node)\u6307\u9488\uff0c\u4ee5\u53ca\u4e00\u4e2a\u4e09\u7ea7\u7d22\u5f15\u5757(\u4e8c\u7ea7\u95f4\u63a5node)\u6307\u9488\u3002<\/p>\n
\u4e00\u4e2a\u4e00\u7ea7\u7d22\u5f15\u5757\u5305\u542b1018\u4e2a\u6570\u636e\u5757\u6307\u9488\uff0c\u4e00\u4e2a\u4e8c\u7ea7\u7d22\u5f15\u5757\u5305\u542b1018\u4e2a\u4e00\u7ea7\u7d22\u5f15\u5757\u6307\u9488\uff0c\u4e00\u4e2a\u4e09\u7ea7\u7d22\u5f15\u5757\u5305\u542b1018\u4e2a\u4e8c\u7ea7\u7d22\u5f15\u5757\u6307\u9488\u3002\u53ef\u4ee5\u7d22\u5f15\u5230\u4e00\u4e2a\u6587\u4ef6\u7684\u6700\u5927\u5927\u5c0f\u662f\uff1a<\/p>\n
\r\n4 KB * (929 + 2*1018 + 2*1018*1018 + 1018*1018*1018) := 3.94 TB<\/pre>\nF2FS\u6587\u4ef6\u7cfb\u7edf\u7684\u6807\u51c6\u78c1\u76d8\u5e03\u5c40\uff1a
\n<\/p>\n
F2FS\u6587\u4ef6\u7cfb\u7edf\u7684\u6570\u636e\u7ed3\u6784(node\u7ed3\u6784)\uff1a<\/p>\n
<\/p>\n
\u4e09\u3001F2FS\u548cEXT4\u6587\u4ef6\u7cfb\u7edf\u6bd4\u8f83<\/strong><\/div>\n\u788e\u7247\u6574\u7406<\/strong><\/span><\/div>\nEXT4\u6587\u4ef6\u7cfb\u7edf\uff1a\u6309\u7167EXT\u6587\u4ef6\u7cfb\u7edf\u7684\u4f5c\u8005\u6240\u8bf4\u7684\uff0c\u5728\u5206\u533a\u7684\u7a7a\u4f59\u7a7a\u95f4\u57282%\u4ee5\u4e0a\u7684\u60c5\u51b5\u4e0bEXT\u5206\u533a\u662f\u4e0d\u4f1a\u4ea7\u751f\u788e\u7247\u7684\u3002F2FS\u6587\u4ef6\u7cfb\u7edf\uff1a\u4e3a\u7ba1\u7406\u78c1\u76d8\u4e0a\u7684\u5927\u7684\u8fde\u7eed\u7684\u7a7a\u95f4\u4ee5\u4fbf\u5feb\u901f\u5199\u5165\u6570\u636e\uff0c\u4f7f\u7528Segment Cleaner\u4ece\u91cd\u5ea6\u788e\u7247\u5316\u7684Segment\u4e2d\u8f6c\u79fb\u51fa\u6709\u6548\u4fe1\u606f\uff0c\u7136\u540e\u5c06\u8be5Segment\u6e05\u7406\u5e72\u51c0\u7528\u4e8e\u540e\u7eed\u5199\u5165\u6570\u636e\u3002<\/p>\n
\u5360\u7528\u7a7a\u95f4<\/strong><\/span><\/div>\n\u901a\u8fc7DiskInfo\u53ef\u4ee5\u660e\u786e\u7684\u663e\u793a,\u5f53Data\u5206\u533a\u7684\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f\u5206\u522b\u4e3aEXT4\u548cF2FS\u65f6\u6240\u5360\u7a7a\u95f4\u7684\u5927\u5c0f\u5bf9\u6bd4:<\/p>\n
<\/p>\n
\u4eceAndroid\u7cfb\u7edf\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u76f8\u540c\u7684\u5b89\u5353ROM\u5305\uff0c\u5728F2FS\u6587\u4ef6\u7cfb\u7edf\u4e0b\u5360\u7528\u95ea\u5b58\u7684\u5bb9\u91cf\u4f1a\u591a\u4e00\u4e9b\u3002
\nF2FS\u6587\u4ef6\u7cfb\u7edf\u5728\u6bcf\u4e00\u4e2a\u6587\u4ef6\u7d22\u5f15\u8282\u70b9\u5757\u4e2d\u5305\u542b\u4e86\u5982\u4e0bf2fs_inode\u548cnode_footer\u3002\u5176\u4e2df2fs_inode\u7ed3\u6784\u4e2d\u7684\u6570\u636e\u7d22\u5f15\u533a\u53c8\u5b58\u5728923\u4e2a\u6570\u636e\u5757\u6307\u9488\uff0c\u6bcf\u4e2a\u6307\u9488\u5bf9\u5e94\u4e00\u4e2a\u5927\u5c0f\u4e3a4KB\u7684\u6570\u636e\u5757\uff0c\u4f46\u662f\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\u7cfb\u7edf\u6587\u4ef6\u7d22\u5f15\u5e76\u4e0d\u9700\u8981\u7528\u5230\u6240\u6709\u6570\u636e\u5757\uff0c\u5728\u6700\u6781\u7aef\u60c5\u51b5\u4e0b\u6587\u4ef6\u5927\u5c0f\u4e3a4KB\u65f6\uff0c\u53ea\u9700\u8981\u7528\u5230\u4e00\u4e2a\u6570\u636e\u5757\uff0c\u5269\u4e0b\u7684\u6570\u636e\u5757\u5219\u5904\u4e8e\u95f2\u7f6e\u72b6\u6001\uff0c\u8fd9\u5c31\u9020\u6210\u4e86\u5b58\u50a8\u5bb9\u91cf\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u7684\u7a7a\u95f4\u6d6a\u8d39\uff0c\u4e5f\u5c31\u662f\u540c\u6837\u4e00\u90e8\u624b\u673a\uff0c\u5728\u76f8\u540c\u7684\u5b89\u5353\u7cfb\u7edf\u4e2d\uff0cF2FS\u6587\u4ef6\u7cfb\u7edf\u4e0b\uff0c\u95ea\u5b58\u5bb9\u91cf\u7684\u5360\u7528\u4f1a\u76f8\u5bf9\u9ad8\u4e00\u4e9b\u3002<\/p>\n
\u6570\u636e\u6062\u590d<\/strong><\/span><\/div>\n\u6570\u636e\u6062\u590d\u673a\u5236\u548c\u6570\u636e\u5199\u5165\u78c1\u76d8\u7684\u65b9\u5f0f\u5bc6\u5207\u76f8\u5173\u3002\u5bf9\u4e8eLinux\u7cfb\u7edf\uff0c\u5176\u9875\u7f13\u5b58\u673a\u5236\u91c7\u7528\u63a8\u8fdf\u5199\u5165\u7684\u65b9\u5f0f\u5199\u5165\u6570\u636e\uff0c\u5728\u5185\u5b58\u4e2d\u88ab\u6807\u8bb0\u4e3a\u810f\u7684\u9875\u5e76\u4e0d\u4f1a\u7acb\u5373\u5199\u56de\u78c1\u76d8\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u7684\u6027\u80fd\u3002\u56e0\u6b64\uff0c\u5b58\u5728\u4e8e\u5185\u5b58\u9875\u4e2d\u7684\u6570\u636e\u5728\u7cfb\u7edf\u53d1\u751f\u610f\u5916\u60c5\u51b5\u65f6\u5c31\u4f1a\u4e22\u5931\u3002
\n\u5bf9\u4e8e\u4e00\u79cd\u60c5\u51b5\uff0c\u5373sync\u64cd\u4f5c\u65f6\u53d1\u751f\u5728\u6570\u636e\u5199\u5165\u78c1\u76d8\u540e\u800c\u5728\u5143\u6570\u636e\u5199\u5165\u78c1\u76d8\u524d\u7684\u7cfb\u7edf\u610f\u5916\uff0c\u5176\u6570\u636e\u5df2\u7ecf\u5199\u5165\u78c1\u76d8\u4f46\u7531\u4e8e\u6ca1\u6709\u7d22\u5f15\u800c\u65e0\u6cd5\u627e\u56de\uff0c\u800cF2FS\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u6062\u590d\u673a\u5236\u627e\u56de\u8fd9\u4e9b\u6587\u4ef6\u6570\u636e\u3002<\/p>\n
\u96c6\u6210\u60c5\u51b5<\/strong><\/span><\/div>\n\u73b0\u5728\u4e0d\u7ba1\u662f\u624b\u673a\u6216\u8005\u5176\u4ed6Android\u8bbe\u5907\u96c6\u6210F2FS\u6bd4\u8f83\u666e\u904d\uff0c\u4f46\u662f\u65e9\u671f\u4e3a\u4e86\u517c\u5bb9\u6027\u548c\u6027\u80fd\uff0c\u4f1a\u628adata\u5206\u533a\u4f7f\u7528F2FS\uff0c\u800c\u7cfb\u7edf\u548c\u7f13\u5b58\u90fd\u8fd8\u662fEXT4\uff0c\u8fd9\u6837F2FS\u53ea\u4f1a\u5f71\u54cd\u5230\u7b2c\u4e09\u65b9\u5e94\u7528\u4e00\u6bb5\u65f6\u95f4\u5185\u9996\u6b21\u8bfb\u5199\u6587\u4ef6\u65f6\u7684\u901f\u5ea6\uff0c\u8fd9\u53ea\u662f\u4f7f\u7528\u6d41\u7545\u5ea6\u7684\u4e00\u90e8\u5206\u800c\u5df2\u3002\u6b64\u5916\u6bd4\u8f83\u91cd\u8981\u7684\u7cfb\u7edf\u548c\u8f83\u5c0f\u7684\u7f13\u5b58\u5206\u533a\u4ecd\u91c7\u7528EXT4\u3002<\/p>\n
\u8bfb\u5199\u901f\u5ea6<\/strong><\/span><\/div>\n<\/p>\n
\u5de6\u8fb9EXT4\u6587\u4ef6\u7cfb\u7edf\uff0c \u53f3\u8fb9F2FS\u6587\u4ef6\u7cfb\u7edf<\/p>\n
\u8fde\u7eed\u8bfb\u5199\uff1a<\/strong><\/span><\/div>\n\u4e8c\u8005\u7684\u8fde\u7eed\u8bfb\u5199\u6027\u80fd\u6ca1\u6709\u592a\u5927\u7684\u53d8\u5316\u3002<\/p>\n
\u968f\u673a\u8bfb\u5199\uff1a<\/strong><\/span><\/div>\nF2FS\u6bd4EXT4\u7684\u968f\u673a\u8bfb\u53d6\u6027\u80fd\u63d0\u5347\u4e8625%\u5de6\u53f3\uff1b\u4f46\u662f\u968f\u673a\u5199\u5165\u901f\u5ea6\uff0cF2FS\u6bd4EXT4\u6587\u4ef6\u7cfb\u7edf\u6709\u4e86\u98de\u8dc3\u7684\u63d0\u5347\uff0c\u968f\u673a\u5199\u5165\u6027\u80fd\u63d0\u5347\u4e86\u4e09\u500d\u8fd8\u591a\u3002
\n\u7531\u4e8e\u968f\u673a\u5199\u5165\u7684\u6027\u80fd\u5927\u5927\u63d0\u5347\u4e86\uff0c\u5728\u7c7b\u4f3c\u8f6f\u4ef6\u5b89\u88c5\u548c\u7cfb\u7edf\u91cd\u542f\u4e2d\uff0c\u8981\u5927\u91cf\u5199\u5165\u5c0f\u6587\u4ef6\u7684\u60c5\u51b5\u4e0b\uff0cF2FS\u6587\u4ef6\u7cfb\u7edf\u4e0b\u6709\u975e\u5e38\u559c\u4eba\u7684\u53d8\u5316\u3002<\/p>\n
\u56db\u3001\u6027\u80fd\u6d4b\u8bd5<\/strong><\/div>\n\u4f7f\u7528\u5de5\u5177AdroBench.apk\u548c\u5b89\u5154\u5154\u6d4b\u8bd5\u3002<\/p>\n
<\/p>\n
\u4e0d\u540c\u573a\u666f\u6d4b\u8bd5\u3002<\/p>\n
<\/p>\n
\u4f5c\u8005\u7b80\u4ecb\uff1a\u8bb8\u5e86\u4f1f\uff1a\u9f99\u8725\u793e\u533aeBPF\u6280\u672f\u63a2\u7d22SIG\u7ec4 Maintainer & Linux Kernel Security Researcher<\/p>\n","protected":false},"excerpt":{"rendered":"
F2FS\u662fFlash Friendly File System\u7684\u7b80\u79f0\u3002\u8be5\u6587\u4ef6\u7cfb\u7edf\u662f\u7531\u97e9\u56fd\u4e09\u661f\u7535\u5b50\u516c\u53f8\u4e8e2012 […]<\/p>\n","protected":false},"author":1469,"featured_media":253008,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-252999","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/252999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=252999"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/252999\/revisions"}],"predecessor-version":[{"id":253885,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/252999\/revisions\/253885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/253008"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=252999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=252999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=252999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}