[CRIU] [PATCH] pipe: prevent dumping pipes in the packetized mode

Andrey Vagin avagin at openvz.org
Mon Mar 18 13:57:07 EDT 2013


This mode was introduced less than year ago:

commit 9883035ae7edef3ec62ad215611cb8e17d6a1a5d
Author: Linus Torvalds <torvalds at linux-foundation.org>
Date:   Sun Apr 29 13:12:42 2012 -0700

    pipes: add a "packetized pipe" mode for writing

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 pipes.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pipes.c b/pipes.c
index fe5b920..822ba20 100644
--- a/pipes.c
+++ b/pipes.c
@@ -489,6 +489,11 @@ static int dump_one_pipe(int lfd, u32 id, const struct fd_parms *p)
 	pr_info("Dumping pipe %d with id %#x pipe_id %#x\n",
 			lfd, id, pipe_id(p));
 
+	if (p->flags & O_DIRECT) {
+		pr_error("The packetized mode for pipes is not supported yet");
+		return -1;
+	}
+
 	pe.id		= id;
 	pe.pipe_id	= pipe_id(p);
 	pe.flags	= p->flags;
-- 
1.7.11.7



More information about the CRIU mailing list