Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shgpavel/test_assignment
- Owner: shgpavel
- License: other
- Created: 2024-05-17T16:02:02.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-13T12:44:29.000Z (5 months ago)
- Last Synced: 2024-09-29T14:42:41.808Z (about 2 months ago)
- Topics: c, device-mapper, linux-kernel
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 zero1Then unload the module
# rmmod dmpAnd clean src directory
make clean