Discussion:
Two questions about pyparted
Alexander Todorov
2015-06-11 11:07:03 UTC
Permalink
Hi guys,
in one of my latest PRs there are a few commented out lines:
https://github.com/rhinstaller/pyparted/pull/10/files


First, getting unavailable partition flag doesn't raise an exception like
setting does. Is this expected ?

# try getting unavailable flag - doesn't raise an exception
# with self.assertRaises(_ped.PartedException):
# self._part.get_flag(1000)



Looks like loopback mounted devices are not detected as busy by libparted. I've
taken this snippet from another test, where it is commented out as well:

# TODO: need to figure out how to make a loopback device look mounted to
# libparted
# self.mkfs()
# self.doMount()
# self.assertTrue(self._part.is_busy())


What do we want to do about this? File a bug upstream is the first one to do I
guess.


--
Alex

Loading...