<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks<BR>My module is creating target similar to pool and thin from dm_thin.c. <BR>if the user creates a pool named "Pool1", and now he wishes<BR>to watch statistics/inside info regarding this pool,<BR>I wanted to create a proc entry<BR>/proc/my module name/pools/Pool1 <BR> <BR>for that I need the pool name which now it seems to me that I cannot find out.<BR> <BR>I can ask the user to add another parameter during the pool creation, but seems<BR>Like an overhead and I'll need to do some extra verefications etc.<BR> <BR>Regards<BR>-gili<BR><br> <BR><div>> To: dm-devel@redhat.com<br>> From: zdenek.kabelac@gmail.com<br>> Date: Mon, 6 Jul 2015 13:20:38 +0200<br>> Subject: Re: [dm-devel] Getting mapped device namw<br>> <br>> Dne 6.7.2015 v 11:20 Gili B napsal(a):<br>> > hi<br>> > when a user run :<br>> > dmsetup create [device name] ....<br>> > Can a device mapper target find out the device name that the user entered ?<br>> > I need it for creating entries in proc for example.<br>> <br>> It's probably worth to note here - the dm target should always care ONLY about <br>> major:minor - it should never care about the name of device.<br>> It looks like you are doing something weird in your target.<br>> <br>> Regards<br>> <br>> Zdeenk<br>> <br>> --<br>> dm-devel mailing list<br>> dm-devel@redhat.com<br>> https://www.redhat.com/mailman/listinfo/dm-devel<br></div>                                      </div></body>
</html>