<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 11, 2020 at 4:01 AM Ryan Gahagan <<a href="mailto:rgahagan@cs.utexas.edu">rgahagan@cs.utexas.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Signed-off-by: Ryan Gahagan <<a href="mailto:rgahagan@cs.utexas.edu" target="_blank">rgahagan@cs.utexas.edu</a>><br>
---<br>
 src/util/virstoragefile.c | 8 ++++++++<br>
 src/util/virstoragefile.h | 5 +++++<br>
 2 files changed, 13 insertions(+)<br>
<br>
diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c<br>
index 5a57e5d12d..cff6dabd9e 100644<br>
--- a/src/util/virstoragefile.c<br>
+++ b/src/util/virstoragefile.c<br>
@@ -2446,6 +2446,11 @@ virStorageSourceCopy(const virStorageSource *src,<br>
     def->ssh_host_key_check_disabled = src->ssh_host_key_check_disabled;<br>
     def->ssh_user = g_strdup(src->ssh_user);<br>
<br>
+    def->nfs_user = g_strdup(src->nfs_user);<br>
+    def->nfs_group = g_strdup(src->nfs_group);<br>
+    def->nfs_uid = src->nfs_uid;<br>
+    def->nfs_gid = src->nfs_gid;<br>
+<br>
     return g_steal_pointer(&def);<br>
 }<br>
<br>
@@ -2686,6 +2691,9 @@ virStorageSourceClear(virStorageSourcePtr def)<br>
<br>
     VIR_FREE(def->ssh_user);<br>
<br>
+    VIR_FREE(def->nfs_user);<br>
+    VIR_FREE(def->nfs_group);<br>
+<br>
     virStorageSourceInitiatorClear(&def->initiator);<br>
<br>
     /* clear everything except the class header as the object APIs<br>
diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h<br>
index c5d5f0233a..64fc519f87 100644<br>
--- a/src/util/virstoragefile.h<br>
+++ b/src/util/virstoragefile.h<br>
@@ -385,6 +385,11 @@ struct _virStorageSource {<br>
     /* these must not be used apart from formatting the output JSON in the qemu driver */<br>
     char *ssh_user;<br>
     bool ssh_host_key_check_disabled;<br>
+<br>
+    char *nfs_user;<br>
+    char *nfs_group;<br>
+    uid_t nfs_uid;<br>
+    gid_t nfs_gid;<br></blockquote><div>Only one pair of (nfs_user,nfs_group) or (nfs_uid,nfs_gid) is enough to identify the nfs connection. Please remove</div><div>a duplicated pair.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
 };<br>
<br>
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virStorageSource, virObjectUnref);<br>
-- <br>
2.29.0<br>
<br>
</blockquote></div></div>