Skip to content

Commit 0df4d61

Browse files
ppennaCopilot
andcommitted
doc: say that a hard link to a node whose names are gone fails
The host filesystem's description of nodes says that renames and removals rewrite or remove the names that each node records, but not what a node is once the guest has removed them all. The node keeps the last name, which other requests about the node still use, and another object may since have appeared there, which a hard link to the node then linked instead (#1608). The pinned OpenVMM refuses such a link with ENOENT. Say that a node whose names are all removed keeps the last one, where another object may since appear, so that a hard link to the node fails with ENOENT, as Linux refuses to link an unlinked file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6f09665 commit 0df4d61

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎doc/design/3.6-host-filesystem.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ names at and below the affected path in every node, and an exchanging rename
216216
swaps them. A rename that changes nothing on the host keeps them: one of a
217217
name onto itself, or, on a Linux host, one of a hard link onto another link of
218218
the same object. A Windows host removes the source link of the latter, and the
219-
names follow it.
219+
names follow it. A node whose names are all removed keeps the last one, where
220+
another object may since appear, so a hard link to the node fails with
221+
`ENOENT`, as Linux refuses to link an unlinked file.
220222

221223
`OPEN`, `OPENDIR`, and `CREATE` return handles. A handle owns a host
222224
descriptor, opened without following the final component, which every request

0 commit comments

Comments
 (0)