[CRIU] [PATCH 1/7] files: Add fd_parms::nmlink for fd/$n name passing to subroutines
Cyrill Gorcunov
gorcunov at openvz.org
Wed May 8 09:00:35 EDT 2013
This is an optional paramemer which we will need for
proc/ns name handling.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/files.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/files.h b/include/files.h
index 5ecc550..3927580 100644
--- a/include/files.h
+++ b/include/files.h
@@ -26,6 +26,14 @@ struct fd_parms {
pid_t pid;
FownEntry fown;
+ /*
+ * To keep name obtained from fd/$n,
+ * optional, may be NULL.
+ */
+ char *nmlink;
+ size_t nmsize;
+ size_t nmlen;
+
struct parasite_ctl *ctl;
};
@@ -33,6 +41,9 @@ struct fd_parms {
{ \
.fd = FD_DESC_INVALID, \
.fown = FOWN_ENTRY__INIT, \
+ .nmlink = NULL, \
+ .nmsize = 0, \
+ .nmlen = 0, \
}
struct file_desc;
--
1.8.1.4
More information about the CRIU
mailing list