My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 17: Device Mapper table update
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by sandeepksinha, Dec 22, 2008
Hi Guys,
I have made the required changes to get the information for device mapper.
It will surely be enhanced and optimized later on for sure.

So, for using it.

This is the actual kernel module which extracts the information from devmapper.

0.1 replace the ohsm/source/linux-2.6.27/drivers/md/dm.c file.
0.2 Do a make to build make SUBDIRS=drivers/md modules
0.3 do a make SUBDIRS=drivers/md modules_install
0.4 Reboot or insmod dm-mod.ko with full path to the module

1. Go to ohsm/source/ohsmcore/
2. Make
3. insmod ohsm_ioctl.ko

This actually hits an ioctl on the LV created and moves the required
information in a structure that we fecth later on in the next step into our
ohsm module.

4. go to /ohsm/source/devmapper
5. do a gcc ohsm_dm_ioctl.c
6. ./a.out

 Here we extract the information from MD module to our ohsm module. This is
an ioctl to the ohsm module. Where as the last one was the ioctl to the DM
module.
3. Go to ohsm/userspace/
4. do a gcc
5. ./a.out


You can check the DMESG after each step.
Also, the structure are there in the include directory. the final stuct
will be mapper_table.

Dec 24, 2008
Project Member #1 checkout...@gmail.com
I have done necessary changes to the code.

The code is fully operational and it providing all the required data.

so work of Device Mapper i think is finished
Status: Done

Powered by Google Project Hosting