Skip to content

Commit 1428892

Browse files
ppennaCopilot
andcommitted
doc: say that a virtio-fs restore needs a next node ID above the root's
The host filesystem's description of a restore said that the device requires unique IDs below the next IDs, but not that the next node ID must also pass node 1, the root's. A single share saves its root as node 1, so its next node ID passed the root anyway, but an aggregate saves no node for its synthetic root, and OpenVMM accepted an aggregate state without nodes whose next node ID was 1, which gave the synthetic root's node to the first child that the guest looked up (#2134). The pinned OpenVMM refuses that state. Say that a restore requires a next node ID above the root's, even for an aggregate, which saves no node for its synthetic root. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bcfa759 commit 1428892

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,11 @@ it:
497497
2. Before the transport changes any state, the device validates the saved
498498
state: a known schema version, the fixed device shape, a FUSE session that
499499
the device would negotiate, at minor version 31 or newer, tables within
500-
their bounds, unique IDs below the next IDs, and handles open for writing,
501-
whose access mode is `O_WRONLY` or `O_RDWR`, only where the export or child
502-
is read-write and every name of the node is writable, as `OPEN` requires.
500+
their bounds, unique IDs below the next IDs, a next node ID above the
501+
root's, even for an aggregate, which saves no node for its synthetic root,
502+
and handles open for writing, whose access mode is `O_WRONLY` or `O_RDWR`,
503+
only where the export or child is read-write and every name of the node is
504+
writable, as `OPEN` requires.
503505
3. When the restored device first starts, before it services any request, the
504506
server rebuilds the node table with the saved node IDs and lookup counts.
505507
It resolves every recorded name beneath the supplied export without

0 commit comments

Comments
 (0)