All of lore.kernel.org
 help / color / mirror / Atom feed
* Writing basic functions using libdevmapper.h
@ 2005-08-01 14:47 Taavi Ilves
  0 siblings, 0 replies; only message in thread
From: Taavi Ilves @ 2005-08-01 14:47 UTC (permalink / raw)
  To: dm-devel

Hi!

I'm a quite C newbie, but for my school-project I need something to be 
done with device-mapper.

Problem is quite simple: I have a device-mapper device ( in /dev/mapper 
) and I must find out which loop ( or actually whatever ) device is 
behind that mapper-device device.

Example: status output with cryptsetup

# cryptsetup status /dev/mapper/secret10
/dev/mapper//dev/mapper/secret10 is active:
   cipher:  aes-cbc-plain
   keysize: 256 bits
   device:  /dev/loop/1
   offset:  0 sectors
   size:    917 sectors
   mode:    read/write

This device field is what I'm looking for. I have looked into dm-setup 
and cryptsetup too, where libdevmapper.h is being used to get such 
information, but those applications were quite advance for me to study.

So I seek documentation and maybe some simple examples to learn how to 
use libdevmapper.h . I don't need full source-code solution for my 
problem, but still I welcome anything that leads to the solution. Thanks 
ahead!

Best wishes,
Taavi Ilves

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-01 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-01 14:47 Writing basic functions using libdevmapper.h Taavi Ilves

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.