[Parted-edge] Re: Initial snapshot of C++ bindings.

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Fri Mar 16 21:28:13 CET 2007


I see that the unit tests in libpartedpp fail completely. This is
partly because of the fact that the tests are written in such a manner
so as to directly make use of the system's block devices. eg.,
/dev/hda. I do not like this way of doing things, because:
a. 'make check' needs root privileges to execute the tests.
b. In case there is a mistake in the code, the entire block device
might get badly affected.

Therefore I am curious to know the original reason for using /dev/hda
instead of a custom-made loop device. I personally like the Otavio has
written the test in Parted, where a loop device is created during
running the tests and the operations are performed on it, instead of
any of the actual block devices in the system.

Happy hacking,
Debarshi
-- 
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu



More information about the Parted-edge mailing list