{"id":109183,"date":"2026-09-23T14:32:52","date_gmt":"2026-09-23T06:32:52","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109183.html"},"modified":"2026-09-23T14:32:52","modified_gmt":"2026-09-23T06:32:52","slug":"%e3%80%90linux%e7%b3%bb%e7%bb%9f%e3%80%91%e3%80%90%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%ba%95%e5%b1%82%e6%8f%ad%e7%a7%98%ef%bc%9a%e8%bd%af%e7%a1%ac%e9%93%be%e6%8e%a5%e4%b8%8einode%e7%9a%84%e7%9c%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109183.html","title":{"rendered":"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582"},"content":{"rendered":"<h2>Linux\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u539f\u7406\u5168\u89e3\u6790&#xff1a;\u4ece\u78c1\u76d8\u62bd\u8c61\u5230\u8f6f\u786c\u94fe\u63a5<\/h2>\n<p>\u672c\u7ae0\u8282\u7684\u6838\u5fc3\u76ee\u6807\u53ea\u6709\u4e00\u4e2a&#xff1a;\u628a\u201c\u6587\u4ef6\u6ca1\u6709\u88ab\u6253\u5f00\u65f6\u662f\u600e\u4e48\u8eba\u5728\u78c1\u76d8\u4e0a\u7684\u201d\u8fd9\u4ef6\u4e8b\u5f7b\u5e95\u8bb2\u6e05\u695a\u3002\u5f53\u4f60\u771f\u6b63\u7406\u89e3 inode\u3001\u5757\u7ec4\u3001\u8def\u5f84\u7f13\u5b58\u548c\u94fe\u63a5\u8ba1\u6570\u540e&#xff0c;\u518d\u770b ls\u3001find\u3001ln&#xff0c;\u751a\u81f3\u8bef\u5220\u6062\u590d&#xff0c;\u90fd\u4f1a\u6709\u5b8c\u5168\u4e0d\u540c\u7684\u8ba4\u77e5\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u4ece\u7269\u7406\u78c1\u76d8\u5230\u903b\u8f91\u62bd\u8c61&#xff1a;\u4e00\u5207\u6e90\u4e8e\u201c\u89e3\u8026\u201d<\/h3>\n<h4>1.1 \u78c1\u76d8\u7684\u7269\u7406\u4e16\u754c<\/h4>\n<p>\u5728\u62c6\u5f00\u6587\u4ef6\u7cfb\u7edf\u8fd9\u4e2a\u201c\u8f6f\u4ef6\u5c42\u201d\u4e4b\u524d&#xff0c;\u8001\u5e08\u5148\u7528\u673a\u68b0\u78c1\u76d8\u7684\u7269\u7406\u7ed3\u6784\u5e2e\u6211\u4eec\u5efa\u7acb\u4e86\u76f4\u89c9&#xff1a;<\/p>\n<ul>\n<li>\u76d8\u7247\u3001\u78c1\u5934\u3001\u4f20\u52a8\u81c2&#xff1a;\u76d8\u7247\u9ad8\u901f\u65cb\u8f6c&#xff0c;\u78c1\u5934\u6765\u56de\u6446\u52a8\u3002<\/li>\n<li>\u6247\u533a&#xff08;Sector&#xff09;&#xff1a;\u78c1\u76d8\u7684\u57fa\u672c\u5b58\u50a8\u5355\u4f4d&#xff0c;512 \u5b57\u8282\u3002\u7269\u7406\u5bfb\u5740\u4f7f\u7528 CHS&#xff08;\u67f1\u9762 C\u3001\u78c1\u5934 H\u3001\u6247\u533a S&#xff09;\u3002<\/li>\n<li>\u78c1\u6027\u539f\u7406&#xff1a;\u76d8\u7247\u8868\u9762\u662f\u65e0\u6570\u5fae\u5c0f\u7684\u78c1\u6027\u533a\u57df&#xff0c;\u672c\u8d28\u4e0a\u53ef\u4ee5\u7406\u89e3\u4e3a\u201c512 \u4e2a\u5c0f\u78c1\u94c1\u201d\u6784\u6210\u4e00\u4e2a\u6247\u533a&#xff0c;\u7528\u5357\u5317\u6781\u8868\u793a 0 \u548c 1\u3002<\/li>\n<\/ul>\n<h4>1.2 \u903b\u8f91\u62bd\u8c61&#xff1a;\u4e09\u7ef4 \u2192 \u4e00\u7ef4<\/h4>\n<p>\u64cd\u4f5c\u7cfb\u7edf\u5e76\u4e0d\u60f3\u5728\u4ee3\u7801\u91cc\u7ef4\u62a4\u4e00\u5957\u590d\u6742\u7684\u4e09\u7ef4\u5750\u6807\u3002\u4e8e\u662f\u78c1\u76d8\u88ab\u903b\u8f91\u62bd\u8c61\u6210\u4e00\u7ef4\u6570\u7ec4&#xff1a;<\/p>\n<ul>\n<li>\u6240\u6709\u76f8\u540c\u534a\u5f84\u7684\u78c1\u9053\u8fde\u8d77\u6765&#xff0c;\u5f62\u6210\u4e00\u4e2a\u4e8c\u7ef4\u5e73\u9762&#xff1b;\u6240\u6709\u67f1\u9762\u518d\u5806\u53e0&#xff0c;\u53d8\u6210\u4e09\u7ef4\u7ed3\u6784\u3002<\/li>\n<li>\u6700\u7ec8\u5728\u64cd\u4f5c\u7cfb\u7edf\u770b\u6765&#xff0c;\u6574\u4e2a\u78c1\u76d8\u5c31\u662f\u4e00\u4e2a\u5927\u7684\u4e00\u7ef4\u6570\u7ec4&#xff0c;\u6bcf\u4e2a\u5143\u7d20\u662f\u4e00\u4e2a\u6247\u533a\u3002<\/li>\n<li>\u4ece\u6b64\u5bfb\u5740\u4e0d\u518d\u7528 CHS&#xff0c;\u800c\u6539\u7528 LBA&#xff08;\u903b\u8f91\u5757\u5730\u5740&#xff09;\u2014\u2014\u4e00\u4e2a\u5355\u7eaf\u7684\u6570\u7ec4\u4e0b\u6807\u3002<\/li>\n<li>\u78c1\u76d8\u5185\u90e8\u4f1a\u81ea\u52a8\u5b8c\u6210 LBA \u4e0e CHS \u7684\u76f8\u4e92\u8f6c\u6362&#xff0c;\u5bf9\u4e0a\u5c42\u5b8c\u5168\u900f\u660e\u3002<\/li>\n<\/ul>\n<h4>1.3 \u4e3a\u4ec0\u4e48\u662f 4KB \u7684\u201c\u5757&#xff08;Block&#xff09;\u201d&#xff1f;<\/h4>\n<p>\u8fd9\u662f\u4e00\u4e2a\u7ecf\u5e38\u88ab\u5ffd\u7565\u3001\u4f46\u6781\u5176\u5173\u952e\u7684\u8bbe\u8ba1\u3002\u8001\u5e08\u5f3a\u8c03\u4e86\u4e24\u4e2a\u539f\u56e0&#xff1a;<\/p>\n<li>\u6548\u7387&#xff1a;\u673a\u68b0\u78c1\u76d8\u968f\u673a IO \u5f88\u6162\u3002\u5982\u679c\u64cd\u4f5c\u7cfb\u7edf\u6bcf\u6b21\u53ea\u8bfb\u5199 512 \u5b57\u8282&#xff0c;\u78c1\u5934\u9700\u8981\u6781\u5ea6\u9891\u7e41\u5730\u5bfb\u9053\u3002\u5c06 8 \u4e2a\u6247\u533a&#xff08;512B \u00d7 8&#xff09;\u62fc\u6210\u4e00\u4e2a 4KB \u7684 Block&#xff0c;\u53ef\u4ee5\u5927\u5e45\u51cf\u5c11\u5bfb\u5740\u6b21\u6570&#xff0c;\u63d0\u9ad8\u8fde\u7eed\u8bfb\u5199\u6548\u7387\u3002<\/li>\n<li>\u8f6f\u786c\u4ef6\u89e3\u8026&#xff1a;\u5982\u679c\u64cd\u4f5c\u7cfb\u7edf\u76f4\u63a5\u6309 512 \u5b57\u8282\u4e0e\u78c1\u76d8\u4ea4\u4e92&#xff0c;\u90a3\u4e48\u4e00\u65e6\u78c1\u76d8\u6280\u672f\u8fed\u4ee3&#xff08;\u6bd4\u5982\u51fa\u73b0\u65b0\u7269\u7406\u6247\u533a\u5927\u5c0f&#xff09;&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u5c31\u5f97\u8ddf\u7740\u6539\u3002\u5f15\u5165 4KB \u7684 Block \u4f5c\u4e3a\u6807\u51c6\u4ea4\u4e92\u5355\u4f4d\u540e&#xff0c;\u65e0\u8bba\u5e95\u5c42\u78c1\u76d8\u600e\u4e48\u53d8&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u5c42\u90fd\u65e0\u9700\u6539\u52a8\u3002<\/li>\n<p>&#x1f4a1; \u96f6\u788e\u77e5\u8bc6\u70b9&#xff1a;4KB \u8fd9\u4e2a\u6570\u5b57\u4e0d\u662f\u62cd\u8111\u888b\u5b9a\u7684&#xff0c;\u800c\u662f\u5927\u91cf\u5b9e\u9a8c\u5f97\u51fa\u7684\u5e73\u8861\u503c\u3002\u540e\u7eed\u8bb2\u5185\u5b58\u7ba1\u7406\u65f6\u8fd8\u4f1a\u63d0\u5230&#xff0c;\u5185\u5b58\u4e5f\u662f\u4ee5 4KB&#xff08;\u9875&#xff09;\u4e3a\u5355\u4f4d\u7ba1\u7406&#xff0c;\u78c1\u76d8 Block \u4e0e\u6b64\u5bf9\u5e94&#xff0c;\u505a\u597d\u4e86\u201c\u968f\u65f6\u8f7d\u5165\u5185\u5b58\u201d\u7684\u51c6\u5907\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u5206\u533a\u3001\u683c\u5f0f\u5316\u4e0e Ext2 \u5757\u7ec4\u7ed3\u6784<\/h3>\n<h4>2.1 \u5206\u533a&#xff1a;\u5206\u800c\u6cbb\u4e4b<\/h4>\n<p>\u4e00\u4e2a\u5927\u5bb9\u91cf\u78c1\u76d8&#xff08;\u6bd4\u5982 800GB&#xff09;\u65e0\u6cd5\u76f4\u63a5\u7ba1\u7406\u3002\u64cd\u4f5c\u7cfb\u7edf\u628a\u5b83\u5207\u6210\u591a\u4e2a\u5206\u533a&#xff08;\u6bd4\u5982 300GB\u3001200GB&#xff09;\u3002\u6bcf\u4e2a\u5206\u533a\u53ef\u4ee5\u72ec\u7acb\u683c\u5f0f\u5316&#xff0c;\u4f7f\u7528\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf&#xff08;\u5982 Ext2\u3001Ext3\u3001Ext4\u3001XFS&#xff08;\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u65e5\u5fd7\u5f0f\u6587\u4ef6\u7cfb\u7edf&#xff09;&#xff09;\u3002<\/p>\n<p>\u5206\u533a\u7684\u672c\u8d28\u53ea\u662f\u5728\u78c1\u76d8\u5f00\u5934\u8bb0\u5f55\u6bcf\u4e2a\u5206\u533a\u7684 Start \u548c End LBA&#xff0c;\u7c7b\u4f3c\u4e8e\u5f53\u5e74\u865a\u62df\u5730\u5740\u7a7a\u95f4\u7684\u5212\u5206\u601d\u60f3\u3002<\/p>\n<h4>2.2 \u683c\u5f0f\u5316\u7684\u771f\u76f8&#xff1a;\u4e0d\u662f\u6e05\u7a7a&#xff0c;\u800c\u662f\u201c\u753b\u683c\u5b50\u201d<\/h4>\n<p>\u5f88\u591a\u4eba\u4ee5\u4e3a\u683c\u5f0f\u5316\u5c31\u662f\u64e6\u9664\u6570\u636e\u3002\u5b9e\u9645\u4e0a\u683c\u5f0f\u5316\u6839\u672c\u4e0d\u78b0\u4f60\u7684\u6570\u636e\u5185\u5bb9&#xff0c;\u5b83\u53ea\u662f\u5411\u5206\u533a\u5199\u5165\u6587\u4ef6\u7cfb\u7edf\u7684\u7ba1\u7406\u4fe1\u606f&#xff0c;\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u8d85\u7ea7\u5757&#xff08;Super Block&#xff09;<\/li>\n<li>\u7ec4\u63cf\u8ff0\u7b26\u8868&#xff08;GDT&#xff09;<\/li>\n<li>Inode \u4f4d\u56fe \/ Block \u4f4d\u56fe&#xff08;\u6e05\u96f6&#xff0c;\u6807\u8bb0\u5168\u90e8\u4e3a\u7a7a\u95f2&#xff09;<\/li>\n<li>\u7136\u540e\u6309\u89c4\u5219\u5212\u5206\u51fa \u5757\u7ec4&#xff08;Block Group&#xff09;<\/li>\n<\/ul>\n<p>&#x1f4a1; \u96f6\u788e\u77e5\u8bc6\u70b9&#xff1a;\u5220\u9664\u6587\u4ef6\u4e4b\u6240\u4ee5\u201c\u79d2\u5220\u201d&#xff0c;\u5c31\u662f\u56e0\u4e3a\u7cfb\u7edf\u53ea\u9700\u8981\u628a\u4f4d\u56fe\u5bf9\u5e94\u6bd4\u7279\u4f4d\u6e05\u96f6&#xff0c;\u6570\u636e\u5757\u672c\u8eab\u8fde\u78b0\u90fd\u4e0d\u78b0\u3002\u8fd9\u4e5f\u89e3\u91ca\u4e86\u4e3a\u4ec0\u4e48\u8bef\u5220\u540e\u53ea\u8981\u4e0d\u518d\u5199\u5165\u65b0\u6587\u4ef6&#xff0c;\u6570\u636e\u662f\u53ef\u4ee5\u6062\u590d\u7684\u2014\u2014\u90a3\u4e9b\u4f4d\u56fe\u53ea\u662f\u88ab\u6807\u8bb0\u4e3a\u201c\u53ef\u7528\u201d&#xff0c;\u539f\u6570\u636e\u8fd8\u5728\u90a3\u91cc\u3002<\/p>\n<h4>2.3 \u4e00\u4e2a\u5757\u7ec4\u7684\u89e3\u5256\u56fe&#xff08;Ext2&#xff09;<\/h4>\n<p>\u8001\u5e08\u53cd\u590d\u5f3a\u8c03&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u4ee5\u5206\u533a\u4e3a\u8f7d\u4f53&#xff08;\u6587\u4ef6\u7cfb\u7edf\u4f9d\u8d56\u4e8e\u5206\u533a\u4f5c\u4e3a\u5176\u7269\u7406\u8f7d\u4f53&#xff0c;\u5206\u533a\u63d0\u4f9b\u4e86\u4e00\u5757\u72ec\u7acb\u7684\u5b58\u50a8\u7a7a\u95f4&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u5219\u5728\u6b64\u4e4b\u4e0a\u6784\u5efa\u903b\u8f91\u7ed3\u6784\u4ee5\u7ba1\u7406\u6570\u636e&#xff09;&#xff0c;\u7814\u7a76\u900f\u5206\u533a\u5185\u4e00\u4e2a\u5757\u7ec4&#xff0c;\u5c31\u7814\u7a76\u900f\u4e86\u6574\u4e2a\u5206\u533a\u3002\u4e00\u4e2a\u5757\u7ec4\u5305\u542b\u4ee5\u4e0b\u6838\u5fc3\u7ed3\u6784&#xff1a;<\/p>\n<table>\n<tr>\u7ed3\u6784\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>Super Block<\/td>\n<td>\u63cf\u8ff0\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u7684\u5b8f\u89c2\u4fe1\u606f&#xff1a;inode \u603b\u6570\u3001block \u603b\u6570\u3001\u5757\u5927\u5c0f\u3001\u6700\u8fd1\u5199\u5165\u65f6\u95f4\u7b49\u3002\u6ce8\u610f&#xff1a;\u4e3a\u4e86\u9632\u5355\u70b9\u6545\u969c&#xff0c;\u8d85\u7ea7\u5757\u4f1a\u5728\u591a\u4e2a\u5757\u7ec4\u4e2d\u505a\u5907\u4efd&#xff0c;\u5185\u5bb9\u5b8c\u5168\u76f8\u540c\u3002\u4e00\u65e6\u67d0\u4efd\u635f\u574f&#xff0c;\u53ef\u4ee5\u7528\u5176\u4ed6\u7684\u6062\u590d\u3002<\/td>\n<\/tr>\n<tr>\n<td>GDT&#xff08;Group Descriptor Table&#xff09;<\/td>\n<td>\u63cf\u8ff0\u5f53\u524d\u5757\u7ec4\u7684\u8be6\u7ec6\u4fe1\u606f&#xff1a;inode \u8868\u4ece\u54ea\u91cc\u5f00\u59cb\u3001data block \u4ece\u54ea\u91cc\u5f00\u59cb\u3001\u7a7a\u95f2 inode \u6570\u3001\u7a7a\u95f2\u6570\u636e\u5757\u6570\u7b49\u3002<\/td>\n<\/tr>\n<tr>\n<td>Block Bitmap<\/td>\n<td>\u8bb0\u5f55\u6570\u636e\u5757\u5360\u7528\u60c5\u51b5\u30021 \u4e2a\u6bd4\u7279\u4f4d \u5bf9\u5e94 1 \u4e2a 4KB \u6570\u636e\u5757\u3002<\/td>\n<\/tr>\n<tr>\n<td>Inode Bitmap<\/td>\n<td>\u8bb0\u5f55 inode \u8282\u70b9\u5360\u7528\u60c5\u51b5\u3002<\/td>\n<\/tr>\n<tr>\n<td>Inode Table<\/td>\n<td>\u5b58\u653e\u6587\u4ef6\u5c5e\u6027&#xff08;\u6743\u9650\u3001UID\/GID\u3001\u5927\u5c0f\u3001\u65f6\u95f4\u6233\u3001\u6570\u636e\u5757\u6307\u9488\u7b49&#xff09;\u3002\u6587\u4ef6\u540d\u4e0d\u5728\u8fd9\u91cc&#xff01;<\/td>\n<\/tr>\n<tr>\n<td>Data Blocks<\/td>\n<td>\u5b58\u653e\u6587\u4ef6\u5b9e\u9645\u5185\u5bb9&#xff0c;\u4ee5 4KB \u4e3a\u5355\u4f4d\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923063249-6ab37291e5776.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>\u5173\u4e8e Inode \u7684\u51e0\u4e2a\u96f6\u788e\u7ec6\u8282&#xff1a;<\/h5>\n<ul>\n<li>\u56fa\u5b9a\u5927\u5c0f&#xff1a;\u5728 Ext2\/3\/4 \u4e2d&#xff0c;\u4e00\u4e2a inode \u901a\u5e38\u662f 128 \u5b57\u8282&#xff08;\u4e0d\u6392\u9664\u672a\u6765\u65b0\u6587\u4ef6\u7cfb\u7edf\u4f1a\u53d8\u5316&#xff09;\u3002<\/li>\n<li>\u5c40\u90e8\u6027\u539f\u7406&#xff1a;Inode Table \u4e5f\u662f\u4ee5 4KB \u4e3a\u5355\u4f4d\u5b58\u50a8\u7684\u3002\u4e00\u4e2a\u5757\u80fd\u88c5\u4e0b 4096 \/ 128 &#061; 32 \u4e2a inode\u3002\u6587\u4ef6\u7cfb\u7edf\u4e00\u6b21\u6027\u628a\u8fd9 32 \u4e2a inode \u8bfb\u8fdb\u5185\u5b58&#xff0c;\u56e0\u4e3a\u77ed\u65f6\u95f4\u5185\u521b\u5efa\u7684\u6587\u4ef6\u5f80\u5f80\u5177\u6709\u5173\u8054\u6027&#xff0c;\u540e\u7eed\u8bbf\u95ee\u5f88\u53ef\u80fd\u547d\u4e2d\u7f13\u5b58\u3002<\/li>\n<li>\u5168\u5c40\u552f\u4e00&#xff1a;inode \u7f16\u53f7\u548c data block \u7f16\u53f7\u662f\u5728\u5206\u533a\u5185\u5168\u5c40\u552f\u4e00\u7684&#xff0c;\u53ef\u4ee5\u8de8\u5757\u7ec4&#xff0c;\u4f46\u7edd\u5bf9\u4e0d\u80fd\u8de8\u5206\u533a\u3002\u4e0d\u540c\u5206\u533a\u53ef\u4ee5\u5404\u81ea\u4ece 0 \u5f00\u59cb\u7f16\u53f7\u3002&#xff08;\u5206\u533a&#xff1a;\u56fd\u5bb6&#xff1b;\u5757\u7ec4&#xff1a;\u7701\u5e02&#xff1b;\u56fd\u5bb6\u5bf9\u56fd\u5bb6&#xff0c;\u7ba1\u7406\u65b9\u5f0f\u662f\u4e0d\u901a\u7684&#xff0c;\u56fd\u5bb6\u5185\u5bf9\u7701\u5e02\u7684\u7ba1\u7406\u662f\u76f8\u901a\u7684&#xff09;<\/li>\n<li>\u5b9a\u4f4d\u516c\u5f0f&#xff1a;\u7ed9\u5b9a\u4e00\u4e2a inode \u7f16\u53f7&#xff0c;\u901a\u8fc7\u9664\u6cd5 &#043; \u53d6\u6a21\u5373\u53ef\u7b97\u51fa\u5b83\u5728\u54ea\u4e2a\u5757\u7ec4\u3001\u5728\u5757\u7ec4\u5185\u7684\u54ea\u4e2a\u4f4d\u7f6e\u3002\u6570\u636e\u5757\u540c\u7406\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e09\u3001\u76ee\u5f55\u7684\u672c\u8d28\u4e0e\u8def\u5f84\u89e3\u6790&#xff1a;\u6587\u4ef6\u540d\u53bb\u54ea\u4e86&#xff1f;<\/h3>\n<h4>3.1 \u76ee\u5f55\u4e5f\u662f\u201c\u666e\u901a\u6587\u4ef6\u201d<\/h4>\n<p>\u8fd9\u662f\u672c\u7ae0\u8282\u6700\u5177\u98a0\u8986\u6027\u7684\u8ba4\u77e5\u4e4b\u4e00&#xff1a;<\/p>\n<p>\u5728\u78c1\u76d8\u5c42\u9762&#xff0c;\u6839\u672c\u6ca1\u6709\u201c\u76ee\u5f55\u201d\u8fd9\u4e2a\u6982\u5ff5\u3002\u78c1\u76d8\u4e0a\u53ea\u6709 inode \u548c data block \u4e24\u79cd\u4e1c\u897f\u3002<\/p>\n<p>\u76ee\u5f55\u4e0e\u666e\u901a\u6587\u4ef6\u7684\u5b58\u50a8\u65b9\u5f0f\u5b8c\u5168\u4e00\u6837&#xff1a;<\/p>\n<ul>\n<li>\u76ee\u5f55\u6709\u81ea\u5df1\u7684 inode&#xff08;\u91cc\u9762\u5b58\u6743\u9650\u3001\u7c7b\u578b\u7b49\u5c5e\u6027&#xff09;\u3002<\/li>\n<li>\u76ee\u5f55\u6709\u81ea\u5df1\u7684 data block\u3002<\/li>\n<\/ul>\n<p>\u552f\u4e00\u4e0d\u540c\u7684\u662f\u5185\u5bb9&#xff1a;\u76ee\u5f55\u7684\u6570\u636e\u5757\u91cc\u5b58\u50a8\u7684\u4e0d\u662f\u666e\u901a\u6587\u672c\u6216\u4e8c\u8fdb\u5236&#xff0c;\u800c\u662f\u4e00\u5f20**\u201c\u6587\u4ef6\u540d \u2192 inode \u7f16\u53f7\u201d\u7684\u6620\u5c04\u8868**\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48&#xff1a;<\/p>\n<ul>\n<li>\u6587\u4ef6\u540d\u4e0d\u4fdd\u5b58\u5728\u6587\u4ef6\u7684 inode \u4e2d&#xff08;\u56e0\u4e3a\u6587\u4ef6\u540d\u8981\u7528\u6765\u5f53\u7d22\u5f15&#xff09;&#xff01;\u6587\u4ef6\u540d\u4fdd\u5b58\u5728\u5b83\u6240\u5c5e\u76ee\u5f55\u7684\u6570\u636e\u5757\u91cc\u3002<\/li>\n<li>\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u4e0b&#xff0c;\u6587\u4ef6\u540d\u4e0d\u80fd\u91cd\u590d&#xff08;\u6620\u5c04\u8868\u7684 key \u5fc5\u987b\u552f\u4e00&#xff09;&#xff08;\u8fd9\u4e5f\u5c31\u662f\u4e3a\u4ec0\u4e48\u4f60\u5728\u76f8\u540c\u76ee\u5f55\u4e0b&#xff0c;\u65b0\u5efa\u6587\u4ef6&#xff0c;\u7cfb\u7edf\u4f1a\u7ed9\u51fa\u201c\u65b0\u5efa\u6587\u4ef6\u201d\u3001\u201c\u65b0\u5efa\u6587\u4ef61\u201d\u3001\u201c\u65b0\u5efa\u6587\u4ef62\u201d\u2026&#xff09;\u3002<\/li>\n<\/ul>\n<h4>3.2 \u627e\u6587\u4ef6\u5fc5\u987b\u4ece\u6839\u76ee\u5f55\u201c\u9010\u7ea7\u89e3\u6790\u201d<\/h4>\n<p>\u65e2\u7136\u6587\u4ef6\u540d\u6563\u843d\u5728\u5404\u7ea7\u76ee\u5f55\u91cc&#xff0c;\u90a3\u8bbf\u95ee\u6587\u4ef6\u5c31\u5fc5\u987b\u4ece\u6839\u76ee\u5f55\u5f00\u59cb\u201c\u5c42\u5c42\u63ed\u5f00\u201d&#xff1a;<\/p>\n<li>\u7cfb\u7edf\u9ed8\u8ba4\u5728\u5f00\u673a\u65f6\u5c31\u56fa\u5b9a\u6253\u5f00\u4e86\u6839\u76ee\u5f55\u3002<\/li>\n<li>\u4f60\u63d0\u4f9b\u6587\u4ef6\u540d&#xff08;\u5982 code.c&#xff09;&#xff0c;\u8fdb\u7a0b PCB \u63d0\u4f9b\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55 cwd&#xff08;Current Working Directory&#xff09;\u3002<\/li>\n<li>\u4e24\u8005\u62fc\u63a5\u6210\u5b8c\u6574\u8def\u5f84&#xff08;\u5982 \/home\/whb\/lesson21\/code.c&#xff09;\u3002<\/li>\n<li>\u64cd\u4f5c\u7cfb\u7edf\u4ece\u6839\u76ee\u5f55\u5f00\u59cb&#xff0c;\u8bfb\u53d6\u5176 data block&#xff0c;\u627e\u5230 home \u7684 inode&#xff1b;\u518d\u6253\u5f00 home&#xff0c;\u627e\u5230 whb \u7684 inode\u2026\u2026\u76f4\u5230\u6700\u7ec8\u627e\u5230 code.c \u7684 inode\u3002<\/li>\n<p>\u4e0b\u9762\u6211\u4eec\u628a\u7b2c 4 \u6b65\u62c6\u5f00&#xff0c;\u7528 \/home\/whb\/lesson21\/code.c \u8fd9\u4e2a\u8def\u5f84&#xff0c;\u4e00\u6b65\u6b65\u770b\u64cd\u4f5c\u7cfb\u7edf\u5230\u5e95\u505a\u4e86\u4ec0\u4e48&#xff1a;<\/p>\n<li>\u6253\u5f00\u6839\u76ee\u5f55 \/&#xff1a;\u7cfb\u7edf\u5728\u5f00\u673a\u65f6\u5c31\u5df2\u7ecf\u628a\u6839\u76ee\u5f55\u7684 inode \u5e38\u9a7b\u5185\u5b58&#xff08;\u6839\u76ee\u5f55 inode \u7f16\u53f7\u56fa\u5b9a&#xff0c;\u5982 Ext2 \u4e2d\u901a\u5e38\u662f 2&#xff09;\u3002\u62ff\u5230\u6839\u76ee\u5f55 inode \u540e&#xff0c;\u8bfb\u53d6\u5b83\u7684 data block&#xff0c;\u5f97\u5230\u4e00\u5f20\u6620\u5c04\u8868&#xff0c;\u91cc\u9762\u8bb0\u5f55\u4e86 home \u8fd9\u4e2a\u6587\u4ef6\u540d\u5bf9\u5e94\u7684 inode \u7f16\u53f7&#xff08;\u6bd4\u5982 128&#xff09;\u3002<\/li>\n<li>\u8fdb\u5165 home&#xff1a;\u7cfb\u7edf\u62ff\u7740 inode \u7f16\u53f7 128&#xff0c;\u53bb Inode Table \u91cc\u8bfb\u51fa home \u76ee\u5f55\u7684 inode&#xff08;\u91cc\u9762\u5b58\u6743\u9650\u3001\u5927\u5c0f\u7b49\u5c5e\u6027&#xff09;&#xff0c;\u518d\u8bfb\u53d6 home \u7684 data block&#xff0c;\u5f97\u5230\u7b2c\u4e8c\u5f20\u6620\u5c04\u8868&#xff0c;\u627e\u5230 whb \u5bf9\u5e94\u7684 inode \u7f16\u53f7&#xff08;\u6bd4\u5982 256&#xff09;\u3002<\/li>\n<li>\u8fdb\u5165 whb&#xff1a;\u540c\u7406&#xff0c;\u8bfb\u51fa whb \u7684 inode&#xff0c;\u8bfb\u53d6\u5176 data block&#xff0c;\u627e\u5230 lesson21 \u5bf9\u5e94\u7684 inode \u7f16\u53f7&#xff08;\u6bd4\u5982 384&#xff09;\u3002<\/li>\n<li>\u8fdb\u5165 lesson21&#xff1a;\u7ee7\u7eed\u8bfb\u51fa lesson21 \u7684 inode&#xff0c;\u8bfb\u53d6\u5176 data block&#xff0c;\u627e\u5230 code.c \u5bf9\u5e94\u7684 inode \u7f16\u53f7&#xff08;\u6bd4\u5982 512&#xff09;\u3002<\/li>\n<li>\u547d\u4e2d\u76ee\u6807&#xff1a;\u6700\u540e\u8bfb\u51fa code.c \u7684 inode&#xff0c;\u91cc\u9762\u5b58\u7740\u5b83\u7684\u6743\u9650\u3001\u5927\u5c0f\u3001\u65f6\u95f4\u6233&#xff0c;\u4ee5\u53ca\u6307\u5411\u6570\u636e\u5757\u7684\u6307\u9488\u6570\u7ec4\u3002\u987a\u7740\u6307\u9488\u5c31\u80fd\u8bfb\u5230 code.c \u7684\u5b9e\u9645\u5185\u5bb9\u3002<\/li>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u53ef\u4ee5\u7528\u4e0b\u9762\u8fd9\u5f20\u56fe\u76f4\u89c2\u8868\u793a&#xff1a;<\/p>\n<p>#mermaid-svg-BArhiz9fJ538vBc1{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-BArhiz9fJ538vBc1 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-BArhiz9fJ538vBc1 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-BArhiz9fJ538vBc1 .error-icon{fill:#552222;}#mermaid-svg-BArhiz9fJ538vBc1 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-BArhiz9fJ538vBc1 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-BArhiz9fJ538vBc1 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-BArhiz9fJ538vBc1 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-BArhiz9fJ538vBc1 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-BArhiz9fJ538vBc1 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-BArhiz9fJ538vBc1 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-BArhiz9fJ538vBc1 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-BArhiz9fJ538vBc1 .marker.cross{stroke:#333333;}#mermaid-svg-BArhiz9fJ538vBc1 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-BArhiz9fJ538vBc1 p{margin:0;}#mermaid-svg-BArhiz9fJ538vBc1 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-BArhiz9fJ538vBc1 .cluster-label text{fill:#333;}#mermaid-svg-BArhiz9fJ538vBc1 .cluster-label span{color:#333;}#mermaid-svg-BArhiz9fJ538vBc1 .cluster-label span p{background-color:transparent;}#mermaid-svg-BArhiz9fJ538vBc1 .label text,#mermaid-svg-BArhiz9fJ538vBc1 span{fill:#333;color:#333;}#mermaid-svg-BArhiz9fJ538vBc1 .node rect,#mermaid-svg-BArhiz9fJ538vBc1 .node circle,#mermaid-svg-BArhiz9fJ538vBc1 .node ellipse,#mermaid-svg-BArhiz9fJ538vBc1 .node polygon,#mermaid-svg-BArhiz9fJ538vBc1 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-BArhiz9fJ538vBc1 .rough-node .label text,#mermaid-svg-BArhiz9fJ538vBc1 .node .label text,#mermaid-svg-BArhiz9fJ538vBc1 .image-shape .label,#mermaid-svg-BArhiz9fJ538vBc1 .icon-shape .label{text-anchor:middle;}#mermaid-svg-BArhiz9fJ538vBc1 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-BArhiz9fJ538vBc1 .rough-node .label,#mermaid-svg-BArhiz9fJ538vBc1 .node .label,#mermaid-svg-BArhiz9fJ538vBc1 .image-shape .label,#mermaid-svg-BArhiz9fJ538vBc1 .icon-shape .label{text-align:center;}#mermaid-svg-BArhiz9fJ538vBc1 .node.clickable{cursor:pointer;}#mermaid-svg-BArhiz9fJ538vBc1 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-BArhiz9fJ538vBc1 .arrowheadPath{fill:#333333;}#mermaid-svg-BArhiz9fJ538vBc1 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-BArhiz9fJ538vBc1 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-BArhiz9fJ538vBc1 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-BArhiz9fJ538vBc1 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-BArhiz9fJ538vBc1 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-BArhiz9fJ538vBc1 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-BArhiz9fJ538vBc1 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-BArhiz9fJ538vBc1 .cluster text{fill:#333;}#mermaid-svg-BArhiz9fJ538vBc1 .cluster span{color:#333;}#mermaid-svg-BArhiz9fJ538vBc1 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-BArhiz9fJ538vBc1 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-BArhiz9fJ538vBc1 rect.text{fill:none;stroke-width:0;}#mermaid-svg-BArhiz9fJ538vBc1 .icon-shape,#mermaid-svg-BArhiz9fJ538vBc1 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-BArhiz9fJ538vBc1 .icon-shape p,#mermaid-svg-BArhiz9fJ538vBc1 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-BArhiz9fJ538vBc1 .icon-shape .label rect,#mermaid-svg-BArhiz9fJ538vBc1 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-BArhiz9fJ538vBc1 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-BArhiz9fJ538vBc1 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-BArhiz9fJ538vBc1 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6839\u76ee\u5f55 \/ \u7684 inode&#xff08;\u7f16\u53f7 2&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 \/ \u7684 data block<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6620\u5c04\u8868&#xff1a;home \u2192 inode 128<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 home \u7684 inode&#xff08;128&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 home \u7684 data block<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6620\u5c04\u8868&#xff1a;whb \u2192 inode 256<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 whb \u7684 inode&#xff08;256&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 whb \u7684 data block<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6620\u5c04\u8868&#xff1a;lesson21 \u2192 inode 384<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 lesson21 \u7684 inode&#xff08;384&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 lesson21 \u7684 data block<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6620\u5c04\u8868&#xff1a;code.c \u2192 inode 512<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 code.c \u7684 inode&#xff08;512&#xff09;<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8bfb\u53d6 code.c \u7684 data block&#xff0c;\u5f97\u5230\u6587\u4ef6\u5185\u5bb9<\/p>\n<p><\/span><\/p>\n<p>&#x1f4a1; \u96f6\u788e\u77e5\u8bc6\u70b9&#xff1a;ls \u547d\u4ee4\u6253\u5370\u7684\u6bcf\u4e00\u884c&#xff0c;\u5176\u5b9e\u5c31\u662f\u628a\u76ee\u5f55 data block \u91cc\u7684\u6587\u4ef6\u540d&#xff0c;\u4e0e\u8be5\u6587\u4ef6 inode \u91cc\u7684\u5c5e\u6027&#xff08;\u6743\u9650\u3001\u5927\u5c0f\u3001\u65f6\u95f4&#xff09;\u62fc\u63a5\u540e\u5c55\u793a\u7ed9\u4f60\u3002\u7528 ls -li \u5c31\u80fd\u770b\u5230\u6bcf\u4e2a\u6587\u4ef6\u5bf9\u5e94\u7684 inode \u7f16\u53f7<\/p>\n<p>&#x1f4a1; \u96f6\u788e\u77e5\u8bc6\u70b9&#xff1a;\u6bcf\u4e00\u6b65\u201c\u8bfb\u76ee\u5f55\u7684 data block\u201d\u90fd\u662f\u4e00\u6b21\u78c1\u76d8 IO&#xff08;\u9664\u975e\u547d\u4e2d\u4e86 Dentry \u7f13\u5b58&#xff09;\u3002\u6240\u4ee5\u8def\u5f84\u8d8a\u6df1&#xff0c;\u9010\u7ea7\u89e3\u6790\u7684\u78c1\u76d8 IO \u5c31\u8d8a\u591a\u2014\u2014\u8fd9\u6b63\u662f\u540e\u9762\u7b2c\u56db\u90e8\u5206\u8981\u8bb2\u7684 Dentry \u7f13\u5b58\u8981\u89e3\u51b3\u7684\u95ee\u9898\u3002<\/p>\n<h4>3.3 \u5206\u533a\u5b9a\u4f4d&#xff1a;\u6302\u8f7d\u4e0e\u8def\u5f84\u524d\u7f00<\/h4>\n<p>\u8def\u5f84\u89e3\u6790\u8fd8\u89e3\u51b3\u4e86\u4e00\u4e2a\u5173\u952e\u95ee\u9898&#xff1a;\u5982\u4f55\u77e5\u9053\u6587\u4ef6\u5728\u54ea\u4e2a\u5206\u533a&#xff1f;<\/p>\n<ul>\n<li>\u5206\u533a\u5fc5\u987b**\u6302\u8f7d&#xff08;mount&#xff09;**\u5230\u67d0\u4e2a\u76ee\u5f55\u4e0b\u624d\u80fd\u88ab\u8bbf\u95ee\u3002<\/li>\n<li>\u6302\u8f7d\u662f\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5c06\u5b58\u50a8\u8bbe\u5907&#xff08;\u5982\u786c\u76d8\u3001U\u76d8\u3001\u5149\u76d8\u7b49&#xff09;\u6216\u6587\u4ef6\u7cfb\u7edf\u4e0e\u76ee\u5f55\u6811\u8fde\u63a5\u7684\u8fc7\u7a0b\u3002\u901a\u8fc7\u6302\u8f7d&#xff0c;\u7cfb\u7edf\u53ef\u4ee5\u8bbf\u95ee\u5b58\u50a8\u8bbe\u5907\u4e2d\u7684\u6570\u636e\u3002<\/li>\n<li>\u7cfb\u7edf\u901a\u8fc7\u8def\u5f84\u524d\u7f00\u5339\u914d\u6302\u8f7d\u70b9&#xff08;\u5f53\u6267\u884c\u6302\u8f7d\u64cd\u4f5c\u65f6&#xff0c;\u6307\u5b9a\u7684\u76ee\u5f55\u5373\u4e3a\u6302\u8f7d\u70b9&#xff09; \u6765\u786e\u5b9a\u6587\u4ef6\u5c5e\u4e8e\u54ea\u4e2a\u5206\u533a&#xff0c;\u9075\u5faa\u5c31\u8fd1\u539f\u5219\u3002<\/li>\n<\/ul>\n<p>\u8001\u5e08\u73b0\u573a\u505a\u4e86\u5b9e\u9a8c&#xff1a;<\/p>\n<p><span class=\"token comment\"># 1. \u7528 dd \u4f2a\u9020\u4e00\u4e2a 5MB \u7684\u201c\u78c1\u76d8\u955c\u50cf\u201d<\/span><br \/>\n<span class=\"token function\">dd<\/span> <span class=\"token assign-left variable\">if<\/span><span class=\"token operator\">&#061;<\/span>\/dev\/zero <span class=\"token assign-left variable\">of<\/span><span class=\"token operator\">&#061;<\/span>deepseek.img <span class=\"token assign-left variable\">bs<\/span><span class=\"token operator\">&#061;<\/span>1M <span class=\"token assign-left variable\">count<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">5<\/span><\/p>\n<p><span class=\"token comment\"># 2. \u683c\u5f0f\u5316\u4e3a ext4 \u6587\u4ef6\u7cfb\u7edf&#xff08;\u672c\u8d28\u662f\u5199\u5165 super block\u3001GDT\u3001\u4f4d\u56fe&#xff09;<\/span><br \/>\nmkfs.ext4 deepseek.img<\/p>\n<p><span class=\"token comment\"># 3. \u6302\u8f7d\u5230\u67d0\u4e2a\u76ee\u5f55&#xff08;\u9700\u8981 root&#xff09;<\/span><br \/>\n<span class=\"token function\">mount<\/span> <span class=\"token parameter variable\">-t<\/span> ext4 <span class=\"token parameter variable\">-o<\/span> loop deepseek.img .\/mnt<\/p>\n<p><span class=\"token comment\"># 4. \u6b64\u65f6\u8fdb\u5165 .\/mnt \u5c31\u76f8\u5f53\u4e8e\u8fdb\u5165\u4e86\u8fd9\u4e2a\u5206\u533a<\/span><br \/>\n<span class=\"token function\">touch<\/span> .\/mnt\/test.txt<\/p>\n<p><span class=\"token comment\"># 5. \u67e5\u770b\u6302\u8f7d\u72b6\u6001<\/span><br \/>\n<span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p><span class=\"token comment\"># 6. \u5378\u8f7d<\/span><br \/>\n<span class=\"token function\">umount<\/span> .\/mnt<\/p>\n<p>\u5f53\u4f60\u4ee5\u540e\u8bbf\u95ee \/home\/whb\/lesson21\/code.c \u65f6&#xff0c;\u7cfb\u7edf\u770b\u5230\u8def\u5f84\u524d\u7f00\u5339\u914d\u4e86\u67d0\u4e2a\u6302\u8f7d\u70b9&#xff0c;\u5c31\u80fd\u786e\u5b9a\u4f60\u8981\u64cd\u4f5c\u7684\u662f\u54ea\u4e2a\u5206\u533a&#xff0c;\u7136\u540e\u5728\u8be5\u5206\u533a\u5185\u7528 inode \u7f16\u53f7\u5b9a\u4f4d\u3002&#xff08;\u8be5\u76ee\u5f55\u4e0e\u8be5\u5206\u533a\u7ed1\u5b9a&#xff0c;\u5728\u76ee\u5f55\u5c42\u9762&#xff0c;\u8bbf\u95ee\u5230\u8fd9\u4e2a\u76ee\u5f55&#xff0c;\u76f8\u5f53\u4e8e\u8fdb\u5165\u4f60\u8fd9\u4e2a\u5206\u533a&#xff0c;\u53ef\u4ee5\u5f00\u59cb\u903b\u8f91\u7ba1\u7406\u4e86&#xff09;<\/p>\n<hr \/>\n<h3>\u56db\u3001Dentry \u7f13\u5b58&#xff1a;\u5185\u6838\u91cc\u7684\u201c\u591a\u53c9\u6811\u201d<\/h3>\n<p>\u5982\u679c\u6bcf\u6b21\u8bbf\u95ee\u6587\u4ef6\u90fd\u8981\u4ece\u6839\u76ee\u5f55\u5f00\u59cb\u505a\u78c1\u76d8 IO&#xff0c;\u6548\u7387\u592a\u4f4e\u4e86\u3002Linux \u7684\u89e3\u51b3\u65b9\u6848\u662f Dentry&#xff08;\u76ee\u5f55\u9879&#xff09;\u7f13\u5b58\u3002<\/p>\n<h4>4.1 \u5185\u5b58\u91cc\u7684\u8def\u5f84\u591a\u53c9\u6811<\/h4>\n<p>\u5185\u6838\u5728\u5185\u5b58\u4e2d\u7ef4\u62a4\u4e86\u4e00\u68f5\u52a8\u6001\u589e\u957f\u7684 struct dentry \u591a\u53c9\u6811&#xff1a;<\/p>\n<ul>\n<li>\u6839\u8282\u70b9\u662f\u6839\u76ee\u5f55\u3002<\/li>\n<li>\u4e2d\u95f4\u8282\u70b9\u662f\u76ee\u5f55\u3002<\/li>\n<li>\u53f6\u5b50\u8282\u70b9\u662f\u666e\u901a\u6587\u4ef6\u6216\u7a7a\u76ee\u5f55\u3002<\/li>\n<li>\u6bcf\u4e2a dentry \u7ed3\u70b9\u4ee3\u8868\u6587\u4ef6\u7cfb\u7edf\u4e2d\u4e00\u4e2a\u8def\u5f84\u8282\u70b9&#xff0c;\u4f8b\u5982\u76ee\u5f55\u6216\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p>\u5f53\u4f60\u7b2c\u4e00\u6b21\u8bbf\u95ee\u67d0\u4e2a\u8def\u5f84\u65f6&#xff0c;\u5185\u6838\u4ece\u78c1\u76d8\u9010\u7ea7\u52a0\u8f7d\u76ee\u5f55\u8282\u70b9&#xff0c;\u5728\u5185\u5b58\u4e2d\u6784\u5efa\u8fd9\u68f5\u6811\u7684\u5bf9\u5e94\u5206\u652f\u3002\u4e0b\u6b21\u518d\u8bbf\u95ee\u76f8\u540c\u8def\u5f84\u65f6&#xff0c;\u76f4\u63a5\u5728\u5185\u5b58\u6811\u4e2d\u201c\u547d\u4e2d\u201d&#xff0c;\u65e0\u9700\u78c1\u76d8 IO\u3002<\/p>\n<h4>4.2 \u5b9e\u9a8c&#xff1a;find \u7684\u201c\u7b2c\u4e00\u6b21\u6162&#xff0c;\u7b2c\u4e8c\u6b21\u5feb\u201d<\/h4>\n<p>\u8001\u5e08\u8bfe\u4e0a\u73b0\u573a\u6f14\u793a\u4e86&#xff1a;<\/p>\n<p><span class=\"token function\">find<\/span> \/ <span class=\"token parameter variable\">-name<\/span> <span class=\"token string\">&#034;code.c&#034;<\/span><br \/>\n<span class=\"token comment\"># \u7b2c\u4e00\u6b21\u6267\u884c&#xff1a;\u660e\u663e\u5361\u987f&#xff0c;\u56e0\u4e3a\u8def\u5f84\u6811\u4e0d\u5b8c\u5584<\/span><\/p>\n<p><span class=\"token function\">find<\/span> \/ <span class=\"token parameter variable\">-name<\/span> <span class=\"token string\">&#034;code.c&#034;<\/span><br \/>\n<span class=\"token comment\"># \u7b2c\u4e8c\u6b21\u6267\u884c&#xff1a;\u79d2\u51fa\u7ed3\u679c&#xff0c;\u56e0\u4e3a\u76ee\u5f55\u7ed3\u6784\u5df2\u7f13\u5b58\u5728\u5185\u5b58<\/span><\/p>\n<h4>4.3 struct dentry \u7684\u4e09\u91cd\u8eab\u4efd<\/h4>\n<p>struct dentry \u5728\u5185\u5b58\u4e2d\u975e\u5e38\u7cbe\u5999&#xff0c;\u5b83\u540c\u65f6\u5c5e\u4e8e\u4e09\u4e2a\u6570\u636e\u7ed3\u6784&#xff1a;<\/p>\n<li>\u591a\u53c9\u6811&#xff1a;\u7ef4\u62a4\u7236\u5b50\u76ee\u5f55\u5173\u7cfb&#xff0c;\u63d0\u4f9b\u8def\u5f84\u67e5\u627e\u3002<\/li>\n<li>LRU \u94fe\u8868&#xff1a;\u5f53\u5185\u5b58\u4e0d\u8db3\u65f6&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u6dd8\u6c70\u6700\u8fd1\u6700\u5c11\u4f7f\u7528\u7684\u8282\u70b9\u3002<\/li>\n<li>\u54c8\u5e0c\u8868&#xff08;d_hash list&#xff09;&#xff1a;\u52a0\u901f\u540c\u540d\u8282\u70b9\u67e5\u627e\u3002<\/li>\n<p>&#x1f4a1; \u6982\u5ff5&#xff1a;LRU \u662f Least Recently Used \u7684\u7f29\u5199&#xff0c;\u4e2d\u6587\u610f\u4e3a\u201c\u6700\u8fd1\u6700\u5c11\u4f7f\u7528\u201d\u3002\u5b83\u662f\u4e00\u79cd\u5e38\u7528\u7684\u7f13\u5b58\u6dd8\u6c70\u7b56\u7565&#xff0c;\u7528\u4e8e\u5728\u7f13\u5b58\u7a7a\u95f4\u6709\u9650\u7684\u60c5\u51b5\u4e0b\u51b3\u5b9a\u54ea\u4e9b\u6570\u636e\u5e94\u8be5\u88ab\u4fdd\u7559&#xff0c;\u54ea\u4e9b\u5e94\u8be5\u88ab\u79fb\u9664\u3002<br \/>\n\u539f\u7406&#xff1a;\u5f53\u7f13\u5b58\u8fbe\u5230\u5bb9\u91cf\u4e0a\u9650\u65f6&#xff0c;LRU \u7b56\u7565\u4f1a\u4f18\u5148\u6dd8\u6c70\u6700\u957f\u65f6\u95f4\u672a\u88ab\u8bbf\u95ee\u7684\u6570\u636e\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u5982\u679c\u67d0\u4e2a\u6570\u636e\u9879\u5728\u6700\u8fd1\u4e00\u6bb5\u65f6\u95f4\u5185\u6ca1\u6709\u88ab\u8bfb\u53d6\u6216\u5199\u5165&#xff0c;\u5b83\u5c31\u66f4\u6709\u53ef\u80fd\u88ab\u79fb\u9664\u3002<\/p>\n<p>&#x1f4a1; \u96f6\u788e\u77e5\u8bc6\u70b9&#xff1a;\u8001\u5e08\u63d0\u793a&#xff0c;Linux \u4e2d\u201c\u76ee\u5f55\u6811\u201d\u7684\u6982\u5ff5\u672c\u8d28\u4e0a\u662f\u5185\u5b58\u7ea7\u7684\u3002\u78c1\u76d8\u4e0a\u5e76\u6ca1\u6709\u4e00\u68f5\u6811&#xff0c;\u53ea\u6709\u4e00\u5806 inode \u548c data block\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u4ece inode \u5230\u6570\u636e\u5757&#xff1a;\u8d85\u5927\u6587\u4ef6\u5982\u4f55\u6620\u5c04&#xff1f;<\/h3>\n<p>\u627e\u5230 inode \u540e&#xff0c;\u5982\u4f55\u62ff\u5230\u6587\u4ef6\u5185\u5bb9&#xff1f;inode \u91cc\u6709\u4e00\u4e2a\u6570\u636e\u5757\u6307\u9488\u6570\u7ec4&#xff08;\u65e9\u671f\u5185\u6838\u7248\u672c Ext2 \u91cc\u662f 15 \u4e2a&#xff09;\u3002<\/p>\n<h4>5.1 \u76f4\u63a5\u7d22\u5f15\u4e0e\u95f4\u63a5\u7d22\u5f15<\/h4>\n<ul>\n<li>\u524d 12 \u4e2a\u6307\u9488&#xff1a;\u76f4\u63a5\u6307\u5411 data block&#xff0c;\u9002\u5408\u5c0f\u6587\u4ef6\u3002<\/li>\n<li>\u7b2c 13 \u4e2a\u6307\u9488&#xff1a;\u4e00\u7ea7\u95f4\u63a5\u7d22\u5f15\u3002\u5b83\u6307\u5411\u7684\u5757\u4e0d\u5b58\u6587\u4ef6\u5185\u5bb9&#xff0c;\u800c\u662f\u5b58\u4e0b\u4e00\u7ea7 data block \u7684\u5730\u5740&#xff08;4KB \u5757\u53ef\u4ee5\u5b58 1024 \u4e2a 4 \u5b57\u8282\u5730\u5740&#xff09;\u3002\u51ed\u7a7a\u591a\u51fa 1024 \u4e2a\u6570\u636e\u5757\u3002<\/li>\n<li>\u7b2c 14 \u4e2a\u6307\u9488&#xff1a;\u4e8c\u7ea7\u95f4\u63a5\u7d22\u5f15\u3002\u591a\u4e00\u5c42\u8df3\u8f6c&#xff0c;\u591a\u51fa 1024 \u00d7 1024 \u4e2a\u5757\u3002<\/li>\n<li>\u7b2c 15 \u4e2a\u6307\u9488&#xff1a;\u4e09\u7ea7\u95f4\u63a5\u7d22\u5f15\u3002\u518d\u591a\u4e00\u5c42&#xff0c;\u5bb9\u91cf\u8fbe\u5230 1024 \u00d7 1024 \u00d7 1024 \u00d7 4KB&#xff0c;\u6587\u4ef6\u4e0a\u9650\u6781\u5176\u5e9e\u5927\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923063251-6ab3729330364.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h4>5.2 \u8de8\u5757\u7ec4\u5b58\u50a8<\/h4>\n<p>\u5982\u679c\u6587\u4ef6\u7279\u522b\u5927&#xff0c;\u8d85\u8fc7\u4e86\u672c\u5757\u7ec4\u7684 data block \u6570\u91cf\u600e\u4e48\u529e&#xff1f;<\/p>\n<ul>\n<li>\u6ca1\u5173\u7cfb&#xff0c;\u6570\u636e\u5757\u53ef\u4ee5\u8de8\u5757\u7ec4\u5b58\u50a8\u3002&#xff08;\u90fd\u662f\u4e2d\u56fd\u7701\u5e02&#xff0c;\u53ef\u4ee5\u8de8\u7701\u8fd0\u4f5c&#xff09;<\/li>\n<li>\u53ea\u8981 inode \u7f16\u53f7\u548c block \u7f16\u53f7\u5728\u5206\u533a\u5185\u5168\u5c40\u552f\u4e00&#xff0c;\u7cfb\u7edf\u5c31\u80fd\u901a\u8fc7\u5168\u5c40\u7f16\u53f7\u627e\u5230\u5b83\u4eec\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u516d\u3001\u8f6f\u786c\u94fe\u63a5&#xff1a;\u770b\u4f3c\u76f8\u4f3c&#xff0c;\u672c\u8d28\u8fe5\u5f02<\/h3>\n<h4>6.1 \u8f6f\u94fe\u63a5&#xff08;Symbolic Link&#xff09;&#xff1a;\u72ec\u7acb\u7684\u201c\u5feb\u6377\u65b9\u5f0f\u201d<\/h4>\n<p>\u521b\u5efa\u547d\u4ee4&#xff1a;ln -s source(\u6e90\u6587\u4ef6\u6216\u76ee\u5f55) target(\u76ee\u6807\u8def\u5f84)<\/p>\n<ul>\n<li>\u72ec\u7acb\u6587\u4ef6&#xff1a;\u62e5\u6709\u72ec\u7acb\u7684 inode\u3002<\/li>\n<li>\u5185\u5bb9&#xff1a;data block \u91cc\u4fdd\u5b58\u7684\u662f\u76ee\u6807\u6587\u4ef6\u7684\u8def\u5f84\u5b57\u7b26\u4e32\u3002<\/li>\n<li>\u8de8\u5206\u533a&#xff1a;\u53ef\u4ee5\u8de8\u5206\u533a\u94fe\u63a5\u3002<\/li>\n<li>\u7279\u6027&#xff1a;\u5220\u9664\u6e90\u6587\u4ef6\u540e&#xff0c;\u8f6f\u94fe\u63a5\u53d8\u6210\u201c\u60ac\u7a7a&#xff08;Dangling&#xff09;\u201d\u72b6\u6001\u3002<\/li>\n<\/ul>\n<p>\u8001\u5e08\u7528 Windows \u5feb\u6377\u65b9\u5f0f\u505a\u4e86\u7c7b\u6bd4&#xff1a;\u8f6f\u94fe\u63a5\u5c31\u50cf\u684c\u9762\u7684 Chrome \u5feb\u6377\u65b9\u5f0f&#xff0c;\u53cc\u51fb\u65f6\u7cfb\u7edf\u53bb\u8bfb\u5b83\u6307\u5411\u7684\u76ee\u6807\u8def\u5f84&#xff0c;\u518d\u53bb\u5f00\u771f\u6b63\u7684\u7a0b\u5e8f\u3002<\/p>\n<h4>6.2 \u786c\u94fe\u63a5&#xff08;Hard Link&#xff09;&#xff1a;\u65b0\u589e\u4e00\u6761\u6620\u5c04\u8bb0\u5f55<\/h4>\n<p>\u521b\u5efa\u547d\u4ee4&#xff1a;ln source(\u6e90\u6587\u4ef6) target(\u76ee\u6807\u6587\u4ef6)<\/p>\n<ul>\n<li>\u975e\u72ec\u7acb\u6587\u4ef6&#xff1a;\u6ca1\u6709\u72ec\u7acb\u7684 inode&#xff0c;\u800c\u662f\u76ee\u5f55\u91cc\u65b0\u589e\u4e86\u4e00\u6761\u201c\u6587\u4ef6\u540d \u2192 \u76ee\u6807 inode\u201d\u7684\u6620\u5c04\u3002<\/li>\n<li>\u5171\u4eab inode&#xff1a;\u786c\u94fe\u63a5\u4e0e\u6e90\u6587\u4ef6\u5171\u7528\u540c\u4e00\u4e2a inode \u7f16\u53f7\u3002<\/li>\n<li>\u4e0d\u53ef\u8de8\u5206\u533a&#xff1a;\u56e0\u4e3a inode \u4e0d\u80fd\u8de8\u5206\u533a\u3002<\/li>\n<li>\u5f15\u7528\u8ba1\u6570&#xff1a;inode \u91cc\u6709\u4e00\u4e2a link count&#xff08;\u94fe\u63a5\u8ba1\u6570&#xff09;\u3002\u65b0\u5efa\u4e00\u4e2a\u786c\u94fe\u63a5&#xff0c;\u8ba1\u6570 &#043;1&#xff1b;\u5220\u9664\u4e00\u4e2a&#xff0c;\u8ba1\u6570 -1\u3002\u53ea\u6709\u5f53\u8ba1\u6570\u5f52\u96f6\u65f6&#xff0c;\u6587\u4ef6\u6570\u636e\u624d\u4f1a\u771f\u6b63\u88ab\u91ca\u653e\u3002<\/li>\n<\/ul>\n<h5>\u76ee\u5f55\u7684\u786c\u94fe\u63a5&#xff1a;. \u4e0e .. \u7684\u5965\u79d8<\/h5>\n<p>\u8fd9\u662f\u8bfe\u4e0a\u6700\u5de7\u5999\u7684\u77e5\u8bc6\u70b9\u4e4b\u4e00&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u4e2a\u76ee\u5f55\u4e0b\u9ed8\u8ba4\u90fd\u6709 .&#xff08;\u5f53\u524d\u76ee\u5f55&#xff09;\u548c ..&#xff08;\u4e0a\u7ea7\u76ee\u5f55&#xff09;\u3002<\/li>\n<li>. \u662f\u5f53\u524d\u76ee\u5f55\u81ea\u8eab\u7684\u786c\u94fe\u63a5&#xff0c;\u6240\u4ee5\u65b0\u5efa\u4e00\u4e2a\u7a7a\u76ee\u5f55&#xff0c;\u5b83\u7684\u94fe\u63a5\u6570\u662f 2&#xff08;\u4e00\u4e2a\u662f\u81ea\u5df1\u7684\u76ee\u5f55\u540d\u6620\u5c04&#xff0c;\u4e00\u4e2a\u662f .&#xff09;\u3002<\/li>\n<li>.. \u662f\u7236\u76ee\u5f55\u7684\u786c\u94fe\u63a5\u3002\u4f60\u5728\u7236\u76ee\u5f55\u4e0b\u6bcf\u65b0\u5efa\u4e00\u4e2a\u5b50\u76ee\u5f55&#xff0c;\u7236\u76ee\u5f55\u7684\u94fe\u63a5\u6570\u5c31\u4f1a &#043;1\u3002<\/li>\n<\/ul>\n<p>&#x1f4a1; \u5e94\u7528&#xff1a;\u4f60\u53ef\u4ee5\u901a\u8fc7 ls -ld \u76ee\u5f55\u540d \u770b\u5230\u94fe\u63a5\u6570&#xff0c;\u94fe\u63a5\u6570 &#8211; 2 &#061; \u8be5\u76ee\u5f55\u4e0b\u771f\u6b63\u7684\u5b50\u76ee\u5f55\u6570\u91cf&#xff08;\u4e0d\u5305\u62ec . \u548c ..&#xff09;\u3002\u8001\u5e08\u4e3e\u4f8b&#xff1a;\u6839\u76ee\u5f55\u7684\u94fe\u63a5\u6570\u662f 18&#xff0c;\u8bf4\u660e\u6839\u76ee\u5f55\u4e0b\u6709 16 \u4e2a\u4e00\u7ea7\u5b50\u76ee\u5f55\u3002<\/p>\n<h5>\u786c\u94fe\u63a5\u7684\u5b9e\u9645\u7528\u9014&#xff1a;\u79d2\u7ea7\u5907\u4efd<\/h5>\n<p>\u8001\u5e08\u4e3e\u4e86\u4e00\u4e2a\u201c\u9632\u8bef\u5220\u201d\u7684\u573a\u666f&#xff1a;<\/p>\n<p><span class=\"token function\">ln<\/span> code.c code.c.bak<br \/>\n<span class=\"token comment\"># \u73b0\u5728 code.c \u548c code.c.bak \u6307\u5411\u540c\u4e00\u4e2a inode<\/span><br \/>\n<span class=\"token comment\"># \u522b\u4eba\u6267\u884c rm code.c&#xff0c;\u4f60\u7684 code.c.bak \u4f9d\u7136\u80fd\u8bbf\u95ee\u5185\u5bb9<\/span><br \/>\n<span class=\"token comment\"># \u56e0\u4e3a inode \u7684 link count \u8fd8\u6ca1\u5f52\u96f6<\/span><\/p>\n<p>\u4e0d\u9700\u8981\u590d\u5236\u6587\u4ef6\u5185\u5bb9&#xff0c;\u4e0d\u5230\u4e00\u79d2\u5b8c\u6210\u5907\u4efd&#xff0c;\u8fd9\u5c31\u662f\u786c\u94fe\u63a5\u7684\u5de5\u7a0b\u4ef7\u503c\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u8bfe\u5802\u4ee3\u7801\u5b9e\u8bc1&#xff1a;\u4e0d\u53ea\u662f\u7406\u8bba<\/h3>\n<h4>7.1 \u89c2\u5bdf inode \u4e0e\u76ee\u5f55\u6620\u5c04<\/h4>\n<p><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-li<\/span><\/p>\n<p>\u8f93\u51fa\u793a\u4f8b&#xff08;\u8bfe\u4e0a\u6570\u636e&#xff09;&#xff1a;<\/p>\n<p>1321114 -rw-rw-r&#8211; 1 whb whb    0 Jan 15 15:01 code.c<br \/>\n1321115 drwxrwxr-x 2 whb whb 4096 Jan 15 15:02 dir<\/p>\n<p>\u5de6\u8fb9\u7b2c\u4e00\u5217\u5c31\u662f inode \u7f16\u53f7\u3002code.c \u7684 inode \u662f 1321114&#xff0c;dir \u7684\u662f 1321115\u3002<\/p>\n<h4>7.2 \u7528\u4ee3\u7801\u76f4\u63a5\u8bfb\u53d6\u76ee\u5f55\u5185\u5bb9<\/h4>\n<p>\u8001\u5e08\u51c6\u5907\u4e86\u4e00\u6bb5 readdir.c&#xff0c;\u6838\u5fc3\u903b\u8f91\u662f\u7528 opendir() \u6253\u5f00\u76ee\u5f55&#xff0c;\u518d\u7528 readdir() \u904d\u5386&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u8bfb\u53d6\u76ee\u5f55\u65f6&#xff0c;\u5b9e\u9645\u4e0a\u8bfb\u7684\u662f\u8be5\u76ee\u5f55 data block \u91cc\u7684<\/span><br \/>\n<span class=\"token comment\">\/\/ &#034;\u6587\u4ef6\u540d &#8211; inode \u7f16\u53f7&#034; \u6620\u5c04\u8868<\/span><br \/>\n<span class=\"token keyword\">while<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>entry <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">readdir<\/span><span class=\"token punctuation\">(<\/span>dir<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6587\u4ef6\u540d: %s, inode: %lu\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> entry<span class=\"token operator\">-&gt;<\/span>d_name<span class=\"token punctuation\">,<\/span> entry<span class=\"token operator\">-&gt;<\/span>d_ino<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd0\u884c\u540e\u4f60\u4f1a\u770b\u5230\u76ee\u5f55\u91cc\u6bcf\u4e2a\u6761\u76ee\u53ca\u5176 inode&#xff0c;\u76f4\u89c2\u9a8c\u8bc1\u4e86\u76ee\u5f55\u7684\u5b58\u50a8\u672c\u8d28\u3002<\/p>\n<p>opendir&#xff1a;opendir \u662f\u4e00\u4e2a\u5728\u7f16\u7a0b\u4e2d\u7528\u4e8e\u6253\u5f00\u76ee\u5f55\u7684\u51fd\u6570&#xff0c;\u5e38\u89c1\u4e8e C \u8bed\u8a00\u548c PHP \u7b49\u8bed\u8a00\u4e2d\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u76ee\u5f55\u5185\u5bb9&#xff0c;\u4ee5\u4fbf\u8bfb\u53d6\u5176\u4e2d\u7684\u6587\u4ef6\u6216\u5b50\u76ee\u5f55\u3002<br \/>\nreaddir&#xff1a;readdir \u662f\u4e00\u4e2a\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7528\u4e8e\u8bfb\u53d6\u76ee\u5f55\u5185\u5bb9\u7684\u51fd\u6570&#xff0c;\u5e38\u89c1\u4e8e C \u8bed\u8a00\u6807\u51c6\u5e93\u4ee5\u53ca\u7c7b Unix \u7cfb\u7edf&#xff08;\u5982 Linux\u3001macOS&#xff09;\u7684\u6587\u4ef6\u7cfb\u7edf\u7f16\u7a0b\u4e2d\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u904d\u5386\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u3002<\/p>\n<h4>7.3 \u8f6f\u786c\u94fe\u63a5\u5bf9\u6bd4\u5b9e\u9a8c<\/h4>\n<p><span class=\"token function\">ln<\/span> <span class=\"token parameter variable\">-s<\/span> code.c code-soft     <span class=\"token comment\"># \u8f6f\u94fe\u63a5<\/span><br \/>\n<span class=\"token function\">ln<\/span> code.c code-hard        <span class=\"token comment\"># \u786c\u94fe\u63a5<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-li<\/span><\/p>\n<p>\u89c2\u5bdf\u7ed3\u679c&#xff1a;<\/p>\n<ul>\n<li>code-soft \u4f1a\u6709\u4e00\u4e2a\u5168\u65b0\u7684 inode \u7f16\u53f7&#xff08;\u5982 1321116&#xff09;\u3002<\/li>\n<li>code-hard \u7684 inode \u7f16\u53f7\u4e0e code.c\u5b8c\u5168\u76f8\u540c&#xff08;\u5982\u90fd\u662f 1321114&#xff09;\u3002<\/li>\n<li>code.c \u7684\u786c\u94fe\u63a5\u6570\u4f1a\u4ece 1 \u53d8\u6210 2\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u603b\u7ed3&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u7684\u8bbe\u8ba1\u54f2\u5b66<\/h3>\n<p>\u6574\u8282\u8bfe\u4e0b\u6765&#xff0c;\u8001\u5e08\u59cb\u7ec8\u5728\u5f3a\u8c03\u4e00\u4e2a\u6838\u5fc3\u601d\u60f3\u2014\u2014\u201c\u5148\u63cf\u8ff0&#xff0c;\u518d\u7ec4\u7ec7\u201d&#xff1a;<\/p>\n<li>\u63cf\u8ff0&#xff1a;\u6587\u4ef6 &#061; \u5185\u5bb9&#xff08;Data Blocks&#xff09;&#043; \u5c5e\u6027&#xff08;Inode&#xff09;\u3002\u4e8c\u8005\u5206\u5f00\u5b58\u50a8&#xff0c;\u901a\u8fc7 inode \u7f16\u53f7\u5168\u5c40\u7ba1\u7406\u3002<\/li>\n<li>\u7ec4\u7ec7&#xff1a;\u76ee\u5f55\u4e0d\u7279\u6b8a&#xff0c;\u53ea\u662f\u5b58\u6620\u5c04\u8868\u7684\u6587\u4ef6&#xff1b;\u8def\u5f84\u4e0d\u795e\u79d8&#xff0c;\u53ea\u662f\u4ece\u6839\u76ee\u5f55\u5f00\u59cb\u7684\u9010\u7ea7\u67e5\u627e&#xff1b;\u5206\u533a\u4e0d\u590d\u6742&#xff0c;\u53ea\u662f\u6302\u8f7d\u5230\u76ee\u5f55\u6811\u4e0a\u7684\u4e00\u4e2a\u5206\u652f\u3002<\/li>\n<li>\u52a0\u901f&#xff1a;Dentry \u7f13\u5b58\u3001\u5757&#xff08;Block&#xff09;\u3001\u95f4\u63a5\u7d22\u5f15\u2026\u2026\u4e00\u5207\u90fd\u662f\u4e3a\u4e86\u5728\u7a7a\u95f4\u3001\u901f\u5ea6\u4e0e\u7a33\u5b9a\u6027\u4e4b\u95f4\u53d6\u5f97\u5e73\u8861\u3002<\/li>\n<p>\u5f53\u4f60\u4e0b\u4e00\u6b21\u5728 Linux \u4e0b\u6267\u884c ls\u3001find\u3001rm\u3001ln \u65f6&#xff0c;\u4f60\u7684\u8111\u6d77\u4e2d\u6d6e\u73b0\u7684\u4e0d\u518d\u53ea\u662f\u4e00\u884c\u884c\u547d\u4ee4&#xff0c;\u800c\u662f\u4e00\u6574\u5e45\u6e05\u6670\u7684\u753b\u5377&#xff1a;\u78c1\u5934\u5728 LBA \u4e0a\u5bfb\u5740\u3001\u5757\u7ec4\u91cc\u7684\u4f4d\u56fe\u5728\u7ffb\u8f6c\u3001dentry \u6811\u5728\u5185\u5b58\u4e2d\u751f\u957f\u3001inode \u7684\u94fe\u63a5\u8ba1\u6570\u5728\u6084\u6084\u53d8\u5316\u3002<\/p>\n<hr \/>\n<p>\u5e0c\u671b\u8fd9\u7bc7\u57fa\u4e8e\u8bfe\u5802\u7684\u535a\u5ba2&#xff0c;\u80fd\u5e2e\u4f60\u628a Linux \u6587\u4ef6\u7cfb\u7edf\u7684\u5e95\u5c42\u8109\u7edc\u5f7b\u5e95\u6253\u901a\u3002\u5982\u679c\u6709\u4efb\u4f55\u7591\u95ee&#xff0c;\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7ee7\u7eed\u63a2\u8ba8&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u539f\u7406\u5168\u89e3\u6790&#xff1a;\u4ece\u78c1\u76d8\u62bd\u8c61\u5230\u8f6f\u786c\u94fe\u63a5\u672c\u7ae0\u8282\u7684\u6838\u5fc3\u76ee\u6807\u53ea\u6709\u4e00\u4e2a&#xff1a;\u628a\u201c\u6587\u4ef6\u6ca1\u6709\u88ab\u6253\u5f00\u65f6\u662f\u600e\u4e48\u8eba\u5728\u78c1\u76d8\u4e0a\u7684\u201d\u8fd9\u4ef6\u4e8b\u5f7b\u5e95\u8bb2\u6e05\u695a\u3002\u5f53\u4f60\u771f\u6b63\u7406\u89e3 inode\u3001\u5757\u7ec4\u3001\u8def\u5f84\u7f13\u5b58\u548c\u94fe\u63a5\u8ba1\u6570\u540e&#xff0c;\u518d\u770b ls\u3001find\u3001ln&#xff0c;\u751a\u81f3\u8bef\u5220\u6062\u590d&#xff0c;\u90fd\u4f1a\u6709\u5b8c\u5168\u4e0d\u540c\u7684\u8ba4\u77e5\u3002\u4e00\u3001\u4ece\u7269\u7406\u78c1\u76d8\u5230\u903b\u8f91\u62bd\u8c61&#xff1a;\u4e00\u5207\u6e90\u4e8e\u201c\u89e3\u8026\u201d<br \/>\n1.1 \u78c1\u76d8\u7684\u7269\u7406\u4e16\u754c<br \/>\n\u5728\u62c6\u5f00\u6587\u4ef6\u7cfb\u7edf\u8fd9\u4e2a\u201c\u8f6f\u4ef6\u5c42\u201d\u4e4b\u524d&#xff0c;\u8001\u5e08\u5148\u7528\u673a\u68b0\u78c1\u76d8\u7684\u7269\u7406\u7ed3<\/p>\n","protected":false},"author":2,"featured_media":109181,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11653,58,259,305,442,44],"topic":[],"class_list":["post-109183","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-11653","tag-linux","tag-unix","tag-305","tag-442","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/109183.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Linux\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u539f\u7406\u5168\u89e3\u6790&#xff1a;\u4ece\u78c1\u76d8\u62bd\u8c61\u5230\u8f6f\u786c\u94fe\u63a5\u672c\u7ae0\u8282\u7684\u6838\u5fc3\u76ee\u6807\u53ea\u6709\u4e00\u4e2a&#xff1a;\u628a\u201c\u6587\u4ef6\u6ca1\u6709\u88ab\u6253\u5f00\u65f6\u662f\u600e\u4e48\u8eba\u5728\u78c1\u76d8\u4e0a\u7684\u201d\u8fd9\u4ef6\u4e8b\u5f7b\u5e95\u8bb2\u6e05\u695a\u3002\u5f53\u4f60\u771f\u6b63\u7406\u89e3 inode\u3001\u5757\u7ec4\u3001\u8def\u5f84\u7f13\u5b58\u548c\u94fe\u63a5\u8ba1\u6570\u540e&#xff0c;\u518d\u770b ls\u3001find\u3001ln&#xff0c;\u751a\u81f3\u8bef\u5220\u6062\u590d&#xff0c;\u90fd\u4f1a\u6709\u5b8c\u5168\u4e0d\u540c\u7684\u8ba4\u77e5\u3002\u4e00\u3001\u4ece\u7269\u7406\u78c1\u76d8\u5230\u903b\u8f91\u62bd\u8c61&#xff1a;\u4e00\u5207\u6e90\u4e8e\u201c\u89e3\u8026\u201d 1.1 \u78c1\u76d8\u7684\u7269\u7406\u4e16\u754c \u5728\u62c6\u5f00\u6587\u4ef6\u7cfb\u7edf\u8fd9\u4e2a\u201c\u8f6f\u4ef6\u5c42\u201d\u4e4b\u524d&#xff0c;\u8001\u5e08\u5148\u7528\u673a\u68b0\u78c1\u76d8\u7684\u7269\u7406\u7ed3\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109183.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T06:32:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923063249-6ab37291e5776.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109183.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109183.html\",\"name\":\"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-23T06:32:52+00:00\",\"dateModified\":\"2026-09-23T06:32:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109183.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109183.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109183.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/109183.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Linux\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u539f\u7406\u5168\u89e3\u6790&#xff1a;\u4ece\u78c1\u76d8\u62bd\u8c61\u5230\u8f6f\u786c\u94fe\u63a5\u672c\u7ae0\u8282\u7684\u6838\u5fc3\u76ee\u6807\u53ea\u6709\u4e00\u4e2a&#xff1a;\u628a\u201c\u6587\u4ef6\u6ca1\u6709\u88ab\u6253\u5f00\u65f6\u662f\u600e\u4e48\u8eba\u5728\u78c1\u76d8\u4e0a\u7684\u201d\u8fd9\u4ef6\u4e8b\u5f7b\u5e95\u8bb2\u6e05\u695a\u3002\u5f53\u4f60\u771f\u6b63\u7406\u89e3 inode\u3001\u5757\u7ec4\u3001\u8def\u5f84\u7f13\u5b58\u548c\u94fe\u63a5\u8ba1\u6570\u540e&#xff0c;\u518d\u770b ls\u3001find\u3001ln&#xff0c;\u751a\u81f3\u8bef\u5220\u6062\u590d&#xff0c;\u90fd\u4f1a\u6709\u5b8c\u5168\u4e0d\u540c\u7684\u8ba4\u77e5\u3002\u4e00\u3001\u4ece\u7269\u7406\u78c1\u76d8\u5230\u903b\u8f91\u62bd\u8c61&#xff1a;\u4e00\u5207\u6e90\u4e8e\u201c\u89e3\u8026\u201d 1.1 \u78c1\u76d8\u7684\u7269\u7406\u4e16\u754c \u5728\u62c6\u5f00\u6587\u4ef6\u7cfb\u7edf\u8fd9\u4e2a\u201c\u8f6f\u4ef6\u5c42\u201d\u4e4b\u524d&#xff0c;\u8001\u5e08\u5148\u7528\u673a\u68b0\u78c1\u76d8\u7684\u7269\u7406\u7ed3","og_url":"https:\/\/www.wsisp.com\/helps\/109183.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-23T06:32:52+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923063249-6ab37291e5776.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/109183.html","url":"https:\/\/www.wsisp.com\/helps\/109183.html","name":"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-23T06:32:52+00:00","dateModified":"2026-09-23T06:32:52+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109183.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109183.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109183.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u7cfb\u7edf\u3011\u3010\u6587\u4ef6\u7cfb\u7edf\u5e95\u5c42\u63ed\u79d8\uff1a\u8f6f\u786c\u94fe\u63a5\u4e0einode\u7684\u771f\u76f8\u3011\u6d41\u98df\u822c\u6295\u5582"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=109183"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109183\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/109181"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109183"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}