summaryrefslogtreecommitdiff
path: root/draft/uftp/notes.txt
blob: 25ee4b0f1b1ca45a5b96ecc189170466ebc4e8e2 (plain)
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
SRCPART=/dev/sda2
DESTDIR=/home
PARTCLONE_EXTRAOPTS="-N"
SPLIT_SIZE=1G

partclone.imager -c -s $SRCPART -o - $PARTCLONE_EXTRAOPTS | split -b$SPLIT_SIZE - $DESTDIR/partclone-sda2.img.



----------------

PARTCLONE_EXTRAOPTS="-N"
DSTPART=/dev/sda2
./sinkcat.sh /dev/shm/sink | partclone.restore $PARTCLONE_EXTRAOPTS -o $DSTPART

----------------------

# setsockopt(3, SOL_IPV6, 0x2a /* IPV6_??? */, "\2\0\0\0\0\0\0\0\n\0\0\0\0\0\0\0\377\3\0\0\0\0\0\0\0\0\0\1\0\2\0\3"..., 136) = -1 EADDRINUSE (Address already in use)
#write(2, "Error joining multicast group", 29Error joining multicast group) = 29
#write(2, ": Address already in use", 24: Address already in use) = 24

ADDR_OPTS="-M ff02::42 -I 2/6" # Bug si IP multiples sur même interface
LOG_OPTS="-x3 -S /tmp/uftpd.csv -L /dev/shm/uftpd.log "
DIR_OPTS="-T /dev/shm/tmp -D /dev/shm/uftpd -i"
mkdir /dev/shm/{tmp,uftpd}

./uftpd -q -B 2097152 $LOG_OPTS $ADDR_OPTS $DIR_OPTS
[ $? -eq 0 ] && netstat -nlu | grep -q ':1044 ' && echo -e '\033[42m' ----- UFTPD ready ----- '\033[40m'

./sinkdo.sh /dev/shm/uftpd /dev/shm/sink


---------------------------------------------------

IMGDIR=/home/lpouzenc/git/eficast/testimage
#RATE_OPTS="-R90000 -W 400 -s 20"
RATE_OPTS="-C tfmcc -s 20"
LOG_OPTS="-x2 -S /tmp/uftpd.csv"
ADDR_OPTS="-M ff02::42 -P ff02::43 -I 3/6" # -I 3/6 is virbr0 ipv6

./uftp -f $RATE_OPTS $LOG_OPTS $ADDR_OPTS -- $IMGDIR/*