Skip to content

Commit

Permalink
fixup! [LibOS] Convert pseudo filesystem to use inodes
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Marczewski <[email protected]>
  • Loading branch information
pwmarcz committed Feb 15, 2022
1 parent b5b6a13 commit 4435774
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LibOS/shim/include/shim_fs_pseudo.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ struct shim_dev_ops {
* The constructors for `pseudo_node` (`pseudo_add_*`) take arguments for most commonly used fields.
* The node can then be further customized by directly modifying other fields.
*
* NOTE: We assume that all Gramine processes within a single run create exactly the same set of
* nodes, in the same order, during initialization. This is because we use the node number (`id`)
* NOTE: We assume that all Gramine processes within a single instance create exactly the same set
* of nodes, in the same order, during initialization. This is because we use the node number (`id`)
* for checkpointing.
*/
DEFINE_LIST(pseudo_node);
Expand Down
3 changes: 3 additions & 0 deletions LibOS/shim/src/fs/shim_fs_pseudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

LISTP_TYPE(pseudo_node) g_pseudo_roots = LISTP_INIT;

/* Array of nodes by ID. Used for restoring a node from checkpoint (we send only node ID). We assume
* that all Gramine processes within a single instance create exactly the same set of nodes, in the
* same order, during initialization. */
static struct pseudo_node* g_pseudo_nodes[PSEUDO_MAX_NODES];
static unsigned int g_pseudo_node_count;

Expand Down

0 comments on commit 4435774

Please sign in to comment.