don't close file description in widely
authorGui Chen <gui.chen@intel.com>
Thu, 17 Oct 2013 09:51:45 +0000 (05:51 -0400)
committerGui 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

index b3f6110..8b4d93f 100644 (file)
@@ -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])