{"id":1451,"date":"2022-08-14T21:04:43","date_gmt":"2022-08-14T13:04:43","guid":{"rendered":"https:\/\/www.zhiwanyuzhou.com\/?p=1451"},"modified":"2022-08-15T20:26:46","modified_gmt":"2022-08-15T12:26:46","slug":"ubifs%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%ef%bc%88%e4%b8%80%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.zhiwanyuzhou.com\/index.php\/2022\/08\/14\/ubifs%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%ef%bc%88%e4%b8%80%ef%bc%89\/","title":{"rendered":"UBIFS\u6587\u4ef6\u7cfb\u7edf\uff08\u4e00\uff09"},"content":{"rendered":"\n<h2>\u4e00\u3001\u7b80\u4ecb<\/h2>\n\n\n\n<p>UBIFS(Unsorted Block Image File System)\u65e0\u6392\u5e8f\u533a\u5757\u56fe\u50cf\u6587\u4ef6\u7cfb\u7edf\uff0c\u7528\u4e8e\u88f8\u7684flash\u8bbe\u5907\uff0c\u4f5c\u4e3ajffs2\u7684\u540e\u7ee7\u6587\u4ef6\u7cfb\u7edf\u4e4b\u4e00\u3002UBIFS\u901a\u8fc7UBI\u5b50\u7cfb\u7edf\u5904\u7406\u4e0eMTD\u8bbe\u5907\u4e4b\u95f4\u52a8\u4f5c\u3002UBIFS\u6587\u4ef6\u7cfb\u7edf\u66f4\u9002\u5408NAND FLASH\u3002<\/p>\n\n\n\n<p>\u901a\u5e38UBIFS\u6587\u4ef6\u7cfb\u7edf\u7684\u4f7f\u7528\u6d89\u53ca\u5230\u4e09\u4e2a\u5b50\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<ul><li>UBIFS\u6587\u4ef6\u7cfb\u7edf<ul><li>\u53ef\u4ee5\u7406\u89e3\u4e3a\u7528\u6237\u5c42\uff0c\u5de5\u4f5c\u4e8eUBI\u4e4b\u4e0a\u3002<\/li><li>\u6bd4\u5982\u6211\u4eec\u8bbe\u5907\u4e2d\u6302\u8f7d\u53ef\u89c1\u7684\u5206\u533a\uff0c\u53ef\u4f7f\u7528mount\u547d\u4ee4\u67e5\u770b\u6302\u8f7d\u60c5\u51b5\u3002<\/li><\/ul><\/li><\/ul>\n\n\n\n<ul><li>UBI<ul><li>\u662fMTD\u8bbe\u5907\u7684\u9ad8\u5c42\u6b21\u8868\u793a\uff0c\u4e00\u822c\u7528\u6237\u5c42\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u505a\u5f00\u53d1\u5b9a\u5236\uff0c\u6bd4\u5982\u5347\u7ea7\uff0c\u901a\u8fc7ioctl\u63a7\u5236MTD\u8bbe\u5907\u7684\u8bfb\u5199\u3002<\/li><\/ul><\/li><\/ul>\n\n\n\n<ul><li>MTD\u5b50\u7cfb\u7edf<ul><li>\u63d0\u4f9bnand flash\u5e95\u5c42\u8bbf\u95ee\u63a5\u53e3\u3002<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>\u8fd9\u4e09\u4e2a\u5b50\u7cfb\u7edf\u7684\u5173\u7cfb\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"764\" height=\"437\" src=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-1.png\" alt=\"\" class=\"wp-image-1452\" srcset=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-1.png?v=1660357401 764w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-1-300x172.png?v=1660357401 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/><\/figure>\n\n\n\n<h2>\u4e8c\u3001\u51c6\u5907\u5de5\u4f5c<\/h2>\n\n\n\n<h4>1\u3001\u51c6\u5907\u76ee\u5f55<\/h4>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u4e3b\u8981\u662f\u4e3a\u4e86\u4e86\u89e3UBIFS\u6587\u4ef6\u7cfb\u7edf\u7684\u7ed3\u6784\uff0c\u9996\u5148\u6211\u4eec\u6765\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55rootfs\uff0c\u91cc\u9762\u5305\u542b001\u76ee\u5f55\uff0c002.txt\u6587\u4ef6\u5185\u5bb9\u4e3atest002\uff0c002.link\u4e3a001\/002.txt\u7684\u94fe\u63a5\uff0c\u8fd8\u5305\u542b\u4e00\u4e2a003\u76ee\u5f55\uff0c004.txt\u6587\u4ef6\u5185\u5bb9\u4e3atest004\uff0c005.txt\u6587\u4ef6\u5185\u5bb9\u4e3atest005\uff0c\u6587\u4ef6\u6811\u7ed3\u6784\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"538\" height=\"178\" src=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-2.png\" alt=\"\" class=\"wp-image-1454\" srcset=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-2.png?v=1660359088 538w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-2-300x99.png?v=1660359088 300w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/figure>\n\n\n\n<h4>2\u3001UBIFS\u6587\u4ef6\u7cfb\u7edf\u751f\u6210<\/h4>\n\n\n\n<p>\u4f7f\u7528\u547d\u4ee4mkfs.ubifs\u6253\u5305\u4e3a\u4e00\u4e2aUBIFS\u6587\u4ef6\u7cfb\u7edf\u6620\u50cf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>mkfs.ubifs -r rootfs -m 512 -e 128KiB -c 100 -o rootfs.ubifs<\/code><\/pre>\n\n\n\n<p>\u5e38\u7528\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<em><\/em><\/td><td>\u53c2\u6570<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>-r rootfs<\/td><td>\u6307\u5b9a\u6839\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u6811\u7684\u8def\u5f84\u4e3arootfs\/<\/td><\/tr><tr><td>2<\/td><td>-m 512<\/td><td>Nand Flash\u7684\u6700\u5c0f\u8bfb\u5199\u5355\u5143\uff0c\u4e00\u822c\u4e3apage size\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u4e3a512\u5b57\u8282<\/td><\/tr><tr><td>3<\/td><td>-e 128KiB<\/td><td>\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u5927\u5c0f\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u4e3a128KB<\/td><\/tr><tr><td>4<\/td><td>-c 100<\/td><td>\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u4e2a\u6570\uff0c\u4e0e\u5206\u533a\u5927\u5c0f\u6709\u5173\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u4e3a100\u4e2a<\/td><\/tr><tr><td>5<\/td><td>-o rootfs.ubifs<\/td><td>\u8f93\u51fa\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\u6587\u4ef6\u4e3arootfs.ubifs<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2>\u4e09\u3001UBIFS\u6587\u4ef6\u7cfb\u7edf\u7ed3\u6784\u5206\u6790<\/h2>\n\n\n\n<h4>1\u3001\u6574\u4f53\u5206\u6790<\/h4>\n\n\n\n<p>\u901a\u8fc7\u672c\u7ad9\u7684<a rel=\"noreferrer noopener\" href=\"https:\/\/zhiwanyuzhou.com\/multiple_analyse\/firmware\/\" target=\"_blank\">\u56fa\u4ef6\u5206\u6790\u5de5\u5177<\/a>\u53ef\u4ee5\u5206\u6790\u5185\u5bb9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"666\" src=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-3-1024x666.png?v=1660361321\" alt=\"\" class=\"wp-image-1455\" srcset=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-3-1024x666.png?v=1660361321 1024w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-3-300x195.png?v=1660361321 300w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-3-768x499.png?v=1660361321 768w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/08\/image-3.png?v=1660361321 1161w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u77e5\u6653rootfs.ubifs\u6587\u4ef6\u5206\u4e3a\u51e0\u5927\u5757\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x00000-0x20000<\/td><td>superblock node<\/td><\/tr><tr><td>2<\/td><td>0x20000-0x40000<\/td><td>master node<\/td><\/tr><tr><td>3<\/td><td>0x40000-0x1A0000<\/td><td>master node<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>2\u3001\u57fa\u7840\u5b9a\u4e49<\/h4>\n\n\n\n<p>\u6839\u636e<a rel=\"noreferrer noopener\" href=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" data-type=\"URL\" data-id=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" target=\"_blank\">\u6e90\u7801<\/a>\uff0c\u53ef\u4ee5\u5f97\u5230\u4e00\u4e9b\u57fa\u7840\u5b9a\u4e49\u3002<\/p>\n\n\n\n<p>\u8282\u70b9\u7c7b\u578b\uff08node type\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u503c<\/td><td>\u8282\u70b9\u7c7b\u578b<\/td><\/tr><tr><td>1<\/td><td>0x00<\/td><td>inode node<\/td><\/tr><tr><td>2<\/td><td>0x01<\/td><td>data node<\/td><\/tr><tr><td>3<\/td><td>0x02<\/td><td>directory entry node<\/td><\/tr><tr><td>4<\/td><td>0x03<\/td><td>extended attribute node<\/td><\/tr><tr><td>5<\/td><td>0x04<\/td><td>truncation node<\/td><\/tr><tr><td>6<\/td><td>0x05<\/td><td>padding node<\/td><\/tr><tr><td>7<\/td><td>0x06<\/td><td>superblock node<\/td><\/tr><tr><td>8<\/td><td>0x07<\/td><td>master node<\/td><\/tr><tr><td>9<\/td><td>0x08<\/td><td>LEB reference node<\/td><\/tr><tr><td>10<\/td><td>0x09<\/td><td>index node<\/td><\/tr><tr><td>11<\/td><td>0x0A<\/td><td>commit start node<\/td><\/tr><tr><td>12<\/td><td>0x0B<\/td><td>orphan node<\/td><\/tr><tr><td>13<\/td><td>0x0C<\/td><td>count of supported node types<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u538b\u7f29\u65b9\u5f0f\uff08default_compr\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u503c<\/td><td>\u538b\u7f29\u65b9\u5f0f<\/td><\/tr><tr><td>1<\/td><td>0x00<\/td><td>\u65e0<\/td><\/tr><tr><td>2<\/td><td>0x01<\/td><td>LZO<\/td><\/tr><tr><td>3<\/td><td>0x02<\/td><td>ZLIB<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>2\u3001superblock node\u5206\u6790<\/h4>\n\n\n\n<p>\u4f7f\u7528hexdump\u67e5\u770b\u751f\u6210\u7684rootfs.ubifs\u6587\u4ef6\u76840-0x1FFFF\u5b57\u8282\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00000000  31 18 10 06 2d d5 ad 8b  1b 00 00 00 00 00 00 00  |1...-...........|\n00000010  00 10 00 00 06 00 00 00  00 00 00 00 00 00 00 00  |................|\n00000020  00 02 00 00 00 00 02 00  0d 00 00 00 64 00 00 00  |............d...|\n00000030  00 00 16 00 00 00 00 00  04 00 00 00 02 00 00 00  |................|\n00000040  01 00 00 00 01 00 00 00  08 00 00 00 00 01 00 00  |................|\n00000050  04 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n00000060  00 00 00 00 00 00 00 00  00 ca 9a 3b 1d 06 68 06  |...........;..h.|\n00000070  bd 98 44 84 a0 fc f5 b0  b3 43 0f 76 00 00 00 00  |..D......C.v....|\n00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n*\n00001000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|\n*\n00020000  <\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" data-type=\"URL\" data-id=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" target=\"_blank\">\u6e90\u7801<\/a>\uff08struct ubifs_sb_node\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x00-0x03<\/td><td>UBIFS\u6807\u5fd7\uff0c\u503c\u4e3a0x06101831<\/td><\/tr><tr><td>2<\/td><td>0x04-0x07<\/td><td>CRC\uff0c\u503c\u4e3a0x8BADD52D<\/td><\/tr><tr><td>3<\/td><td>0x08-0x0F<\/td><td>sequence number\uff0c\u503c\u4e3a0x1B<\/td><\/tr><tr><td>4<\/td><td>0x10-0x13<\/td><td>\u5757\u957f\u5ea6\uff0c\u503c\u4e3a0x100<\/td><\/tr><tr><td>5<\/td><td>0x14<\/td><td>node type\uff0c\u503c\u4e3a0x06\uff0c\u8868\u793asuperblock node<\/td><\/tr><tr><td>6<\/td><td>0x15<\/td><td>node group type\uff0c\u503c\u4e3a0x00<\/td><\/tr><tr><td>7<\/td><td>0x16-0x17<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0x0000\uff0c\u524d0x18\u5b57\u8282\u4e3aubifs_ch\u7ed3\u6784\u4f53<\/td><\/tr><tr><td>8<\/td><td>0x18-0x19<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0x0000<\/td><\/tr><tr><td>9<\/td><td>0x1A<\/td><td>key\u7684hash\u7c7b\u578b\uff0c\u503c\u4e3a0x00<\/td><\/tr><tr><td>10<\/td><td>0x1B<\/td><td>key\u7684\u683c\u5f0f<\/td><\/tr><tr><td>11<\/td><td>0x1C-0x1F<\/td><td>flags<\/td><\/tr><tr><td>12<\/td><td>0x20-0x23<\/td><td>\u6700\u5c0fI\/O\u5355\u5143\u5927\u5c0f\uff0c\u503c\u4e3a0x100\u5b57\u8282\uff08512B\uff09<\/td><\/tr><tr><td>13<\/td><td>0x24-0x27<\/td><td>\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u5927\u5c0f\uff0c\u503c\u4e3a0x20000\u5b57\u8282\uff08128KB\uff09<\/td><\/tr><tr><td>14<\/td><td>0x28-0x2B<\/td><td>\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u4e2a\u6570\uff0c\u503c\u4e3a0x0D\u4e2a\uff0813\uff09<\/td><\/tr><tr><td>15<\/td><td>0x2C-0x2F<\/td><td>\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u6700\u5927\u4e2a\u6570\uff0c\u503c\u4e3a0x64\u4e2a\uff08100\uff09<\/td><\/tr><tr><td>16<\/td><td>0x30-0x37<\/td><td>buds\u6700\u5927\u6570\uff0c\u503c\u4e3a0x1600000\u4e2a<\/td><\/tr><tr><td>17<\/td><td>0x38-0x3B<\/td><td>\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u65e5\u5fd7\u5927\u5c0f\uff0c\u503c\u4e3a0x04\u5b57\u8282<\/td><\/tr><tr><td>18<\/td><td>0x3C-0x3F<\/td><td>\u7528\u4e8elprops table\u7684\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u4e2a\u6570\uff0c\u503c\u4e3a0x02<\/td><\/tr><tr><td>19<\/td><td>0x40-0x43<\/td><td>\u7528\u4e8erecording orphans\u7684\u903b\u8f91\u64e6\u9664\u5757\uff08LEB\uff09\u7684\u4e2a\u6570\uff0c\u503c\u4e3a0x01<\/td><\/tr><tr><td>20<\/td><td>0x44-0x47<\/td><td>journal heads\u7684\u4e2a\u6570\uff0c\u503c\u4e3a0x01<\/td><\/tr><tr><td>21<\/td><td>0x48-0x4B<\/td><td>tree fanout\uff0c\u503c\u4e3a0x08<\/td><\/tr><tr><td>22<\/td><td>0x4C-0x4F<\/td><td>\u5728LPT's save table\u7684LEB\u7684\u4e2a\u6570\uff0c\u503c\u4e3a0x100<\/td><\/tr><tr><td>23<\/td><td>0x50-0x53<\/td><td>UBIFS\u683c\u5f0f\u5316\u7248\u672c\uff0c\u503c\u4e3a0x04<\/td><\/tr><tr><td>24<\/td><td>0x54-0x55<\/td><td>\u9ed8\u8ba4\u538b\u7f29\u65b9\u5f0f\uff08default_compr\uff09\uff0c\u503c\u4e3a0x01\uff0c\u8868\u793aLZO\u538b\u7f29\u65b9\u5f0f<\/td><\/tr><tr><td>25<\/td><td>0x56-0x57<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0x0000<\/td><\/tr><tr><td>26<\/td><td>0x58-0x5B<\/td><td>\u4fdd\u7559\u6c60 UID\uff0c\u503c\u4e3a0x00000000<\/td><\/tr><tr><td>27<\/td><td>0x5C-0x5F<\/td><td>\u4fdd\u7559\u6c60 GID\uff0c\u503c\u4e3a0x00000000<\/td><\/tr><tr><td>28<\/td><td>0x60-0x67<\/td><td>\u4fdd\u7559\u6c60\u5927\u5c0f\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>29<\/td><td>0x68-0x6B<\/td><td>\u65f6\u95f4\u7c92\u5ea6\uff0c\u503c\u4e3a0x3B9ACA00 \uff081,000,000,000\uff09ns<\/td><\/tr><tr><td>30<\/td><td>0x6C-0x7B<\/td><td>UUID\uff0c\u503c\u4e3a1D066806BD984484A0FCF5B0B3430F76<\/td><\/tr><tr><td>31<\/td><td>0x7C-0x7F<\/td><td>UBIFS R\/O compatibility\u7248\u672c\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>32<\/td><td>0x80-0xFFF<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>3\u3001master node\u5206\u6790<\/h4>\n\n\n\n<p>\u4f7f\u7528hexdump\u67e5\u770b\u751f\u6210\u7684rootfs.ubifs\u6587\u4ef6\u76840x20000-0x3FFFF\u5b57\u8282\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00020000  31 18 10 06 98 0d 17 eb  1c 00 00 00 00 00 00 00  |1...............|\n00020010  00 02 00 00 07 00 00 00  46 00 00 00 00 00 00 00  |........F.......|\n00020020  00 00 00 00 00 00 00 00  02 00 00 00 03 00 00 00  |................|\n00020030  0c 00 00 00 80 01 00 00  44 00 00 00 0b 00 00 00  |........D.......|\n00020040  0c 00 00 00 00 02 00 00  c8 01 00 00 00 00 00 00  |................|\n00020050  00 f6 05 00 00 00 00 00  98 01 00 00 00 00 00 00  |................|\n00020060  a0 06 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n00020070  00 24 00 00 00 00 00 00  07 00 00 00 2a 00 00 00  |.$..........*...|\n00020080  07 00 00 00 00 02 00 00  07 00 00 00 36 00 00 00  |............6...|\n00020090  00 00 00 00 00 00 00 00  0a 00 00 00 01 00 00 00  |................|\n000200a0  01 00 00 00 0d 00 00 00  00 00 00 00 00 00 00 00  |................|\n000200b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n*\n00020200  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|\n*\n00040000<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" data-type=\"URL\" data-id=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" target=\"_blank\">\u6e90\u7801<\/a>\uff08struct ubifs_mst_node\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x20000-0x20003<\/td><td>UBIFS\u6807\u5fd7\uff0c\u503c\u4e3a0x06101831<\/td><\/tr><tr><td>2<\/td><td>0x20004-0x20007<\/td><td>CRC\uff0c\u503c\u4e3a0xEB170D98<\/td><\/tr><tr><td>3<\/td><td>0x20008-0x2000F<\/td><td>sequence number\uff0c\u503c\u4e3a0x1C<\/td><\/tr><tr><td>4<\/td><td>0x20010-0x20013<\/td><td>\u5757\u957f\u5ea6\uff0c\u503c\u4e3a0x200<\/td><\/tr><tr><td>5<\/td><td>0x20014<\/td><td>node type\uff0c\u503c\u4e3a0x06\uff0c\u8868\u793amaster node<\/td><\/tr><tr><td>6<\/td><td>0x20015<\/td><td>node group type\uff0c\u503c\u4e3a0x00<\/td><\/tr><tr><td>7<\/td><td>0x20016-0x20017<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0x0000\uff0c\u524d0x18\u5b57\u8282\u4e3aubifs_ch\u7ed3\u6784\u4f53<\/td><\/tr><tr><td>8<\/td><td>0x20018-0x2001F<\/td><td>\u7d22\u5f15\u4e2d\u7684\u6700\u9ad8\u7d22\u5f15\u8282\u70b9\u53f7\uff08highest_inum\uff09\uff0c\u503c\u4e3a0x46<\/td><\/tr><tr><td>9<\/td><td>0x20020-0x20027<\/td><td>commit number\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>10<\/td><td>0x20028-0x2002B<\/td><td>various flags\uff0c\u503c\u4e3a0x02<\/td><\/tr><tr><td>11<\/td><td>0x2002C-0x2002F<\/td><td>start of the log\uff0c\u503c\u4e3a0x03<\/td><\/tr><tr><td>12<\/td><td>0x20030-0x20033<\/td><td>\u6839\u7d22\u5f15\u8282\u70b9\u7684LEB\u7f16\u53f7\uff08root_lnum\uff09\uff0c\u503c\u4e3a0x0C<\/td><\/tr><tr><td>13<\/td><td>0x20034-0x20037<\/td><td>\u6839\u7d22\u5f15\u8282\u70b9\u7684LEB\u7f16\u53f7\u7684\u504f\u79fb\uff08root_offs\uff09\uff0c\u503c\u4e3a0x180<\/td><\/tr><tr><td>14<\/td><td>0x20038-0x2003B<\/td><td>\u6839\u7d22\u5f15\u8282\u70b9\u957f\u5ea6\uff08root_len\uff09\uff0c\u503c\u4e3a0x44<\/td><\/tr><tr><td>15<\/td><td>0x2003C-0x2003F<\/td><td>\u7528\u4e8e\u5783\u573e\u6536\u96c6\u7684\u4fdd\u7559LEB\uff08gc_lnum\uff09\uff0c\u503c\u4e3a0x0B<\/td><\/tr><tr><td>16<\/td><td>0x20040-0x20043<\/td><td>\u7d22\u5f15\u5934\u7684LEB\u7f16\u53f7\uff08ihead_lnum\uff09\uff0c\u503c\u4e3a0x0C<\/td><\/tr><tr><td>17<\/td><td>0x20044-0x20047<\/td><td>\u7d22\u5f15\u5934\u504f\u79fb\uff08ihead_offs\uff09\uff0c\u503c\u4e3a0x200<\/td><\/tr><tr><td>18<\/td><td>0x20048-0x2004F<\/td><td>\u95ea\u5b58\u4e0a\u7d22\u5f15\u7684\u5927\u5c0f\uff08index_size\uff09\uff0c\u503c\u4e3a0x1C8<\/td><\/tr><tr><td>19<\/td><td>0x20050-0x20057<\/td><td>\u603b\u53ef\u7528\u7a7a\u95f4\uff08total_free\uff09\uff0c\u503c\u4e3a0x5F600\u5b57\u8282<\/td><\/tr><tr><td>20<\/td><td>0x20058-0x2005F<\/td><td>\u603b\u5783\u573e\u7a7a\u95f4\uff08total_dirty\uff09\uff0c\u503c\u4e3a0x198\u5b57\u8282<\/td><\/tr><tr><td>21<\/td><td>0x20060-0x20067<\/td><td>\u603b\u5df2\u7528\u7a7a\u95f4\uff08total_used\uff09\uff0c\u503c\u4e3a0x6A0\u5b57\u8282<\/td><\/tr><tr><td>22<\/td><td>0x20068-0x2006F<\/td><td>\u603b\u65e0\u6548\u7a7a\u95f4\uff08total_dead\uff09\uff0c\u503c\u4e3a0\u5b57\u8282<\/td><\/tr><tr><td>23<\/td><td>0x20070-0x20077<\/td><td>\u603b\u6697\u7a7a\u95f4\uff08total_dark\uff09\uff0c\u503c\u4e3a0x2400\u5b57\u8282<\/td><\/tr><tr><td>24<\/td><td>0x20078-0x2007B<\/td><td>LPT root nnode\u7684LEB\u4e2a\u6570\uff08total_dark\uff09\uff0c\u503c\u4e3a0x07\u5b57\u8282<\/td><\/tr><tr><td>25<\/td><td>0x2007C-0x2007F<\/td><td>LPT root nnode\u7684\u7684\u504f\u79fb\uff0c\u503c\u4e3a0x2A<\/td><\/tr><tr><td>26<\/td><td>0x20080-0x20083<\/td><td>LPT\u5934\u7684LEB\u7f16\u53f7\uff0c\u503c\u4e3a0x07<\/td><\/tr><tr><td>27<\/td><td>0x20084-0x20087<\/td><td>LPT\u5934\u7684LEB\u7f16\u53f7\u7684\u504f\u79fb\uff0c\u503c\u4e3a0x200<\/td><\/tr><tr><td>28<\/td><td>0x20088-0x2008B<\/td><td>LPT\u7684lprops\u8868\u7684LEB\u7f16\u53f7\uff08ltab_lnum\uff09\uff0c\u503c\u4e3a0x07<\/td><\/tr><tr><td>29<\/td><td>0x2008C-0x2008F<\/td><td>LPT\u7684lprops\u8868\u7684LEB\u7f16\u53f7\u7684\u504f\u79fb\uff08ltab_offs\uff09\uff0c\u503c\u4e3a0x36<\/td><\/tr><tr><td>30<\/td><td>0x20090-0x20093<\/td><td>LPT\u7684save\u8868\u7684LEB\u7f16\u53f7\uff08lsave_lnum\uff09\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>31<\/td><td>0x20094-0x20097<\/td><td>LPT\u7684save\u8868\u7684LEB\u7f16\u53f7\u7684\u504f\u79fb\uff08lsave_offs\uff09\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>32<\/td><td>0x20098-0x2009B<\/td><td>\u4e0a\u6b21LPT\u626b\u63cf\u7684LEB\u7f16\u53f7\uff08lscan_lnum\uff09\uff0c\u503c\u4e3a0x0A<\/td><\/tr><tr><td>33<\/td><td>0x2009C-0x2009F<\/td><td>\u7a7a\u903b\u8f91\u64e6\u9664\u5757\u6570\uff08empty_lebs\uff09\uff0c\u503c\u4e3a0x01<\/td><\/tr><tr><td>34<\/td><td>0x20100-0x20103<\/td><td>\u7d22\u5f15\u903b\u8f91\u5757\u6570\uff08idx_lebs\uff09\uff0c\u503c\u4e3a0x01<\/td><\/tr><tr><td>35<\/td><td>0x200A4-0x200A7<\/td><td>\u6587\u4ef6\u7cfb\u7edf\u4f7f\u7528\u7684LEB\u603b\u6570\uff08leb_cnt\uff09\uff0c\u503c\u4e3a0x0D<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>3\u3001\u5176\u4ed6node\u5206\u6790<\/h4>\n\n\n\n<p>\u4f7f\u7528hexdump\u67e5\u770b\u751f\u6210\u7684rootfs.ubifs\u6587\u4ef6\u76840x140000-0x1406BF\u5b57\u8282\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00140000<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  31 18 10 06 42 0a 25 cb  03 00 00 00 00 00 00 00  |1...B.%.........|\n<\/mark>00140010<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  ab 00 00 00 00 00 00 00  41 00 00 00 00 00 00 00  |........A.......|\n<\/mark>00140020<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  00 00 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|\n<\/mark>00140030<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  0b 00 00 00 00 00 00 00  49 11 f7 62 00 00 00 00  |........I..b....|\n<\/mark>00140040<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  47 11 f7 62 00 00 00 00  47 11 f7 62 00 00 00 00  |G..b....G..b....|\n<\/mark>00140050<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  |................|\n<\/mark>00140060<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  e9 03 00 00 e9 03 00 00  ff a1 00 00 01 00 00 00  |................|\n<\/mark>00140070<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  0b 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>00140080<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">  00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>00140090 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\"> 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001400a0 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\"> 30 30 31 2f 30 30 32 2e  74 78 74 ff ff ff ff ff  |001\/002.txt.....|<\/mark>\n001400b0<mark style=\"background-color:rgba(0, 0, 0, 0);color:#e4e232\" class=\"has-inline-color\">  31 18 10 06 e7 03 5a 56  04 00 00 00 00 00 00 00  |1.....ZV........|\n<\/mark>001400c0<mark style=\"background-color:rgba(0, 0, 0, 0);color:#e4e232\" class=\"has-inline-color\">  41 00 00 00 02 00 00 00  01 00 00 00 2d 68 f9 57  |A...........-h.W|\n<\/mark>001400d0<mark style=\"background-color:rgba(0, 0, 0, 0);color:#e4e232\" class=\"has-inline-color\">  00 00 00 00 00 00 00 00  41 00 00 00 00 00 00 00  |........A.......|\n<\/mark>001400e0<mark style=\"background-color:rgba(0, 0, 0, 0);color:#e4e232\" class=\"has-inline-color\">  00 02 08 00 00 00 00 00  30 30 32 2e 6c 69 6e 6b  |........002.link|\n<\/mark>001400f0 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#e4e232\" class=\"has-inline-color\"> 00 ff ff ff ff ff ff ff<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1e5cf8\" class=\"has-inline-color\">  31 18 10 06 78 e5 c1 c1  <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e4e232\" class=\"has-inline-color\">|........<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#1e5cf8\" class=\"has-inline-color\">1...x...|\n<\/mark>00140100<mark style=\"background-color:rgba(0, 0, 0, 0);color:#1e5cf8\" class=\"has-inline-color\">  06 00 00 00 00 00 00 00  38 00 00 00 01 00 00 00  |........8.......|\n<\/mark>00140110<mark style=\"background-color:rgba(0, 0, 0, 0);color:#1e5cf8\" class=\"has-inline-color\">  42 00 00 00 00 00 00 20  00 00 00 00 00 00 00 00  |B...... ........|\n<\/mark>00140120<mark style=\"background-color:rgba(0, 0, 0, 0);color:#1e5cf8\" class=\"has-inline-color\">  08 00 00 00 00 00 00 00  74 65 73 74 30 30 35 0a  |........test005.|<\/mark>\n00140130<mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\">  31 18 10 06 59 8a c3 d3  07 00 00 00 00 00 00 00  |1...Y...........|\n<\/mark>00140140<mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\">  a0 00 00 00 00 00 00 00  42 00 00 00 00 00 00 00  |........B.......|\n<\/mark>00140150<mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\">  00 00 00 00 00 00 00 00  05 00 00 00 00 00 00 00  |................|\n<\/mark>00140160 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\"> 08 00 00 00 00 00 00 00  c4 13 f7 62 00 00 00 00  |...........b....|\n<\/mark>00140170 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\"> 91 11 f7 62 00 00 00 00  91 11 f7 62 00 00 00 00  |...b.......b....|\n<\/mark>00140180 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\"> 00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  |................|\n<\/mark>00140190 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\"> e9 03 00 00 e9 03 00 00  b4 81 00 00 01 00 00 00  |................|\n<\/mark>001401a0 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\"> 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001401b0 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\"> 00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001401c0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dee50\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001401d0 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dccde\" class=\"has-inline-color\"> 31 18 10 06 ee c5 ac 35  08 00 00 00 00 00 00 00  |1......5........|\n<\/mark>001401e0 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dccde\" class=\"has-inline-color\"> 40 00 00 00 02 00 00 00  01 00 00 00 c8 c6 ec 59  |@..............Y|\n<\/mark>001401f0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dccde\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  42 00 00 00 00 00 00 00  |........B.......|\n<\/mark>00140200  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#2dccde\" class=\"has-inline-color\">00 00 07 00 00 00 00 00  30 30 35 2e 74 78 74 00  |........005.txt.|<\/mark>\n00140210  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-1-color\">31 18 10 06 0b fc 1d 6c  0b 00 00 00 00 00 00 00  |1......l........|\n<\/mark>00140220  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-1-color\">38 00 00 00 01 00 00 00  44 00 00 00 00 00 00 20  |8.......D...... |\n<\/mark>00140230  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-1-color\">00 00 00 00 00 00 00 00  08 00 00 00 00 00 00 00  |................|\n<\/mark>00140240  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-1-color\">74 65 73 74 30 30 34 0a  <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">31 18 10 06 c1 99 82 e2  |test004.1.......|\n<\/mark>00140250  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">0c 00 00 00 00 00 00 00  a0 00 00 00 00 00 00 00  |................|\n<\/mark>00140260  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">44 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |D...............|\n<\/mark>00140270  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">0a 00 00 00 00 00 00 00  08 00 00 00 00 00 00 00  |................|\n<\/mark>00140280  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">c4 13 f7 62 00 00 00 00  7a 11 f7 62 00 00 00 00  |...b....z..b....|\n<\/mark>00140290  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">7a 11 f7 62 00 00 00 00  00 00 00 00 00 00 00 00  |z..b............|\n<\/mark>001402a0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">00 00 00 00 01 00 00 00  e9 03 00 00 e9 03 00 00  |................|\n<\/mark>001402b0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">b4 81 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001402c0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  |................|\n<\/mark>001402d0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001402e0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ab74f4\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cc1616\" class=\"has-inline-color\">31 18 10 06 b1 e2 f2 a9  |........1.......|\n<\/mark>001402f0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cc1616\" class=\"has-inline-color\">0d 00 00 00 00 00 00 00  40 00 00 00 02 00 00 00  |........@.......|\n<\/mark>00140300  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cc1616\" class=\"has-inline-color\">43 00 00 00 18 75 c5 59  00 00 00 00 00 00 00 00  |C....u.Y........|\n<\/mark>00140310  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cc1616\" class=\"has-inline-color\">44 00 00 00 00 00 00 00  00 00 07 00 00 00 00 00  |D...............|\n<\/mark>00140320  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cc1616\" class=\"has-inline-color\">30 30 34 2e 74 78 74 00  <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">31 18 10 06 14 7e 41 15  |004.txt.1....~A.|\n<\/mark>00140330  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">0e 00 00 00 00 00 00 00  a0 00 00 00 00 00 00 00  |................|\n<\/mark>00140340  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">43 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |C...............|\n<\/mark>00140350  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">09 00 00 00 00 00 00 00  e0 00 00 00 00 00 00 00  |................|\n<\/mark>00140360  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">7b 11 f7 62 00 00 00 00  7a 11 f7 62 00 00 00 00  |{..b....z..b....|\n<\/mark>00140370  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">7a 11 f7 62 00 00 00 00  00 00 00 00 00 00 00 00  |z..b............|\n<\/mark>00140380  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">00 00 00 00 02 00 00 00  e9 03 00 00 e9 03 00 00  |................|\n<\/mark>00140390  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">fd 41 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |.A..............|\n<\/mark>001403a0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  |................|\n<\/mark>001403b0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001403c0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#dda0a0\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#a71f93\" class=\"has-inline-color\">31 18 10 06 a1 c4 96 26  |........1......&amp;|\n<\/mark>001403d0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#a71f93\" class=\"has-inline-color\">0f 00 00 00 00 00 00 00  3c 00 00 00 02 00 00 00  |........&lt;.......|\n<\/mark>001403e0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#a71f93\" class=\"has-inline-color\">01 00 00 00 35 38 11 40  00 00 00 00 00 00 00 00  |....58.@........|\n<\/mark>001403f0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#a71f93\" class=\"has-inline-color\">43 00 00 00 00 00 00 00  00 01 03 00 00 00 00 00  |C...............|\n<\/mark>00140400  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#a71f93\" class=\"has-inline-color\">30 30 33 00 ff ff ff ff  <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#bff97d\" class=\"has-inline-color\">31 18 10 06 a7 1b 31 64  |003.....1.....1d|\n<\/mark>00140410  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#bff97d\" class=\"has-inline-color\">12 00 00 00 00 00 00 00  38 00 00 00 01 00 00 00  |........8.......|\n<\/mark>00140420  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#bff97d\" class=\"has-inline-color\">46 00 00 00 00 00 00 20  00 00 00 00 00 00 00 00  |F...... ........|\n<\/mark>00140430  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#bff97d\" class=\"has-inline-color\">08 00 00 00 00 00 00 00  74 65 73 74 30 30 32 0a  |........test002.|<\/mark>\n00140440  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">31 18 10 06 47 85 6b 9b  13 00 00 00 00 00 00 00  |1...G.k.........|\n<\/mark>00140450  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">a0 00 00 00 00 00 00 00  46 00 00 00 00 00 00 00  |........F.......|\n<\/mark>00140460  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  11 00 00 00 00 00 00 00  |................|\n<\/mark>00140470  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">08 00 00 00 00 00 00 00  c4 13 f7 62 00 00 00 00  |...........b....|\n<\/mark>00140480  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">3c 11 f7 62 00 00 00 00  22 11 f7 62 00 00 00 00  |&lt;..b....\"..b....|\n<\/mark>00140490  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  |................|\n<\/mark>001404a0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">e9 03 00 00 e9 03 00 00  b4 81 00 00 01 00 00 00  |................|\n<\/mark>001404b0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001404c0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001404d0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#f39a9a\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|<\/mark>\n001404e0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#57f57e\" class=\"has-inline-color\">31 18 10 06 b9 32 7a 8e  14 00 00 00 00 00 00 00  |1....2z.........|\n<\/mark>001404f0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#57f57e\" class=\"has-inline-color\">40 00 00 00 02 00 00 00  45 00 00 00 b8 d1 76 59  |@.......E.....vY|\n<\/mark>00140500  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#57f57e\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  46 00 00 00 00 00 00 00  |........F.......|\n<\/mark>00140510  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#57f57e\" class=\"has-inline-color\">00 00 07 00 00 00 00 00  30 30 32 2e 74 78 74 00  |........002.txt.|<\/mark>\n00140520  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">31 18 10 06 41 f8 91 2f  15 00 00 00 00 00 00 00  |1...A..\/........|\n<\/mark>00140530  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">a0 00 00 00 00 00 00 00  45 00 00 00 00 00 00 00  |........E.......|\n<\/mark>00140540  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  10 00 00 00 00 00 00 00  |................|\n<\/mark>00140550  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">e0 00 00 00 00 00 00 00  42 11 f7 62 00 00 00 00  |........B..b....|\n<\/mark>00140560  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">3c 11 f7 62 00 00 00 00  3c 11 f7 62 00 00 00 00  |&lt;..b....&lt;..b....|\n<\/mark>00140570  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 02 00 00 00  |................|\n<\/mark>00140580  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">e9 03 00 00 e9 03 00 00  fd 41 00 00 01 00 00 00  |.........A......|\n<\/mark>00140590  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001405a0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>001405b0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#eaa73c\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|<\/mark>\n001405c0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#3166e9\" class=\"has-inline-color\">31 18 10 06 d4 d1 c3 df  16 00 00 00 00 00 00 00  |1...............|\n<\/mark>001405d0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#3166e9\" class=\"has-inline-color\">3c 00 00 00 02 00 00 00  01 00 00 00 d5 36 11 40  |&lt;............6.@|\n<\/mark>001405e0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#3166e9\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  45 00 00 00 00 00 00 00  |........E.......|\n<\/mark>001405f0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#3166e9\" class=\"has-inline-color\">00 01 03 00 00 00 00 00  30 30 31 00 ff ff ff ff  |........001.....|<\/mark>\n00140600  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">31 18 10 06 92 4a 20 c8  17 00 00 00 00 00 00 00  |1....J .........|\n<\/mark>00140610  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">a0 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00  |................|\n<\/mark>00140620  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00  |................|\n<\/mark>00140630  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">a8 01 00 00 00 00 00 00  91 11 f7 62 00 00 00 00  |...........b....|\n<\/mark>00140640  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">91 11 f7 62 00 00 00 00  91 11 f7 62 00 00 00 00  |...b.......b....|\n<\/mark>00140650  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 04 00 00 00  |................|\n<\/mark>00140660  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">e9 03 00 00 e9 03 00 00  fd 41 00 00 01 00 00 00  |.........A......|\n<\/mark>00140670  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>00140680  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n<\/mark>00140690  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d325a8\" class=\"has-inline-color\">00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|<\/mark>\n001406a0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d7f27c\" class=\"has-inline-color\">31 18 10 06 36 6f 6c a4  00 00 00 00 00 00 00 00  |1...6ol.........|\n<\/mark>001406b0  <mark style=\"background-color:rgba(0, 0, 0, 0);color:#d7f27c\" class=\"has-inline-color\">1c 00 00 00 05 00 00 00  44 01 00 00              |........D...|<\/mark>\n001406bc\n<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u9762\u5305\u542b\u6587\u4ef6\u540d\u79f0\u3001\u6587\u4ef6\u5185\u5bb9\uff0c\u5305\u542b\u591a\u7ec4node\uff0c\u8fd9\u91cc\u5927\u6982\u5206\u6790\u4e00\u6b21\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>node\u7c7b\u578b<\/td><td>\u5907\u6ce8<\/td><\/tr><tr><td>1<\/td><td>0x00140000-0x001400AF<\/td><td>inode node \uff080\uff09<\/td><td>\u6587\u4ef6\u8def\u5f84 001\/002.txt<\/td><\/tr><tr><td>2<\/td><td>0x001400B0-0x001400F7<\/td><td>directory entry node\uff082\uff09<\/td><td>\u94fe\u63a5\u8def\u5f84 002.link<\/td><\/tr><tr><td>3<\/td><td>0x001400F8-0x0014012F<\/td><td>data node\uff081\uff09<\/td><td>\u6587\u4ef6\u5185\u5bb9 test005<\/td><\/tr><tr><td>4<\/td><td>0x00140130-0x001401CF<\/td><td>inode node\uff080\uff09<\/td><td><\/td><\/tr><tr><td>5<\/td><td>0x001401E0-0x0014020F<\/td><td>directory entry node\uff082\uff09<\/td><td>\u6587\u4ef6\u8def\u5f84 005.txt<\/td><\/tr><tr><td>6<\/td><td>0x00140210-0x00140247<\/td><td>data node\uff081\uff09<\/td><td>\u6587\u4ef6\u5185\u5bb9 test004<\/td><\/tr><tr><td>7<\/td><td>0x00140248-0x001402e7<\/td><td>inode node\uff080\uff09<\/td><td><\/td><\/tr><tr><td>8<\/td><td>0x001402e8-0x00140327<\/td><td>directory entry node\uff082\uff09<\/td><td>\u6587\u4ef6\u8def\u5f84 004.txt<\/td><\/tr><tr><td>9<\/td><td>0x00140328-0x001403C7<\/td><td>inode node\uff080\uff09<\/td><td><\/td><\/tr><tr><td>10<\/td><td>0x001403C8-0x00140407<\/td><td>directory entry node\uff082\uff09<\/td><td>\u76ee\u5f55\u8def\u5f84 003<\/td><\/tr><tr><td>11<\/td><td>0x00140408-0x0014043F<\/td><td>data node\uff081\uff09<\/td><td>\u6587\u4ef6\u5185\u5bb9 test002<\/td><\/tr><tr><td>12<\/td><td>0x00140440-0x001404DF<\/td><td>inode node\uff080\uff09<\/td><td><\/td><\/tr><tr><td>13<\/td><td>0x001404E0-0x0014051F<\/td><td>directory entry node\uff082\uff09<\/td><td>\u6587\u4ef6\u8def\u5f84 002.txt<\/td><\/tr><tr><td>14<\/td><td>0x00140520-0x001405BF<\/td><td>inode node\uff080\uff09<\/td><td><\/td><\/tr><tr><td>15<\/td><td>0x001405C0-0x001405FF<\/td><td>directory entry node\uff082\uff09<\/td><td>\u76ee\u5f55\u8def\u5f84 001<\/td><\/tr><tr><td>16<\/td><td>0x00140600-0x0014069F<\/td><td>inode node\uff080\uff09<\/td><td><\/td><\/tr><tr><td>17<\/td><td>0x001406A0-0x001406BB<\/td><td>padding node\uff085\uff09<\/td><td>\u586b\u5145<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4e0b\u9762\uff0c\u6211\u4eec\u6311\u9009\u6bd4\u8f83\u591a\u7684\u51e0\u4e2anode\u7c7b\u578b\u8fdb\u884c\u5206\u6790\u3002<\/p>\n\n\n\n<h5>\uff081\uff09inode node\u5206\u6790<\/h5>\n\n\n\n<p>\u63d0\u53d60x00140000-0x001400AF\u7684inode node\u6570\u636e<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00000000  31 18 10 06 42 0a 25 cb  03 00 00 00 00 00 00 00  |1...B.%.........|\n00000010  ab 00 00 00 00 00 00 00  41 00 00 00 00 00 00 00  |........A.......|\n00000020  00 00 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|\n00000030  0b 00 00 00 00 00 00 00  49 11 f7 62 00 00 00 00  |........I..b....|\n00000040  47 11 f7 62 00 00 00 00  47 11 f7 62 00 00 00 00  |G..b....G..b....|\n00000050  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  |................|\n00000060  e9 03 00 00 e9 03 00 00  ff a1 00 00 01 00 00 00  |................|\n00000070  0b 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n00000080  00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|\n00000090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n000000a0  30 30 31 2f 30 30 32 2e  74 78 74 ff ff ff ff ff  |001\/002.txt.....|<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" data-type=\"URL\" data-id=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" target=\"_blank\">\u6e90\u7801<\/a>\uff08struct ubifs_ino_node\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x00-0x03<\/td><td>UBIFS\u6807\u5fd7\uff0c\u503c\u4e3a0x06101831<\/td><\/tr><tr><td>2<\/td><td>0x04-0x07<\/td><td>CRC\uff0c\u503c\u4e3a0xCB250A42<\/td><\/tr><tr><td>3<\/td><td>0x08-0x0F<\/td><td>sequence number\uff0c\u503c\u4e3a0x03<\/td><\/tr><tr><td>4<\/td><td>0x10-0x13<\/td><td>\u5757\u957f\u5ea6\uff0c\u503c\u4e3a0xAB<\/td><\/tr><tr><td>5<\/td><td>0x14<\/td><td>node type\uff0c\u503c\u4e3a0x00\uff0c\u8868\u793ainode node<\/td><\/tr><tr><td>6<\/td><td>0x15<\/td><td>node group type\uff0c\u503c\u4e3a0x00<\/td><\/tr><tr><td>7<\/td><td>0x16-0x17<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0x0000\uff0c\u524d0x18\u5b57\u8282\u4e3aubifs_ch\u7ed3\u6784\u4f53<\/td><\/tr><tr><td>8<\/td><td>0x18-0x27<\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\"><strong><em>node key\uff0c\u503c\u4e3a0x41<\/em><\/strong><\/mark><\/td><\/tr><tr><td>9<\/td><td>0x28-0x2F<\/td><td>sequence number\uff0c\u503c\u4e3a0x02<\/td><\/tr><tr><td>10<\/td><td>0x30-0x37<\/td><td>inode size\uff0c\u503c\u4e3a0x0B<\/td><\/tr><tr><td>11<\/td><td>0x38-0x3F<\/td><td>access time\uff0c\u503c\u4e3a0x62F71149<\/td><\/tr><tr><td>12<\/td><td>0x40-0x47<\/td><td>creation time\uff0c\u503c\u4e3a0x62F71147<\/td><\/tr><tr><td>13<\/td><td>0x48-0x4F<\/td><td>modification time\uff0c\u503c\u4e3a0x62F71147<\/td><\/tr><tr><td>14<\/td><td>0x50-0x53<\/td><td>access time\uff08ns\uff09\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>15<\/td><td>0x54-0x57<\/td><td>creation time\uff08ns\uff09\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>16<\/td><td>0x58-0x5B<\/td><td>modification time\uff08ns\uff09\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>17<\/td><td>0x5C-0x5F<\/td><td><strong><em>\u786c\u94fe\u63a5\u4e2a\u6570\uff0c\u503c\u4e3a1<\/em><\/strong><\/td><\/tr><tr><td>18<\/td><td>0x60-0x63<\/td><td>UID\uff0c\u503c\u4e3a0x3E9\uff081001\uff09<\/td><\/tr><tr><td>19<\/td><td>0x64-0x67<\/td><td>GID\uff0c\u503c\u4e3a0x3E9\uff081001\uff09<\/td><\/tr><tr><td>20<\/td><td>0x68-0x6B<\/td><td>mode\uff0c\u503c\u4e3a0xA1FF\uff08\u516b\u8fdb\u5236120777\uff09<\/td><\/tr><tr><td>21<\/td><td>0x6C-0x6F<\/td><td>per-inode flags\uff0c\u503c\u4e3a1<\/td><\/tr><tr><td>22<\/td><td>0x70-0x73<\/td><td>inode data length\uff0c\u503c\u4e3a0x0B<\/td><\/tr><tr><td>23<\/td><td>0x74-0x77<\/td><td>xattr_cnt\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>24<\/td><td>0x78-0x7B<\/td><td>xattr_size\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>25<\/td><td>0x7C-0x7F<\/td><td>padding1\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>26<\/td><td>0x80-0x83<\/td><td>xattr_names\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>27<\/td><td>0x84-0x85<\/td><td>compr_type\uff0c\u503c\u4e3a0x01\uff0c\u8868\u793aLZO\u538b\u7f29\u65b9\u5f0f<\/td><\/tr><tr><td>28<\/td><td>0x86-0x9F<\/td><td>padding2\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>29<\/td><td>0x86-0x9F<\/td><td>data\uff0c\u5b57\u7b26\u4e32\u4e3a001\/002.txt<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6700\u540e\u4ee50xFF\u586b\u5145\uff0c8\u5b57\u8282\u5bf9\u9f50\u3002<\/p>\n\n\n\n<h5>\uff082\uff09directory entry node\u5206\u6790<\/h5>\n\n\n\n<p>\u63d0\u53d60x001400B0-0x001400F7\u7684directory entry node\u6570\u636e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00000000  31 18 10 06 e7 03 5a 56  04 00 00 00 00 00 00 00  |1.....ZV........|\n00000010  41 00 00 00 02 00 00 00  01 00 00 00 2d 68 f9 57  |A...........-h.W|\n00000020  00 00 00 00 00 00 00 00  41 00 00 00 00 00 00 00  |........A.......|\n00000030  00 02 08 00 00 00 00 00  30 30 32 2e 6c 69 6e 6b  |........002.link|\n00000040  00 ff ff ff ff ff ff ff                           |........|\n00000048<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" data-type=\"URL\" data-id=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" target=\"_blank\">\u6e90\u7801<\/a>\uff08struct ubifs_dent_node\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x00-0x03<\/td><td>UBIFS\u6807\u5fd7\uff0c\u503c\u4e3a0x06101831<\/td><\/tr><tr><td>2<\/td><td>0x04-0x07<\/td><td>CRC\uff0c\u503c\u4e3a0x565A03E7<\/td><\/tr><tr><td>3<\/td><td>0x08-0x0F<\/td><td>sequence number\uff0c\u503c\u4e3a0x04<\/td><\/tr><tr><td>4<\/td><td>0x10-0x13<\/td><td>\u5757\u957f\u5ea6\uff0c\u503c\u4e3a0x41<\/td><\/tr><tr><td>5<\/td><td>0x14<\/td><td>node type\uff0c\u503c\u4e3a0x02\uff0c\u8868\u793adirectory entry node<\/td><\/tr><tr><td>6<\/td><td>0x15<\/td><td>node group type\uff0c\u503c\u4e3a0x00<\/td><\/tr><tr><td>7<\/td><td>0x16-0x17<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0x0000\uff0c\u524d0x18\u5b57\u8282\u4e3aubifs_ch\u7ed3\u6784\u4f53<\/td><\/tr><tr><td>8<\/td><td>0x18-0x27<\/td><td>node key\uff0c\u503c\u4e3a0x000000000000000057F9682D00000001<\/td><\/tr><tr><td>9<\/td><td>0x28-0x2F<\/td><td><em><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">target inode number\uff0c\u503c\u4e3a0x41<\/mark><\/strong><\/em><\/td><\/tr><tr><td>10<\/td><td>0x30<\/td><td>padding1\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>11<\/td><td>0x31<\/td><td>type of the target inode\uff0c\u503c\u4e3a0x02<\/td><\/tr><tr><td>12<\/td><td>0x32-0x33<\/td><td>name length\uff0c\u503c\u4e3a0x08<\/td><\/tr><tr><td>13<\/td><td>0x34-0x37<\/td><td>padding2\uff0c\u503c\u4e3a0<\/td><\/tr><tr><td>14<\/td><td>0x38-0x40<\/td><td>name\uff0c\u5b57\u7b26\u4e32\u4e3a002.link\uff0c\u4ee50x00\u7ed3\u5c3e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6700\u540e\u4ee50xFF\u586b\u5145\uff0c8\u5b57\u8282\u5bf9\u9f50\u3002<\/p>\n\n\n\n<h5>\uff083\uff09data node\u5206\u6790<\/h5>\n\n\n\n<p>\u63d0\u53d60x001400F8-0x0014012F\u7684data node\u6570\u636e<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00000000  31 18 10 06 78 e5 c1 c1  06 00 00 00 00 00 00 00  |1...x...........|\n00000010  38 00 00 00 01 00 00 00  42 00 00 00 00 00 00 20  |8.......B...... |\n00000020  00 00 00 00 00 00 00 00  08 00 00 00 00 00 00 00  |................|\n00000030  74 65 73 74 30 30 35 0a                           |test005.|\n00000038<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" data-type=\"URL\" data-id=\"https:\/\/www.zhiwanyuzhou.com\/download\/Datasheet\/rootfs\/mtd-utils-a315011\/include\/mtd\/ubifs-media.h\" target=\"_blank\">\u6e90\u7801<\/a>\uff08struct ubifs_data_node\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x00-0x03<\/td><td>UBIFS\u6807\u5fd7\uff0c\u503c\u4e3a0x06101831<\/td><\/tr><tr><td>2<\/td><td>0x04-0x07<\/td><td>CRC\uff0c\u503c\u4e3a0xC1C1E578<\/td><\/tr><tr><td>3<\/td><td>0x08-0x0F<\/td><td>sequence number\uff0c\u503c\u4e3a0x06<\/td><\/tr><tr><td>4<\/td><td>0x10-0x13<\/td><td>\u5757\u957f\u5ea6\uff0c\u503c\u4e3a0x38<\/td><\/tr><tr><td>5<\/td><td>0x14<\/td><td>node type\uff0c\u503c\u4e3a0x01\uff0c\u8868\u793adata node<\/td><\/tr><tr><td>6<\/td><td>0x15<\/td><td>node group type\uff0c\u503c\u4e3a0x00<\/td><\/tr><tr><td>7<\/td><td>0x16-0x17<\/td><td>\u586b\u5145\u503c\uff0c\u503c\u4e3a0x0000\uff0c\u524d0x18\u5b57\u8282\u4e3aubifs_ch\u7ed3\u6784\u4f53<\/td><\/tr><tr><td>8<\/td><td>0x18-0x27<\/td><td>node key\uff0c\u503c\u4e3a0x000000000000000020000000000042<\/td><\/tr><tr><td>9<\/td><td>0x28-0x2B<\/td><td>uncompressed data size\uff0c\u503c\u4e3a0x08<\/td><\/tr><tr><td>10<\/td><td>0x2C-0x2D<\/td><td>compr_type\uff0c\u503c\u4e3a0x00\uff0c\u8868\u793a\u672a\u538b\u7f29<\/td><\/tr><tr><td>11<\/td><td>0x2E-0x2F<\/td><td>padding\uff0c\u503c\u4e3a0x00<\/td><\/tr><tr><td>12<\/td><td>0x30-0x37<\/td><td>data\uff0c\u5185\u5bb9\u4e3atest005<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u53c2\u8003\u94fe\u63a5\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/blog.csdn.net\/gy794627991\/article\/details\/120056000\">https:\/\/blog.csdn.net\/gy794627991\/article\/details\/120056000<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.csdn.net\/jackone12347\/article\/details\/121967478\">https:\/\/blog.csdn.net\/jackone12347\/article\/details\/121967478<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.csdn.net\/Dongsheng_Yang\/article\/details\/47661733\">https:\/\/blog.csdn.net\/Dongsheng_Yang\/article\/details\/47661733<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.csdn.net\/qq_24835087\/article\/details\/125336305\">https:\/\/blog.csdn.net\/qq_24835087\/article\/details\/125336305<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7b80\u4ecb UBIFS(Unsorted Block Image File System)\u65e0\u6392\u5e8f\u533a\u5757\u56fe\u50cf\u6587\u4ef6\u7cfb\u7edf\uff0c\u7528\u4e8e\u88f8\u7684flash\u8bbe\u5907\uff0c\u4f5c\u4e3ajffs2\u7684\u540e\u7ee7\u6587\u4ef6\u7cfb\u7edf\u4e4b\u4e00\u3002UBIFS\u901a\u8fc7UBI\u5b50\u7cfb\u7edf\u5904\u7406\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":5}},"_links":{"self":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts\/1451"}],"collection":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/comments?post=1451"}],"version-history":[{"count":32,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts\/1451\/revisions"}],"predecessor-version":[{"id":1501,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts\/1451\/revisions\/1501"}],"wp:attachment":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/media?parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/categories?post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/tags?post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}