On Thu, Feb 08, 2007 at 07:52:53PM +0100, Johannes Schlumberger wrote:
Hi,
> [22:28:[EMAIL PROTECTED]:/tmp]# echo '0 10000 crypt aes-cbc-essiv:sha256 \
> 0123456789abcdef0123456789abcdef 0 /dev/md0 0' > map
> [22:28:[EMAIL PROTECTED]:/tmp]# dmsetup create root map
> device-mapper: reload ioctl failed: Invalid argument
> Command failed
Could you try this again with a couple of "-v" arguments added to the
dmsetup command -> "dmsetup -v -v -v -v -v -v -v -v -v -v create root map"
and see if you get some additional output?
[19:51:[EMAIL PROTECTED]:/tmp]# dmsetup -v -v -v -v -v -v -v -v -v -v create
root \
map
dm version OF [16384]
dm create root OF [16384]
dm reload root OF [16384]
device-mapper: reload ioctl failed: Invalid argument
dm remove root OF [16384]
Command failed
[19:51:[EMAIL PROTECTED]:/tmp]# cat map
0 10000 crypt aes-cbc-essiv:sha256 0123456789abcdef0123456789abcdef 0 /dev/md0 0
Hmm...do you know how to build debian packages from source?
It would be great if you could download the devmapper source package
("apt-get source libdevmapper1.02"), edit the file
devmapper-1.02.12/lib/ioctl/libdm-iface.c and add the line:
"fwrite(dmi, dmi->data_size, 1, stderr);"
at line 1553 (just before the "log_debug" statement).
Then build it ("dpkg-buildpackage -us -uc -rfakeroot"), install the
generated debs and try to run dmsetup again (without the -v flags).
Capture stderr to a file and mail it to me (it will contain the
passphrase you used, but for this test that would just be the dummy pass
from the map file).
The command to execute would be:
"dmsetup create root map 2> /tmp/dmsetup.stderr"
--
David Härdeman