{"id":1663,"date":"2012-04-19T15:29:53","date_gmt":"2012-04-19T06:29:53","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=1663"},"modified":"2012-04-19T15:29:53","modified_gmt":"2012-04-19T06:29:53","slug":"xv6-65-chapter-5-file-system-code-path-names","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/1663","title":{"rendered":"[xv6 #65] Chapter 5 &#8211; File system &#8211; Code: Path names"},"content":{"rendered":"<p>\u30c6\u30ad\u30b9\u30c8\u306e73\u301c74\u30da\u30fc\u30b8<\/p>\n<h3>\u672c\u6587<\/h3>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3088\u3046\u306b\u3001\u30d1\u30b9\u540d\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3068\u306a\u308b\u8ffd\u52a0\u306e\u30b3\u30fc\u30c9\u306f\u5c11\u3057\u3057\u304b\u306a\u3044\u3002<br \/>\n\u306a\u305c\u306a\u3089\u3001dirlookup\u95a2\u6570\u3092\u518d\u5e30\u7684\u306b\u547c\u3073\u3001namei\u95a2\u6570\u306a\u3069\u306e\u95a2\u9023\u304c\u3042\u308b\u95a2\u6570\u3092\u4f7f\u3046\u3060\u3051\u3060\u304b\u3089\u3067\u3042\u308b\u3002<br \/>\nnamei\u95a2\u6570\u306f\u3001\u5f15\u6570\u306epath\u3092\u968e\u5c64\u7684\u306a\u30d1\u30b9\u540d\u3068\u3057\u3066\u8a55\u4fa1\u3057\u3001\u305d\u308c\u306b\u4e00\u81f4\u3059\u308binode\u3092\u8fd4\u3059\u3002<br \/>\nnameiparent\u95a2\u6570\u306f\u3001namei\u95a2\u6570\u306e\u5909\u7a2e\u3067\u3042\u308b\u3002<br \/>\nnameiparent\u95a2\u6570\u306f\u3001\u6700\u5f8c\u306e\u8981\u7d20\u306e\u76f4\u524d\u3067\u6b62\u307e\u308a\u3001\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306einode\u3092\u8fd4\u3057\u3001\u6700\u5f8c\u306e\u8981\u7d20\u3092\u5f15\u6570name\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002<br \/>\n\u4e21\u65b9\u306e\u95a2\u6570\u3068\u3082\u3001\u5b9f\u969b\u306e\u4ed5\u4e8b\u3092\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u4e00\u822c\u5316\u3055\u308c\u305f\u95a2\u6570\u3067\u3042\u308bnamex\u95a2\u6570\u3092\u547c\u3076\u3002<\/p>\n<p>fs.c\u306enamex, namei, nameiparent\u95a2\u6570<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\/\/ Look up and return the inode for a path name.\r\n\/\/ If parent != 0, return the inode for the parent and copy the final\r\n\/\/ path element into name, which must have room for DIRSIZ bytes.\r\nstatic struct inode*\r\nnamex(char *path, int nameiparent, char *name)\r\n{\r\n  struct inode *ip, *next;\r\n\r\n  if(*path == '\/')\r\n    ip = iget(ROOTDEV, ROOTINO);\r\n  else\r\n    ip = idup(proc-&gt;cwd);\r\n\r\n  while((path = skipelem(path, name)) != 0){\r\n    ilock(ip);\r\n    if(ip-&gt;type != T_DIR){\r\n      iunlockput(ip);\r\n      return 0;\r\n    }\r\n    if(nameiparent &amp;&amp; *path == '&#92;&#48;'){\r\n      \/\/ Stop one level early.\r\n      iunlock(ip);\r\n      return ip;\r\n    }\r\n    if((next = dirlookup(ip, name, 0)) == 0){\r\n      iunlockput(ip);\r\n      return 0;\r\n    }\r\n    iunlockput(ip);\r\n    ip = next;\r\n  }\r\n  if(nameiparent){\r\n    iput(ip);\r\n    return 0;\r\n  }\r\n  return ip;\r\n}\r\n\r\nstruct inode*\r\nnamei(char *path)\r\n{\r\n  char name&#x5B;DIRSIZ];\r\n  return namex(path, 0, name);\r\n}\r\n\r\nstruct inode*\r\nnameiparent(char *path, char *name)\r\n{\r\n  return namex(path, 1, name);\r\n}<\/pre>\n<p>namex\u95a2\u6570\u306f\u3001\u307e\u305a\u30d1\u30b9\u3092\u3069\u3053\u304b\u3089\u8a55\u4fa1\u3059\u308b\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u3002<br \/>\n\u30d1\u30b9\u304c&#8221;\/&#8221;\u3067\u59cb\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u8a55\u4fa1\u306f\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u958b\u59cb\u3055\u308c\u308b\u3002<br \/>\n\u30d1\u30b9\u304c&#8221;\/&#8221;\u3067\u59cb\u307e\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u8a55\u4fa1\u304c\u958b\u59cb\u3055\u308c\u308b\u3002<br \/>\n\u305d\u3057\u305f\u3089\u3001\u30d1\u30b9\u306e\u5404\u8981\u7d20\u306b\u3064\u3044\u3066\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306bskipelem\u95a2\u6570\u3092\u4f7f\u3046\u3002<br \/>\n\u30eb\u30fc\u30d7\u4e2d\u306e\u5404\u53cd\u5fa9\u3067\u306f\u3001\u73fe\u5728\u306einode\u3067\u3042\u308bip\u304b\u3089name\u3092\u63a2\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<br \/>\n\u30eb\u30fc\u30d7\u4e2d\u306f\u3001\u307e\u305aip\u3092\u30ed\u30c3\u30af\u3057\u3001\u305d\u308c\u304c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306a\u3051\u308c\u3070\u3001namex\u306f\u5931\u6557\u3068\u306a\u308a0\u3092\u8fd4\u3059\u3002<br \/>\n(ip\u306e\u30ed\u30c3\u30af\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001ip-&gt;type\u304c\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u3063\u3066\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u304b\u3089\u3067\u306f\u306a\u3044\u3002\u305d\u308c\u306f\u4e0d\u53ef\u80fd\u3067\u3042\u308b\u3002ip\u306e\u30ed\u30c3\u30af\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001ilock\u304c\u5b9f\u884c\u3055\u308c\u308b\u307e\u3067\u306f\u3001ip-&gt;type\u304c\u3001\u30c7\u30a3\u30b9\u30af\u304b\u3089\u8aad\u307f\u8fbc\u307e\u308c\u305f\u76f4\u5f8c\u306e\u307e\u307e\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u306f\u4fdd\u8a3c\u3055\u308c\u306a\u3044\u304b\u3089\u3067\u3042\u308b\u3002)<br \/>\nnameiparent\u95a2\u6570\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u3001\u304b\u3064\u30d1\u30b9\u306e\u6700\u5f8c\u306e\u8981\u7d20\u306e\u5834\u5408\u3001nameiparent\u95a2\u6570\u306e\u5b9a\u7fa9\u306b\u57fa\u3065\u304d\u30eb\u30fc\u30d7\u306f\u65e9\u3081\u306b\u6b62\u307e\u308b\u3002<br \/>\n\u6700\u5f8c\u306e\u30d1\u30b9\u306e\u8981\u7d20\u306f\u3001\u3059\u3067\u306bname\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001namex\u95a2\u6570\u306f\u30a2\u30f3\u30ed\u30c3\u30af\u3055\u308c\u305fip\u3092\u8fd4\u3059\u3060\u3051\u3067\u3088\u3044\u3002<br \/>\n\u6700\u5f8c\u306b\u3001\u30eb\u30fc\u30d7\u4e2d\u3067\u306fdirlookup\u95a2\u6570\u3092\u4f7f\u3063\u3066\u30d1\u30b9\u306e\u8981\u7d20\u3092\u8abf\u3079\u3001ip = next\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u6b21\u306e\u53cd\u5fa9\u306b\u5099\u3048\u308b\u3002<br \/>\n\u30eb\u30fc\u30d7\u3067\u30d1\u30b9\u306e\u8981\u7d20\u3092\u8d70\u67fb\u3057\u5c3d\u304f\u3057\u305f\u3068\u304d\u306f\u3001ip\u3092\u8fd4\u3059\u3002<\/p>\n<h3>\u611f\u60f3<\/h3>\n<p>\u3059\u3050\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5c64\u3092\u4f7f\u3063\u3066\u968e\u5c64\u7684\u306a\u30d1\u30b9\u3092\u3069\u3046\u8868\u73fe\u3059\u308b\u304b\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5c64\u3067\u306f\u3001\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u540d\u524d\u3068inode\u306e\u7d44\u3092\u30c7\u30fc\u30bf\u69cb\u9020\u4e0a\u306f1\u968e\u5c64\u5206\u3057\u304b\u6301\u3061\u307e\u305b\u3093\u3002<br \/>\n\u305d\u306einode\u304c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5834\u5408\u3001\u968e\u5c64\u69cb\u9020\u3092\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u305d\u306e\u968e\u5c64\u69cb\u9020\u3068\u3001\u30d1\u30b9\uff08\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u968e\u5c64\u3092&#8221;\/&#8221;\u3067\u533a\u5207\u3063\u305f\u6587\u5b57\u5217\u8868\u73fe\uff09\u3092\u5bfe\u5fdc\u4ed8\u3051\u308b\u30b3\u30fc\u30c9\u306e\u8aac\u660e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30ad\u30b9\u30c8\u306e73\u301c74\u30da\u30fc\u30b8<\/p>\n<h3>\u672c\u6587<\/h3>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3088\u3046\u306b\u3001\u30d1\u30b9\u540d\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3068\u306a\u308b\u8ffd\u52a0\u306e\u30b3\u30fc\u30c9\u306f\u5c11\u3057\u3057\u304b\u306a\u3044\u3002<br \/>\n\u306a\u305c\u306a\u3089\u3001dirlookup\u95a2\u6570\u3092\u518d\u5e30\u7684\u306b\u547c\u3073\u3001namei\u95a2\u6570\u306a\u3069\u306e\u95a2\u9023\u304c\u3042\u308b\u95a2\u6570\u3092\u4f7f\u3046\u3060\u3051\u3060\u304b\u3089\u3067\u3042\u308b\u3002<br \/>\nnamei\u95a2\u6570\u306f\u3001\u5f15\u6570\u306epath\u3092\u968e\u5c64\u7684\u306a\u30d1\u30b9\u540d\u3068\u3057\u3066\u8a55\u4fa1\u3057\u3001\u305d\u308c\u306b\u4e00\u81f4\u3059\u308binode\u3092\u8fd4\u3059\u3002<br \/>\nnameiparent\u95a2\u6570\u306f\u3001namei\u95a2\u6570\u306e\u5909\u7a2e\u3067\u3042\u308b\u3002<br \/>\nnameiparent\u95a2\u6570\u306f\u3001\u6700\u5f8c\u306e\u8981\u7d20\u306e\u76f4\u524d\u3067\u6b62\u307e\u308a\u3001\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306einode\u3092\u8fd4\u3057\u3001\u6700\u5f8c\u306e\u8981\u7d20\u3092\u5f15\u6570name\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002<br \/>\n\u4e21\u65b9\u306e\u95a2\u6570\u3068\u3082\u3001\u5b9f\u969b\u306e\u4ed5\u4e8b\u3092\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u4e00\u822c\u5316\u3055\u308c\u305f\u95a2\u6570\u3067\u3042\u308bnamex\u95a2\u6570\u3092\u547c\u3076\u3002<\/p>\n<p>fs.c\u306enamex, namei, nameiparent\u95a2\u6570<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\/\/ Look up and return the inode for a path name.\r\n\/\/ If parent != 0, return the inode for the parent and copy the final\r\n\/\/ path element into name, which must have room for DIRSIZ bytes.\r\nstatic struct inode*\r\nnamex(char *path, int nameiparent, char *name)\r\n{\r\n  struct inode *ip, *next;\r\n\r\n  if(*path == '\/')\r\n    ip = iget(ROOTDEV, ROOTINO);\r\n  else\r\n    ip = idup(proc-&gt;cwd);\r\n\r\n  while((path = skipelem(path, name)) != 0){\r\n    ilock(ip);\r\n    if(ip-&gt;type != T_DIR){\r\n      iunlockput(ip);\r\n      return 0;\r\n    }\r\n    if(nameiparent &amp;&amp; *path == '&#92;&#48;'){\r\n      \/\/ Stop one level early.\r\n      iunlock(ip);\r\n      return ip;\r\n    }\r\n    if((next = dirlookup(ip, name, 0)) == 0){\r\n      iunlockput(ip);\r\n      return 0;\r\n    }\r\n    iunlockput(ip);\r\n    ip = next;\r\n  }\r\n  if(nameiparent){\r\n    iput(ip);\r\n    return 0;\r\n  }\r\n  return ip;\r\n}\r\n\r\nstruct inode*\r\nnamei(char *path)\r\n{\r\n  char name&#x5B;DIRSIZ];\r\n  return namex(path, 0, name);\r\n}\r\n\r\nstruct inode*\r\nnameiparent(char *path, char *name)\r\n{\r\n  return namex(path, 1, name);\r\n}<\/pre>\n<p>namex\u95a2\u6570\u306f\u3001\u307e\u305a\u30d1\u30b9\u3092\u3069\u3053\u304b\u3089\u8a55\u4fa1\u3059\u308b\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u3002<br \/>\n\u30d1\u30b9\u304c&#8221;\/&#8221;\u3067\u59cb\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u8a55\u4fa1\u306f\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u958b\u59cb\u3055\u308c\u308b\u3002<br \/>\n\u30d1\u30b9\u304c&#8221;\/&#8221;\u3067\u59cb\u307e\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u8a55\u4fa1\u304c\u958b\u59cb\u3055\u308c\u308b\u3002<br \/>\n\u305d\u3057\u305f\u3089\u3001\u30d1\u30b9\u306e\u5404\u8981\u7d20\u306b\u3064\u3044\u3066\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306bskipelem\u95a2\u6570\u3092\u4f7f\u3046\u3002<br \/>\n\u30eb\u30fc\u30d7\u4e2d\u306e\u5404\u53cd\u5fa9\u3067\u306f\u3001\u73fe\u5728\u306einode\u3067\u3042\u308bip\u304b\u3089name\u3092\u63a2\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<br \/>\n\u30eb\u30fc\u30d7\u4e2d\u306f\u3001\u307e\u305aip\u3092\u30ed\u30c3\u30af\u3057\u3001\u305d\u308c\u304c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306a\u3051\u308c\u3070\u3001namex\u306f\u5931\u6557\u3068\u306a\u308a0\u3092\u8fd4\u3059\u3002<br \/>\n(ip\u306e\u30ed\u30c3\u30af\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001ip-&gt;type\u304c\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u3063\u3066\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u304b\u3089\u3067\u306f\u306a\u3044\u3002\u305d\u308c\u306f\u4e0d\u53ef\u80fd\u3067\u3042\u308b\u3002ip\u306e\u30ed\u30c3\u30af\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001ilock\u304c\u5b9f\u884c\u3055\u308c\u308b\u307e\u3067\u306f\u3001ip-&gt;type\u304c\u3001\u30c7\u30a3\u30b9\u30af\u304b\u3089\u8aad\u307f\u8fbc\u307e\u308c\u305f\u76f4\u5f8c\u306e\u307e\u307e\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u306f\u4fdd\u8a3c\u3055\u308c\u306a\u3044\u304b\u3089\u3067\u3042\u308b\u3002)<br \/>\nnameiparent\u95a2\u6570\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u3001\u304b\u3064\u30d1\u30b9\u306e\u6700\u5f8c\u306e\u8981\u7d20\u306e\u5834\u5408\u3001nameiparent\u95a2\u6570\u306e\u5b9a\u7fa9\u306b\u57fa\u3065\u304d\u30eb\u30fc\u30d7\u306f\u65e9\u3081\u306b\u6b62\u307e\u308b\u3002<br \/>\n\u6700\u5f8c\u306e\u30d1\u30b9\u306e\u8981\u7d20\u306f\u3001\u3059\u3067\u306bname\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001namex\u95a2\u6570\u306f\u30a2\u30f3\u30ed\u30c3\u30af\u3055\u308c\u305fip\u3092\u8fd4\u3059\u3060\u3051\u3067\u3088\u3044\u3002<br \/>\n\u6700\u5f8c\u306b\u3001\u30eb\u30fc\u30d7\u4e2d\u3067\u306fdirlookup\u95a2\u6570\u3092\u4f7f\u3063\u3066\u30d1\u30b9\u306e\u8981\u7d20\u3092\u8abf\u3079\u3001ip = next\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u6b21\u306e\u53cd\u5fa9\u306b\u5099\u3048\u308b\u3002<br \/>\n\u30eb\u30fc\u30d7\u3067\u30d1\u30b9\u306e\u8981\u7d20\u3092\u8d70\u67fb\u3057\u5c3d\u304f\u3057\u305f\u3068\u304d\u306f\u3001ip\u3092\u8fd4\u3059\u3002<\/p>\n<h3>\u611f\u60f3<\/h3>\n<p>\u3059\u3050\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5c64\u3092\u4f7f\u3063\u3066\u968e\u5c64\u7684\u306a\u30d1\u30b9\u3092\u3069\u3046\u8868\u73fe\u3059\u308b\u304b\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5c64\u3067\u306f\u3001\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u540d\u524d\u3068inode\u306e\u7d44\u3092\u30c7\u30fc\u30bf\u69cb\u9020\u4e0a\u306f1\u968e\u5c64\u5206\u3057\u304b\u6301\u3061\u307e\u305b\u3093\u3002<br \/>\n\u305d\u306einode\u304c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5834\u5408\u3001\u968e\u5c64\u69cb\u9020\u3092\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u305d\u306e\u968e\u5c64\u69cb\u9020\u3068\u3001\u30d1\u30b9\uff08\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u968e\u5c64\u3092&#8221;\/&#8221;\u3067\u533a\u5207\u3063\u305f\u6587\u5b57\u5217\u8868\u73fe\uff09\u3092\u5bfe\u5fdc\u4ed8\u3051\u308b\u30b3\u30fc\u30c9\u306e\u8aac\u660e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[405],"class_list":["post-1663","post","type-post","status-publish","format-standard","hentry","category-tech","tag-xv6"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=1663"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1663\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=1663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=1663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=1663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}