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