cleanup also when sys loop device used
authorGui Chen <gui.chen@intel.com>
Mon, 21 Jan 2013 15:25:14 +0000 (23:25 +0800)
committerGui Chen <gui.chen@intel.com>
Mon, 21 Jan 2013 17:38:02 +0000 (01:38 +0800)
commitba4ec965ae07cd0cdacf7c58adda72579493fded
tree2b23b1d0e7b244d1041b81e265f24ca190e67cab
parent9447922b743b2ccaac52b286e101abb368dbf1fe
cleanup also when sys loop device used

some interfaces are added to make LoopDevice as
loop device manager:
register: if loop device existed, register it in
          LoopDevice, and benefit the cleanup
reg_atexit: not all loop device need this atexit,
            make it optional
now, such as 'loop0' will benefit the cleanup of
LoopDevice 'cause above interface

Change-Id: I110a1aaf0179d04a31f31f7ed54b2b75cdb6bc01
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/fs_related.py