[CRIU] [PATCH 4/6] p.haul: remove unused util.path_to_fs function

Nikita Spiridonov nspiridonov at odin.com
Mon Dec 14 02:15:29 PST 2015


util.path_to_fs no longer needed, so remove it.

Signed-off-by: Nikita Spiridonov <nspiridonov at odin.com>
---
 phaul/util.py |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/phaul/util.py b/phaul/util.py
index 00824d5..ee4cb26 100644
--- a/phaul/util.py
+++ b/phaul/util.py
@@ -46,18 +46,6 @@ class net_dev:
 		self.link = link
 
 
-def path_to_fs(path):
-	dev = os.stat(path)
-	dev_str = "%d:%d" % (os.major(dev.st_dev), os.minor(dev.st_dev))
-	mfd = open("/proc/self/mountinfo")
-	for ln in mfd:
-		ln_p = ln.split(None, 9)
-		if dev_str == ln_p[2]:
-			return ln_p[8]
-
-	return None
-
-
 def ifup(ifname):
 	logging.info("\t\tUpping %s", ifname)
 	os.system("ip link set %s up" % ifname)
-- 
1.7.1



More information about the CRIU mailing list