From 322fa97f6a3265714a97ddf86b5e02d2b1d3a31c Mon Sep 17 00:00:00 2001
From: Bruce Leidl <bruce@subgraph.com>
Date: Tue, 29 Jan 2019 13:40:35 -0500
Subject: [PATCH] add 'realmfs-name' as a potential metainfo field

---
 libcitadel/src/header.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libcitadel/src/header.rs b/libcitadel/src/header.rs
index 0c2fd69..bb6b618 100644
--- a/libcitadel/src/header.rs
+++ b/libcitadel/src/header.rs
@@ -298,6 +298,8 @@ struct MetaInfoToml {
     kernel_version: Option<String>,
     #[serde(rename = "kernel-id")]
     kernel_id: Option<String>,
+    #[serde(rename = "realmfs-name")]
+    realmfs_name: Option<String>,
     version: u32,
     timestamp: String,
     #[serde(rename = "base-version")]
@@ -347,6 +349,8 @@ impl MetaInfo {
 
     pub fn kernel_id(&self) -> Option<&str> { self.toml().kernel_id.as_ref().map(|s| s.as_str()) }
 
+    pub fn realmfs_name(&self) -> Option<&str> { self.toml().realmfs_name.as_ref().map(|s| s.as_str()) }
+
     pub fn version(&self) -> u32 {
         self.toml().version
     }