diff options
author | Joursoir <chat@joursoir.net> | 2023-01-14 20:51:00 +0400 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2023-01-16 13:32:49 +0400 |
commit | c6f82e94b37e1d36694cbc9ade5721d4afae9d5b (patch) | |
tree | eb778cbada55f6c709a96a8d9d52d1eef7e5c9eb | |
parent | d11b16a6dd59145a5fc43017b39ff0fb5f7788fc (diff) | |
download | sbdd-c6f82e94b37e1d36694cbc9ade5721d4afae9d5b.tar.gz sbdd-c6f82e94b37e1d36694cbc9ade5721d4afae9d5b.tar.bz2 sbdd-c6f82e94b37e1d36694cbc9ade5721d4afae9d5b.zip |
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -36,6 +36,8 @@ ######## Makefile TARG_BLK = /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 +SBDD_BLK = /dev/sbdd +DD_ARGS = bs=512 count=1 default: $(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules @@ -51,3 +53,17 @@ unload: dmesg -C rmmod sbdd.ko dmesg + +test1: + dd $(DD_ARGS) if=/dev/urandom of=$(SBDD_BLK) + blockdev --flushbufs $(TARG_BLK) + dd $(DD_ARGS) if=$(TARG_BLK) of=./drive.log + dd $(DD_ARGS) if=$(SBDD_BLK) of=./sbdd.log + diff ./sbdd.log ./drive.log + +test2: + dd $(DD_ARGS) if=/dev/urandom of=$(TARG_BLK) + dd $(DD_ARGS) if=$(TARG_BLK) of=./drive.log + dd $(DD_ARGS) if=$(SBDD_BLK) of=./sbdd.log + diff ./sbdd.log ./drive.log + |