[CRIU] [PATCH 1/5] connection: Rename
Pavel Emelyanov
xemul at parallels.com
Thu Oct 22 07:13:48 PDT 2015
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
p.haul | 5 ++---
p.haul-service | 5 ++---
phaul/{p_haul_connection.py => connection.py} | 0
3 files changed, 4 insertions(+), 6 deletions(-)
rename phaul/{p_haul_connection.py => connection.py} (100%)
diff --git a/p.haul b/p.haul
index 5a629bc..87b4087 100755
--- a/p.haul
+++ b/p.haul
@@ -4,7 +4,7 @@ import sys
import argparse
import logging
import phaul.p_haul_iters
-import phaul.p_haul_connection
+import phaul.connection
import phaul.images
import phaul.criu_api
import phaul.p_haul_type
@@ -69,8 +69,7 @@ sys.excepthook = log_uncaught_exception
logging.info("Starting p.haul")
# Establish connection
-connection = phaul.p_haul_connection.establish(args.fdrpc, args.fdmem,
- args.fdfs)
+connection = phaul.connection.establish(args.fdrpc, args.fdmem, args.fdfs)
# Start the migration
ph_type = args.type, args.id
diff --git a/p.haul-service b/p.haul-service
index 858b0ff..382ddca 100755
--- a/p.haul-service
+++ b/p.haul-service
@@ -6,7 +6,7 @@ import argparse
import logging
import phaul.xem_rpc
import phaul.p_haul_service
-import phaul.p_haul_connection
+import phaul.connection
parser = argparse.ArgumentParser("Process HAULer service server")
parser.add_argument("--fdrpc", help="File descriptor of rpc socket", type=int, required=True)
@@ -33,8 +33,7 @@ def fin(foo, bar):
logging.info("Starting p.haul service")
# Establish connection
-connection = phaul.p_haul_connection.establish(args.fdrpc, args.fdmem,
- args.fdfs)
+connection = phaul.connection.establish(args.fdrpc, args.fdmem, args.fdfs)
t = phaul.xem_rpc.rpc_threaded_srv(phaul.p_haul_service.phaul_service,
connection)
diff --git a/phaul/p_haul_connection.py b/phaul/connection.py
similarity index 100%
rename from phaul/p_haul_connection.py
rename to phaul/connection.py
--
1.9.3
More information about the CRIU
mailing list