-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (38 loc) · 971 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
all:
prepare:
sudo apt-get install python3-lz4
prepare-llfuse:
wget https://bitbucket.org/nikratio/python-llfuse/downloads/llfuse-1.3.3.tar.bz2
tar xvf llfuse-1.3.3.tar.bz2
cd llfuse-1.3.3; python3 setup.py build; sudo python3 setup.py install
server:
cd block_server; sudo python3 server.py
gen-test:
-sudo zpool export datapool
-sudo bash gen1.sh
for i in `seq 0 2`; do \
dd if=/dev/zero of=disk$${i}.bin bs=1024 count=$$((1024*64)); \
done
sudo bash gen0.sh
sudo bash gen2.sh
sudo zpool export datapool
sudo bash gen1.sh
genone-test:
-sudo zpool export datapoolone
-sudo bash genone_1.sh
dd if=/dev/zero of=disk3.bin bs=1024 count=$$((1024*100))
sleep 0.5
sudo bash genone_0.sh
sudo bash genone_2.sh
sudo zpool export datapoolone
sudo bash genone_1.sh
unzip:
for i in `seq 0 2`; do \
bunzip2 -kf disk$${i}.bin.bz2; \
done
dump:
sudo zdb -ddddddd datapool > datapool.dump.txt
de:
gcc -g de.c -o de.exe
re:
python3 zfs_rescue.py