[dm-devel] dmsetup on uClibc based system
Pete Flugstad
peteflugstad at mchsi.com
Fri Mar 19 00:45:16 UTC 2004
Greetings
(resend now that I'm subscribed and sending from the right account...)
I'm trying to get dmsetup running on an embedded uClibc based
system - linux kernel 2.6.4 - X86 architecture, GCC 3.3.1. The first
problem seems to be that when reading the table file, dmsetup uses the
'a' conversion modifier to have sscanf malloc space for the resulting
string. uClibc doesn't appear to support this. No biggy, fairly easy
fix (I believe - I assume ttype won't be larger than the line read in).
Patch attached.
Next problem is that I'm getting an error when I try and setup a
"chunk" of a partition:
[root at denis root]# dmsetup create hdc5.000
0 204800 linear /dev/hdc5 0<cr>
<ctrl-D>
device-mapper ioctl cmd 9 failed: Invalid argument
Command failed
[root at denis root]# dmsetup ls
hdc5.000 (254, 0)
[root at denis root]# ls /dev/mapper/
control
The command appears to have worked, but the entry in /dev/mapper is
not there.
Does dmsetup not work on partitions? Or is this probably something
else going on? Does it matter if the partition in question is mounted?
Thanks,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmsetup.c.diff
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20040318/187211bd/attachment.ksh>
More information about the dm-devel
mailing list