Skip to content

Commit

Permalink
update from gridea: 2020-03-08 22:19:32
Browse files Browse the repository at this point in the history
  • Loading branch information
lesywix committed Mar 8, 2020
1 parent dc47eec commit 89ad855
Show file tree
Hide file tree
Showing 15 changed files with 520 additions and 13 deletions.
14 changes: 13 additions & 1 deletion archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>Lesywix</title>

<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583167487524">
<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583677166795">
<link rel="stylesheet" href="https://lesywix.github.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
Expand Down Expand Up @@ -96,6 +96,18 @@
<h2 class="year gt-c-cotent-color-first">2020</h2>


<article class="post">
<a href="https://lesywix.github.io/post/hard-link-and-soft-link/">
<div class="post-title gt-c-content-color-first">
<code>2020-03-08</code>
&nbsp;
Hard link &amp; Soft link
</div>
</a>
</article>



<article class="post">
<a href="https://lesywix.github.io/post/git-chong-xie-li-shi/">
<div class="post-title gt-c-content-color-first">
Expand Down
61 changes: 60 additions & 1 deletion atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,73 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://lesywix.github.io</id>
<title>Lesywix</title>
<updated>2020-03-02T16:44:50.159Z</updated>
<updated>2020-03-08T14:19:32.455Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<link rel="alternate" href="https://lesywix.github.io"/>
<link rel="self" href="https://lesywix.github.io/atom.xml"/>
<subtitle>做了点微小的贡献,谢谢大家</subtitle>
<logo>https://lesywix.github.io/images/avatar.png</logo>
<icon>https://lesywix.github.io/favicon.ico</icon>
<rights>All rights reserved 2020, Lesywix</rights>
<entry>
<title type="html"><![CDATA[Hard link & Soft link]]></title>
<id>https://lesywix.github.io/post/hard-link-and-soft-link/</id>
<link href="https://lesywix.github.io/post/hard-link-and-soft-link/">
</link>
<updated>2020-03-08T14:18:37.000Z</updated>
<content type="html"><![CDATA[<h2 id="overview"><strong>overview</strong></h2>
<p>文件系统由两部分组成:</p>
<ul>
<li>
<p>数据块:存储文件的内容</p>
</li>
<li>
<p>索引节点:存储文件的信息</p>
<figure data-type="image" tabindex="1"><img src="https://i.loli.net/2019/04/29/5cc6fc85612e7.jpg" alt="https://i.loli.net/2019/04/29/5cc6fc85612e7.jpg" loading="lazy"></figure>
</li>
</ul>
<h2 id="soft-link"><strong>soft link</strong></h2>
<p>是两个文件的链接,只是一个 shortcut(如 Windows 的快捷方式)</p>
<ul>
<li>
<p>如果删除软链,并不会影响到实际的文件,但是删除实际的文件,软链将会失效</p>
</li>
<li>
<p>软链可以跨越不同文件系统(主机),只要不同主机中相应的资源存在</p>
</li>
<li>
<p>软链可以链接文件或者文件夹</p>
</li>
<li>
<p>软链的文件系统标识是 <code>l</code>,表示这是个软链,例如在 Linux 下使用 <code>ll</code> 的命令,可以看到软链为 <code>lrwxr-xr-x 1 user staff 13B Mar 6 15:51 softlink -&gt; test/softlink</code></p>
<p>创建软链的方法: <code>ln -s &lt;source&gt; &lt;linkname&gt;</code></p>
</li>
</ul>
<h2 id="hard-link"><strong>hard link</strong></h2>
<p>硬链是实际文件的副本,硬链和被链接的文件共享一个索引节点</p>
<ul>
<li>
<p>如果原文件被删除,硬链仍然可以访问原文件,直到所有指向原文件的硬链都被删除了</p>
</li>
<li>
<p>硬链不能跨越文件系统,因为他们共享一个索引节点,硬链指向的是硬件的路径而不是目录树</p>
</li>
<li>
<p>硬链只能链接文件而不能链接目录</p>
</li>
<li>
<p>原文件与硬链之间的关系是平等的</p>
</li>
<li>
<p>使用硬链可以方便实现 <code>copy on write</code> 的场景,他能保存文件的副本</p>
</li>
<li>
<p>硬链作为一个普通的文件,所以在文件系统的标识为 <code>-</code></p>
<p>创建硬链的方法: <code>ln &lt;source&gt; &lt;linkname&gt;</code></p>
</li>
</ul>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Git 重写历史]]></title>
<id>https://lesywix.github.io/post/git-chong-xie-li-shi/</id>
Expand Down
27 changes: 26 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>Lesywix</title>

<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583167487524">
<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583677166795">
<link rel="stylesheet" href="https://lesywix.github.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
Expand Down Expand Up @@ -92,6 +92,31 @@
<div class="post-list-container">
<div class="post-inner">

<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>

<a href="https://lesywix.github.io/post/hard-link-and-soft-link/">
<span class="post-title gt-c-content-color-first">Hard link &amp; Soft link</span>
</a>
</div>
<div class="gt-post-content post-abstract gt-c-content-color-second">

</div>
<div class="post-info">
<time class="post-time gt-c-content-color-first">
发布于 · 2020-03-08 ·
</time>

<a href="https://lesywix.github.io/tag/system/" class="post-tag">
# system
</a>

</div>
</div>

</div>

<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>
Expand Down
2 changes: 1 addition & 1 deletion post/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>About Me | Lesywix</title>

<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583167487524">
<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583677166795">
<link rel="stylesheet" href="https://lesywix.github.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>Django admin 移除更改删除操作 | Lesywix</title>

<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583167487524">
<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583677166795">
<link rel="stylesheet" href="https://lesywix.github.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>[翻译] 使用 Django model 锁处理并发 | Lesywix</title>

<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583167487524">
<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583677166795">
<link rel="stylesheet" href="https://lesywix.github.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
Expand Down
2 changes: 1 addition & 1 deletion post/git-chong-xie-li-shi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>Git 重写历史 | Lesywix</title>

<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583167487524">
<link rel="shortcut icon" href="https://lesywix.github.io/favicon.ico?v=1583677166795">
<link rel="stylesheet" href="https://lesywix.github.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
Expand Down
Loading

0 comments on commit 89ad855

Please sign in to comment.