Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shgpavel/test_assignment

YADRO job perf task
https://github.com/shgpavel/test_assignment

c device-mapper linux-kernel

Last synced: about 1 month ago
JSON representation

YADRO job perf task

Awesome Lists containing this project

README

        

## test_assignment

### Build

   make

### Install

#  insmod dmp.ko

### Test

First create the example device and proxy device by doing

#  dmsetup create zero1 --table "0 _SIZE_ zero" # You should define the _SIZE_

#  dmsetup create dmp1  --table "0 _SIZE_ dmp /dev/mapper/zero1"

Then make sure everything was successfully created with

#  dmsetup ls

Or
$  ls -al /dev/mapper/*

After try to read and write to a proxy device

#  dd if=/dev/random of=/dev/mapper/dmp1 bs=4k count=1

#  dd of=/dev/null if=/dev/mapper/dmp1 bs=4k count=1

For statistics

#  cat /sys/module/dmp/stat/volumes

### Remove

First you need to remove created devices, so run

# dmsetup remove dmp1 zero1

Then unload the module
# rmmod dmp

And clean src directory
make clean