projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dbf719
)
don't close file description in widely
author
Gui Chen
<gui.chen@intel.com>
Thu, 17 Oct 2013 09:51:45 +0000
(
05:51
-0400)
committer
Gui Chen
<gui.chen@intel.com>
Thu, 17 Oct 2013 09:51:45 +0000
(
05:51
-0400)
Change-Id: I30b3986421c86c6b2a427f463f6362f937347bcb
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/fs_related.py
patch
|
blob
|
history
diff --git
a/mic/utils/fs_related.py
b/mic/utils/fs_related.py
index b3f6110b04dcb7d64da64d4e126707fd84c33b40..8b4d93f6c2442e48d4d5071630352871e71fd793 100644
(file)
--- a/
mic/utils/fs_related.py
+++ b/
mic/utils/fs_related.py
@@
-907,12
+907,6
@@
class LoopDevice(object):
if self._kpseek(self.device):
- if self.created:
- for i in range(3, os.sysconf("SC_OPEN_MAX")):
- try:
- os.close(i)
- except:
- pass
runner.quiet([self.kpartxcmd, "-d", self.device])
if self._loseek(self.device):
runner.quiet([self.losetupcmd, "-d", self.device])