add patch to run lsof as well as fuser and ls on mount points

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
Dennis Gilmore 2016-08-19 09:16:16 -05:00
parent 9807b8261d
commit 32f7f584fd
3 changed files with 32 additions and 2 deletions

View File

@ -1,8 +1,8 @@
From 893c2b59b01bac9ab8ef6764ed4b33f353a4d745 Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <dennis@ausil.us>
Date: Thu, 18 Aug 2016 16:31:34 -0500
Subject: [PATCH] in additoon to running fuser on /dev/shm also run ls to see
whats in it
Subject: [PATCH 1/2] in additoon to running fuser on /dev/shm also run ls to
see whats in it
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
---

View File

@ -0,0 +1,26 @@
From 4428f16c9501c32d8ad159492bf728791d8d364a Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <dennis@ausil.us>
Date: Fri, 19 Aug 2016 09:13:57 -0500
Subject: [PATCH 2/2] run lsof on the mountpoints that fail to unmount
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
---
src/pylorax/imgutils.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py
index 68ec70a..77f4eba 100644
--- a/src/pylorax/imgutils.py
+++ b/src/pylorax/imgutils.py
@@ -220,6 +220,8 @@ def umount(mnt, lazy=False, maxretry=3, retrysleep=1.0, delete=True):
logger.debug("fuser -vm:\n%s\n", fuser)
ls = execWithCapture("ls", ["-lah", mnt])
logger.debug("ls -lah:\n%s\n", ls)
+ lsof = execWithCapture("lsof", [mnt])
+ logger.debug("lsof\n%s\n", lsof)
sleep(retrysleep)
else:
break
--
2.7.4

View File

@ -16,6 +16,7 @@ URL: https://github.com/rhinstaller/lorax
# tito build --tgz
Source0: %{name}-%{version}.tar.gz
Patch0: 0001-in-additoon-to-running-fuser-on-dev-shm-also-run-ls-.patch
Patch1: 0002-run-lsof-on-the-mountpoints-that-fail-to-unmount.patch
BuildRequires: python3-devel
@ -150,6 +151,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
%changelog
* Fri Aug 19 2016 Dennis Gilmore <dennis@ausil.us> - 25.13-4
- add patch to run lsof as well as fuser and ls on mount points
* Thu Aug 18 2016 Dennis Gilmore <dennis@ausil.us> - 25.13-2
- add a patch to do a ls of /dev/shm for testing of lives