/
usr
/
bin
/
/usr/bin
mkdir
upload
Name
Size
Mode
Actions
2to3
106
0755
edit
dl
rm
2to3-3.6
106
0755
edit
dl
rm
ab
74368
0755
edit
dl
rm
aclocal
36478
0755
edit
dl
rm
aclocal-1.16
36478
0755
edit
dl
rm
acyclic
12712
0755
edit
dl
rm
addr2line
34224
0755
edit
dl
rm
alias
29
0755
edit
dl
rm
animate
12128
0755
edit
dl
rm
apropos
55336
0755
edit
dl
rm
ar
63448
0755
edit
dl
rm
arch
38232
0755
edit
dl
rm
aria_chk
5637232
0755
edit
dl
rm
aria_dump_log
5431864
0755
edit
dl
rm
aria_ftdump
5444432
0755
edit
dl
rm
aria_pack
5470864
0755
edit
dl
rm
aria_read_log
5591384
0755
edit
dl
rm
arpaname
12104
0755
edit
dl
rm
as
911264
0755
edit
dl
rm
aspell
163328
0755
edit
dl
rm
at
58704
0755
edit
dl
rm
atq
58704
0755
edit
dl
rm
atrm
58704
0755
edit
dl
rm
aulast
21072
0755
edit
dl
rm
aulastlog
12736
0755
edit
dl
rm
ausyscall
12568
0755
edit
dl
rm
authselect
42112
0755
edit
dl
rm
autoconf
14768
0755
edit
dl
rm
autoheader
8534
0755
edit
dl
rm
autom4te
32181
0755
edit
dl
rm
automake
257949
0755
edit
dl
rm
automake-1.16
257949
0755
edit
dl
rm
autopoint
26572
0755
edit
dl
rm
autoreconf
21066
0755
edit
dl
rm
autoscan
17124
0755
edit
dl
rm
autoupdate
33872
0755
edit
dl
rm
auvirt
33512
0755
edit
dl
rm
awk
685848
0755
edit
dl
rm
b2sum
59072
0755
edit
dl
rm
base32
42464
0755
edit
dl
rm
base64
42480
0755
edit
dl
rm
basename
38312
0755
edit
dl
rm
bash
1154680
0755
edit
dl
rm
bashbug
7348
0755
edit
dl
rm
bashbug-64
7348
0755
edit
dl
rm
batch
137
0755
edit
dl
rm
bc
97256
0755
edit
dl
rm
bcomps
21112
0755
edit
dl
rm
bdftopcf
46488
0755
edit
dl
rm
bg
26
0755
edit
dl
rm
bind9-config
3416
0755
edit
dl
rm
bison
448224
0755
edit
dl
rm
bluemoon
100048
0755
edit
dl
rm
bluetoothctl
294120
0755
edit
dl
rm
bond2team
23289
0755
edit
dl
rm
bootctl
46232
0755
edit
dl
rm
brotli
756944
0755
edit
dl
rm
btattach
91688
0755
edit
dl
rm
btmon
966736
0755
edit
dl
rm
bunzip2
37744
0755
edit
dl
rm
busctl
79120
0755
edit
dl
rm
bwrap
71296
0755
edit
dl
rm
bzcat
37744
0755
edit
dl
rm
bzcmp
2128
0755
edit
dl
rm
bzdiff
2128
0755
edit
dl
rm
bzegrep
1677
0755
edit
dl
rm
bzfgrep
1677
0755
edit
dl
rm
bzgrep
1677
0755
edit
dl
rm
bzip2
37744
0755
edit
dl
rm
bzip2recover
16832
0755
edit
dl
rm
bzless
1259
0755
edit
dl
rm
bzmore
1259
0755
edit
dl
rm
c++
1266616
0755
edit
dl
rm
c++filt
29584
0755
edit
dl
rm
c89
224
0755
edit
dl
rm
c99
215
0755
edit
dl
rm
ca-legacy
1644
0755
edit
dl
rm
cairo-sphinx
71384
0755
edit
dl
rm
cal
67560
0755
edit
dl
rm
captoinfo
87360
0755
edit
dl
rm
cat
38360
0755
edit
dl
rm
catchsegv
3283
0755
edit
dl
rm
catman
42448
0755
edit
dl
rm
cc
1266576
0755
edit
dl
rm
ccomps
25312
0755
edit
dl
rm
cd
26
0755
edit
dl
rm
centrino-decode
11536
0755
edit
dl
rm
certutil
203928
0755
edit
dl
rm
chacl
16768
0755
edit
dl
rm
chage
79544
0755
edit
dl
rm
chardetect
400
0755
edit
dl
rm
chattr
16800
0755
edit
dl
rm
chcon
72024
0755
edit
dl
rm
checkmodule
437256
0755
edit
dl
rm
checkpolicy
500368
0755
edit
dl
rm
chfn
33688
0711
edit
dl
rm
chgrp
67864
0755
edit
dl
rm
chmem
46560
0755
edit
dl
rm
chmod
63688
0755
edit
dl
rm
chown
71976
0755
edit
dl
rm
chronyc
130664
0755
edit
dl
rm
chrt
38080
0755
edit
dl
rm
chsh
25312
0711
edit
dl
rm
chvt
12832
0755
edit
dl
rm
cifsiostat
42344
0755
edit
dl
rm
ciptool
215816
0755
edit
dl
rm
circo
12552
0755
edit
dl
rm
cksum
38288
0755
edit
dl
rm
clear
12840
0755
edit
dl
rm
cloud-id
402
0755
edit
dl
rm
cloud-init
406
0755
edit
dl
rm
cloud-init-per
2108
0755
edit
dl
rm
cluster
530768
0755
edit
dl
rm
cmp
106248
0755
edit
dl
rm
cmsutil
125400
0755
edit
dl
rm
col
29704
0755
edit
dl
rm
colcrt
16872
0755
edit
dl
rm
colrm
25480
0755
edit
dl
rm
column
50656
0755
edit
dl
rm
comm
42560
0755
edit
dl
rm
command
31
0755
edit
dl
rm
compare
12136
0755
edit
dl
rm
compile_et
1342
0755
edit
dl
rm
composite
12120
0755
edit
dl
rm
config_data
7138
0755
edit
dl
rm
conjure
12120
0755
edit
dl
rm
convert
12120
0755
edit
dl
rm
coredumpctl
45992
0755
edit
dl
rm
corelist
14995
0755
edit
dl
rm
cp
151528
0755
edit
dl
rm
cpan
8370
0755
edit
dl
rm
cpan-mirrors
4288
0755
edit
dl
rm
cpapi1
3496912
0755
edit
dl
rm
cpapi2
3496912
0755
edit
dl
rm
cpapi3
3496912
0755
edit
dl
rm
cpio
163640
0755
edit
dl
rm
cpp
1266552
0755
edit
dl
rm
cpupower
68512
0755
edit
dl
rm
crb
2644
0744
edit
dl
rm
crc32
1043
0755
edit
dl
rm
crlutil
138184
0755
edit
dl
rm
cronnext
51000
0755
edit
dl
rm
crontab
63152
4755
edit
dl
rm
csplit
54968
0755
edit
dl
rm
csslint-0.6
25152
0755
edit
dl
rm
curl
235600
0755
edit
dl
rm
cut
50704
0755
edit
dl
rm
cvtsudoers
291032
0755
edit
dl
rm
cxpm
29808
0755
edit
dl
rm
date
108496
0755
edit
dl
rm
dbilogstrip
1380
0755
edit
dl
rm
dbiprof
6206
0755
edit
dl
rm
dbus-binding-tool
113080
0755
edit
dl
rm
dbus-cleanup-sockets
16784
0755
edit
dl
rm
dbus-daemon
245448
0755
edit
dl
rm
dbus-monitor
29264
0755
edit
dl
rm
dbus-run-session
16264
0755
edit
dl
rm
dbus-send
29224
0755
edit
dl
rm
dbus-test-tool
25192
0755
edit
dl
rm
dbus-update-activation-environment
16808
0755
edit
dl
rm
dbus-uuidgen
12672
0755
edit
dl
rm
dbxtool
25240
0755
edit
dl
rm
db_archive
12752
0755
edit
dl
rm
db_checkpoint
16872
0755
edit
dl
rm
db_deadlock
16872
0755
edit
dl
rm
db_dump
16904
0755
edit
dl
rm
db_dump185
71224
0755
edit
dl
rm
db_hotbackup
20984
0755
edit
dl
rm
db_load
29296
0755
edit
dl
rm
db_log_verify
16912
0755
edit
dl
rm
db_printlog
34200
0755
edit
dl
rm
db_recover
16904
0755
edit
dl
rm
db_replicate
16888
0755
edit
dl
rm
db_stat
16872
0755
edit
dl
rm
db_tuner
25144
0755
edit
dl
rm
db_upgrade
12752
0755
edit
dl
rm
db_verify
16856
0755
edit
dl
rm
dc
54296
0755
edit
dl
rm
dd
79840
0755
edit
dl
rm
deallocvt
12840
0755
edit
dl
rm
debuginfo-install
3702
0755
edit
dl
rm
debuginfod-find
16864
0755
edit
dl
rm
delv
43480
0755
edit
dl
rm
df
93272
0755
edit
dl
rm
diff
274440
0755
edit
dl
rm
diff3
131688
0755
edit
dl
rm
diffimg
12568
0755
edit
dl
rm
dig
166064
0755
edit
dl
rm
dijkstra
17112
0755
edit
dl
rm
dir
143248
0755
edit
dl
rm
dircolors
50744
0755
edit
dl
rm
dirmngr
593808
0755
edit
dl
rm
dirmngr-client
123000
0755
edit
dl
rm
dirname
34160
0755
edit
dl
rm
display
12128
0755
edit
dl
rm
dltest
12152
0755
edit
dl
rm
dmesg
79744
0755
edit
dl
rm
dnf
2104
0755
edit
dl
rm
dnf-3
2104
0755
edit
dl
rm
dnsdomainname
21664
0755
edit
dl
rm
dnstap-read
20920
0755
edit
dl
rm
domainname
21664
0755
edit
dl
rm
dot
12552
0755
edit
dl
rm
dot2gxl
42288
0755
edit
dl
rm
dotty
2085
0755
edit
dl
rm
doveadm
973504
0755
edit
dl
rm
doveconf
397848
0755
edit
dl
rm
dovecot-sysreport
6431
0755
edit
dl
rm
dpkg
323760
0755
edit
dl
rm
dpkg-deb
169472
0755
edit
dl
rm
dpkg-divert
161536
0755
edit
dl
rm
dpkg-maintscript-helper
21162
0755
edit
dl
rm
dpkg-query
169824
0755
edit
dl
rm
dpkg-realpath
4149
0755
edit
dl
rm
dpkg-split
135568
0755
edit
dl
rm
dpkg-statoverride
68008
0755
edit
dl
rm
dpkg-trigger
89768
0755
edit
dl
rm
dracut
69182
0755
edit
dl
rm
dtrace
17808
0755
edit
dl
rm
du
109568
0755
edit
dl
rm
dumpkeys
173952
0755
edit
dl
rm
dumpsexp
16832
0755
edit
dl
rm
dwp
2233440
0755
edit
dl
rm
dwz
171664
0755
edit
dl
rm
ea-php74
6382784
0755
edit
dl
rm
ea-php74-pear
383
0755
edit
dl
rm
ea-php74-pecl
299
0755
edit
dl
rm
ea-php82
8147128
0755
edit
dl
rm
ea-php82-pear
383
0755
edit
dl
rm
ea-php82-pecl
299
0755
edit
dl
rm
ea-php83
8175776
0755
edit
dl
rm
ea-php83-pear
383
0755
edit
dl
rm
ea-php83-pecl
299
0755
edit
dl
rm
ea-wappspector
100
0755
edit
dl
rm
easy_install-3
246
0755
edit
dl
rm
easy_install-3.6
246
0755
edit
dl
rm
echo
38248
0755
edit
dl
rm
edgepaint
430888
0755
edit
dl
rm
egrep
28
0755
edit
dl
rm
eject
59168
0755
edit
dl
rm
elfedit
34080
0755
edit
dl
rm
enc2xs
41958
0755
edit
dl
rm
encguess
2980
0755
edit
dl
rm
env
42352
0755
edit
dl
rm
envml
4197
0755
edit
dl
rm
envsubst
50168
0755
edit
dl
rm
eps2eps
639
0755
edit
dl
rm
eqn
237728
0755
edit
dl
rm
event_rpcgen.py
55559
0755
edit
dl
rm
evmctl
64040
0755
edit
dl
rm
ex
1180560
0755
edit
dl
rm
expand
42592
0755
edit
dl
rm
expr
50752
0755
edit
dl
rm
factor
88032
0755
edit
dl
rm
fallocate
29656
0755
edit
dl
rm
false
34120
0755
edit
dl
rm
fc
26
0755
edit
dl
rm
fc-cache
132
0755
edit
dl
rm
fc-cache-64
20840
0755
edit
dl
rm
fc-cat
16744
0755
edit
dl
rm
fc-conflist
12544
0755
edit
dl
rm
fc-list
12544
0755
edit
dl
rm
fc-match
16648
0755
edit
dl
rm
fc-pattern
12552
0755
edit
dl
rm
fc-query
12536
0755
edit
dl
rm
fc-scan
12552
0755
edit
dl
rm
fc-validate
16648
0755
edit
dl
rm
fdp
12552
0755
edit
dl
rm
fg
26
0755
edit
dl
rm
fgconsole
12848
0755
edit
dl
rm
fgrep
28
0755
edit
dl
rm
filan
96992
0755
edit
dl
rm
file
25280
0755
edit
dl
rm
fincore
33832
0755
edit
dl
rm
find
228632
0755
edit
dl
rm
find-repos-of-install
3702
0755
edit
dl
rm
findmnt
72304
0755
edit
dl
rm
fips-finish-install
1323
0755
edit
dl
rm
fips-mode-setup
4007
0755
edit
dl
rm
firewall-cmd
142955
0755
edit
dl
rm
firewall-offline-cmd
123624
0755
edit
dl
rm
flex
438728
0755
edit
dl
rm
flex++
438728
0755
edit
dl
rm
flock
33992
0755
edit
dl
rm
fmt
46584
0755
edit
dl
rm
fold
42416
0755
edit
dl
rm
fonttosfnt
42168
0755
edit
dl
rm
free
21288
0755
edit
dl
rm
freetype-config
4416
0755
edit
dl
rm
fribidi
21648
0755
edit
dl
rm
ftp
103632
0755
edit
dl
rm
funzip
37504
0755
edit
dl
rm
fwupdmgr
162080
0755
edit
dl
rm
fwupdtool
211848
0755
edit
dl
rm
g++
1266616
0755
edit
dl
rm
g13
217064
0755
edit
dl
rm
galera_new_cluster
1268
0755
edit
dl
rm
galera_recovery
3366
0755
edit
dl
rm
gapplication
20936
0755
edit
dl
rm
garb-systemd
1345
0755
edit
dl
rm
garbd
1735304
0755
edit
dl
rm
gatttool
380176
0755
edit
dl
rm
gawk
685848
0755
edit
dl
rm
gc
17040
0755
edit
dl
rm
gcc
1266576
0755
edit
dl
rm
gcc-ar
37536
0755
edit
dl
rm
gcc-nm
37536
0755
edit
dl
rm
gcc-ranlib
37536
0755
edit
dl
rm
gcov
1377408
0755
edit
dl
rm
gcov-dump
584664
0755
edit
dl
rm
gcov-tool
622360
0755
edit
dl
rm
gdbmtool
114248
0755
edit
dl
rm
gdbm_dump
21560
0755
edit
dl
rm
gdbm_load
25920
0755
edit
dl
rm
gdbus
49888
0755
edit
dl
rm
gdk-pixbuf-query-loaders-64
16312
0755
edit
dl
rm
gdk-pixbuf-thumbnailer
20944
0755
edit
dl
rm
gdlib-config
2861
0755
edit
dl
rm
gencat
25432
0755
edit
dl
rm
genl-ctrl-list
12328
0755
edit
dl
rm
geqn
237728
0755
edit
dl
rm
GET
16217
0755
edit
dl
rm
getconf
33240
0755
edit
dl
rm
getent
33920
0755
edit
dl
rm
getfacl
29384
0755
edit
dl
rm
getkeycodes
12840
0755
edit
dl
rm
getopt
21024
0755
edit
dl
rm
getopts
31
0755
edit
dl
rm
gettext
50144
0755
edit
dl
rm
gettext.sh
4629
0755
edit
dl
rm
gettextize
43718
0755
edit
dl
rm
ghostscript
12648
0755
edit
dl
rm
gio
87264
0755
edit
dl
rm
gio-querymodules-64
16696
0755
edit
dl
rm
git
27665816
0755
edit
dl
rm
git-receive-pack
27665816
0755
edit
dl
rm
git-shell
16553768
0755
edit
dl
rm
git-upload-archive
27665816
0755
edit
dl
rm
git-upload-pack
27665816
0755
edit
dl
rm
glib-compile-schemas
50024
0755
edit
dl
rm
gmake
240968
0755
edit
dl
rm
gml2gv
42216
0755
edit
dl
rm
gneqn
908
0755
edit
dl
rm
gnroff
3312
0755
edit
dl
rm
gpasswd
84144
4755
edit
dl
rm
gpg
1090344
0755
edit
dl
rm
gpg-agent
429360
0755
edit
dl
rm
gpg-connect-agent
169272
0755
edit
dl
rm
gpg-error
34976
0755
edit
dl
rm
gpg-error-config
2318
0755
edit
dl
rm
gpg-wks-server
211672
0755
edit
dl
rm
gpg-zip
3525
0755
edit
dl
rm
gpg2
1090344
0755
edit
dl
rm
gpgconf
180328
0755
edit
dl
rm
gpgme-json
87736
0755
edit
dl
rm
gpgparsemail
29432
0755
edit
dl
rm
gpgrt-config
2318
0755
edit
dl
rm
gpgsm
526808
0755
edit
dl
rm
gpgsplit
89112
0755
edit
dl
rm
gpgv
462344
0755
edit
dl
rm
gpgv2
462344
0755
edit
dl
rm
gpic
300896
0755
edit
dl
rm
gpio-event-mon
15320
0755
edit
dl
rm
gpio-hammer
15320
0755
edit
dl
rm
gprof
105832
0755
edit
dl
rm
gr2fonttest
30672
0755
edit
dl
rm
graphml2gv
21144
0755
edit
dl
rm
grep
198280
0755
edit
dl
rm
groff
127920
0755
edit
dl
rm
grops
195728
0755
edit
dl
rm
grotty
145304
0755
edit
dl
rm
groups
38288
0755
edit
dl
rm
growpart
29895
0755
edit
dl
rm
grub2-editenv
458848
0755
edit
dl
rm
grub2-file
950832
0755
edit
dl
rm
grub2-fstest
1210456
0755
edit
dl
rm
grub2-glue-efi
286120
0755
edit
dl
rm
grub2-kbdcomp
1668
0755
edit
dl
rm
grub2-menulst2cfg
268960
0755
edit
dl
rm
grub2-mkfont
319616
0755
edit
dl
rm
grub2-mkimage
441760
0755
edit
dl
rm
grub2-mklayout
296432
0755
edit
dl
rm
grub2-mknetdir
497488
0755
edit
dl
rm
grub2-mkpasswd-pbkdf2
298888
0755
edit
dl
rm
grub2-mkrelpath
285968
0755
edit
dl
rm
grub2-mkrescue
1170208
0755
edit
dl
rm
grub2-mkstandalone
608560
0755
edit
dl
rm
grub2-render-label
959576
0755
edit
dl
rm
grub2-script-check
323584
0755
edit
dl
rm
grub2-syslinux2cfg
882288
0755
edit
dl
rm
gs
12648
0755
edit
dl
rm
gsettings
29296
0755
edit
dl
rm
gsnd
277
0755
edit
dl
rm
gsoelim
43576
0755
edit
dl
rm
gss-client
25152
0755
edit
dl
rm
gtar
459768
0755
edit
dl
rm
gtbl
158320
0755
edit
dl
rm
gtk-query-immodules-2.0-64
16680
0755
edit
dl
rm
gtk-update-icon-cache
33824
0755
edit
dl
rm
gtroff
824344
0755
edit
dl
rm
gunzip
2345
0755
edit
dl
rm
gv2gml
25288
0755
edit
dl
rm
gv2gxl
42288
0755
edit
dl
rm
gvcolor
48024
0755
edit
dl
rm
gvgen
25392
0755
edit
dl
rm
gvmap
538944
0755
edit
dl
rm
gvmap.sh
2190
0755
edit
dl
rm
gvpack
471640
0755
edit
dl
rm
gvpr
8016
0755
edit
dl
rm
gxl2dot
42288
0755
edit
dl
rm
gxl2gv
42288
0755
edit
dl
rm
gzexe
6375
0755
edit
dl
rm
gzip
96944
0755
edit
dl
rm
h2ph
29382
0755
edit
dl
rm
h2xs
60866
0755
edit
dl
rm
hash
28
0755
edit
dl
rm
hciattach
207328
0755
edit
dl
rm
hciconfig
200984
0755
edit
dl
rm
hcidump
493240
0755
edit
dl
rm
hcitool
216984
0755
edit
dl
rm
HEAD
16217
0755
edit
dl
rm
head
46600
0755
edit
dl
rm
hex2hcd
16776
0755
edit
dl
rm
hexdump
58888
0755
edit
dl
rm
hmac256
17272
0755
edit
dl
rm
host
145712
0755
edit
dl
rm
hostid
34136
0755
edit
dl
rm
hostname
21664
0755
edit
dl
rm
hostnamectl
21328
0755
edit
dl
rm
htdbm
32480
0755
edit
dl
rm
htdigest
22232
0755
edit
dl
rm
html2text
406
0755
edit
dl
rm
htpasswd
32304
0755
edit
dl
rm
httxt2dbm
21608
0755
edit
dl
rm
hunspell
148168
0755
edit
dl
rm
i386
21256
0755
edit
dl
rm
iceauth
42872
0755
edit
dl
rm
iconv
62904
0755
edit
dl
rm
id
46528
0755
edit
dl
rm
identify
12128
0755
edit
dl
rm
idiag-socket-details
12376
0755
edit
dl
rm
idn
40352
0755
edit
dl
rm
ifnames
4128
0755
edit
dl
rm
iio_event_monitor
23528
0755
edit
dl
rm
iio_generic_buffer
27624
0755
edit
dl
rm
import
12120
0755
edit
dl
rm
imunify-agent-proxy
13781922
0755
edit
dl
rm
imunify-antivirus
1024
0755
edit
dl
rm
imunify-fgw-dump
8183000
0755
edit
dl
rm
imunify-service
1020
0755
edit
dl
rm
imunify360-agent
1024
0755
edit
dl
rm
imunify360-command-wrapper
12210
0755
edit
dl
rm
info
255888
0755
edit
dl
rm
infocmp
62512
0755
edit
dl
rm
infotocap
87360
0755
edit
dl
rm
innochecksum
4765296
0755
edit
dl
rm
install
159888
0755
edit
dl
rm
install-tools
4158
0755
edit
dl
rm
instmodsh
4194
0755
edit
dl
rm
intel-speed-select
95256
0755
edit
dl
rm
ionice
29680
0755
edit
dl
rm
iostat
59072
0755
edit
dl
rm
ipcalc
47184
0755
edit
dl
rm
ipcmk
29840
0755
edit
dl
rm
ipcrm
29688
0755
edit
dl
rm
ipcs
54680
0755
edit
dl
rm
isc-config.sh
3416
0755
edit
dl
rm
isosize
25480
0755
edit
dl
rm
ispell
988
0755
edit
dl
rm
isql
37456
0755
edit
dl
rm
iusql
29344
0755
edit
dl
rm
jcat-tool
41912
0755
edit
dl
rm
jobs
28
0755
edit
dl
rm
join
54984
0755
edit
dl
rm
journalctl
78840
0755
edit
dl
rm
jq
29096
0755
edit
dl
rm
jsondiff
1033
0755
edit
dl
rm
jsondiff-3
1033
0755
edit
dl
rm
jsondiff-3.6
1033
0755
edit
dl
rm
jsonpatch
3676
0755
edit
dl
rm
jsonpatch-3
3676
0755
edit
dl
rm
jsonpatch-3.6
3676
0755
edit
dl
rm
jsonpointer
1356
0755
edit
dl
rm
jsonpointer-3
1356
0755
edit
dl
rm
jsonpointer-3.6
1356
0755
edit
dl
rm
jsonschema-3
409
0755
edit
dl
rm
json_pp
4286
0755
edit
dl
rm
json_reformat
16952
0755
edit
dl
rm
json_verify
12568
0755
edit
dl
rm
json_xs
7002
0755
edit
dl
rm
kbdinfo
16960
0755
edit
dl
rm
kbdrate
16840
0755
edit
dl
rm
kbd_mode
12856
0755
edit
dl
rm
kbxutil
181608
0755
edit
dl
rm
kdumpctl
33722
0755
edit
dl
rm
kernel-install
4511
0755
edit
dl
rm
keyctl
37704
0755
edit
dl
rm
kill
38176
0755
edit
dl
rm
killall
30480
0755
edit
dl
rm
kmod
163784
0755
edit
dl
rm
krb5-config
7144
0755
edit
dl
rm
kvm_stat
62307
0755
edit
dl
rm
l2ping
167688
0755
edit
dl
rm
l2test
184496
0755
edit
dl
rm
last
50416
0755
edit
dl
rm
lastb
50416
0755
edit
dl
rm
lastlog
21120
0755
edit
dl
rm
lchfn
20840
0755
edit
dl
rm
lchsh
16744
0755
edit
dl
rm
ld
1789080
0755
edit
dl
rm
ld.bfd
1789080
0755
edit
dl
rm
ld.gold
2467656
0755
edit
dl
rm
ld.so
1104064
0755
edit
dl
rm
ldd
5441
0755
edit
dl
rm
lefty
311832
0755
edit
dl
rm
less
177928
0755
edit
dl
rm
lessecho
12696
0755
edit
dl
rm
lesskey
22520
0755
edit
dl
rm
lesspipe.sh
3143
0755
edit
dl
rm
lex
438728
0755
edit
dl
rm
lexgrog
95952
0755
edit
dl
rm
libgcrypt-config
3931
0755
edit
dl
rm
libnetcfg
15775
0755
edit
dl
rm
libpng-config
2382
0755
edit
dl
rm
libpng16-config
2382
0755
edit
dl
rm
libtool
367724
0755
edit
dl
rm
libtoolize
129197
0755
edit
dl
rm
libwmf-fontmap
13340
0755
edit
dl
rm
link
34136
0755
edit
dl
rm
linux-boot-prober
5993
0755
edit
dl
rm
linux32
21256
0755
edit
dl
rm
linux64
21256
0755
edit
dl
rm
ln
72192
0755
edit
dl
rm
lneato
1547
0755
edit
dl
rm
loadkeys
215584
0755
edit
dl
rm
loadunimap
29728
0755
edit
dl
rm
locale
57792
0755
edit
dl
rm
localectl
29552
0755
edit
dl
rm
localedef
314848
0755
edit
dl
rm
logger
51184
0755
edit
dl
rm
login
41944
0755
edit
dl
rm
loginctl
58656
0755
edit
dl
rm
logname
34144
0755
edit
dl
rm
logresolve
21968
0755
edit
dl
rm
look
16856
0755
edit
dl
rm
ls
143248
0755
edit
dl
rm
lsattr
12216
0755
edit
dl
rm
lsblk
92304
0755
edit
dl
rm
lscpu
83656
0755
edit
dl
rm
lsgpio
15424
0755
edit
dl
rm
lsiio
23528
0755
edit
dl
rm
lsinitrd
8886
0755
edit
dl
rm
lsipc
75512
0755
edit
dl
rm
lslocks
38432
0755
edit
dl
rm
lslogins
67192
0755
edit
dl
rm
lsmem
46424
0755
edit
dl
rm
lsns
50472
0755
edit
dl
rm
lsof
179608
0755
edit
dl
rm
lsphp
937
0755
edit
dl
rm
lsscsi
88072
0755
edit
dl
rm
lua
20944
0755
edit
dl
rm
luac
156440
0755
edit
dl
rm
lwp-download
10292
0755
edit
dl
rm
lwp-dump
2711
0755
edit
dl
rm
lwp-mirror
2413
0755
edit
dl
rm
lwp-request
16217
0755
edit
dl
rm
m4
190016
0755
edit
dl
rm
Mail
418704
0755
edit
dl
rm
mail
418704
0755
edit
dl
rm
mailx
418704
0755
edit
dl
rm
make
240968
0755
edit
dl
rm
make-dummy-cert
610
0755
edit
dl
rm
makedb
25432
0755
edit
dl
rm
man
115224
0755
edit
dl
rm
mandb
137744
0755
edit
dl
rm
manpath
34224
0755
edit
dl
rm
mapscrn
25440
0755
edit
dl
rm
mariadb
5501488
0755
edit
dl
rm
mariadb-access
111961
0755
edit
dl
rm
mariadb-admin
5042656
0755
edit
dl
rm
mariadb-binlog
5328504
0755
edit
dl
rm
mariadb-check
5035576
0755
edit
dl
rm
mariadb-config
12488
0755
edit
dl
rm
mariadb-conv
4756104
0755
edit
dl
rm
mariadb-convert-table-format
4220
0755
edit
dl
rm
mariadb-dump
5128224
0755
edit
dl
rm
mariadb-dumpslow
8242
0755
edit
dl
rm
mariadb-embedded
24911320
0755
edit
dl
rm
mariadb-find-rows
3290
0755
edit
dl
rm
mariadb-fix-extensions
1250
0755
edit
dl
rm
mariadb-hotcopy
35359
0755
edit
dl
rm
mariadb-import
5030448
0755
edit
dl
rm
mariadb-install-db
22692
0755
edit
dl
rm
mariadb-plugin
4734912
0755
edit
dl
rm
mariadb-secure-installation
13799
0755
edit
dl
rm
mariadb-service-convert
2506
0755
edit
dl
rm
mariadb-setpermission
17977
0755
edit
dl
rm
mariadb-show
5024736
0755
edit
dl
rm
mariadb-slap
5044280
0755
edit
dl
rm
mariadb-tzinfo-to-sql
4734336
0755
edit
dl
rm
mariadb-upgrade
5185856
0755
edit
dl
rm
mariadb-waitpid
4721616
0755
edit
dl
rm
mariadbd-multi
27425
0755
edit
dl
rm
mariadbd-safe
31214
0755
edit
dl
rm
mariadbd-safe-helper
4691792
0755
edit
dl
rm
mariadb_config
12488
0755
edit
dl
rm
mcookie
34064
0755
edit
dl
rm
mcpp
9232
0755
edit
dl
rm
md5sum
46640
0755
edit
dl
rm
mdig
49680
0755
edit
dl
rm
memstrack
85792
0755
edit
dl
rm
mesg
16752
0755
edit
dl
rm
miniterm-3.6.py
33887
0755
edit
dl
rm
miniterm-3.py
33887
0755
edit
dl
rm
mkdir
84680
0755
edit
dl
rm
mkfifo
68056
0755
edit
dl
rm
mkfontdir
65
0755
edit
dl
rm
mkfontscale
42592
0755
edit
dl
rm
mkinitrd
6585
0755
edit
dl
rm
mknod
72160
0755
edit
dl
rm
mktemp
46760
0755
edit
dl
rm
mm2gv
92704
0755
edit
dl
rm
mmdblookup
17144
0755
edit
dl
rm
modulecmd
393980
0755
edit
dl
rm
modulemd-validator
25560
0755
edit
dl
rm
modutil
181688
0755
edit
dl
rm
mogrify
12120
0755
edit
dl
rm
mokutil
51184
0755
edit
dl
rm
montage
12120
0755
edit
dl
rm
more
46016
0755
edit
dl
rm
mount
50328
0755
edit
dl
rm
mountpoint
16880
0755
edit
dl
rm
mpicalc
20872
0755
edit
dl
rm
mpris-proxy
101368
0755
edit
dl
rm
mpstat
54792
0755
edit
dl
rm
msgattrib
26192
0755
edit
dl
rm
msgcat
26168
0755
edit
dl
rm
msgcmp
26744
0755
edit
dl
rm
msgcomm
26168
0755
edit
dl
rm
msgconv
22072
0755
edit
dl
rm
msgen
22064
0755
edit
dl
rm
msgexec
22072
0755
edit
dl
rm
msgfilter
35360
0755
edit
dl
rm
msgfmt
92464
0755
edit
dl
rm
msggrep
44648
0755
edit
dl
rm
msginit
69480
0755
edit
dl
rm
msgmerge
73200
0755
edit
dl
rm
msgunfmt
36664
0755
edit
dl
rm
msguniq
26176
0755
edit
dl
rm
msql2mysql
1446
0755
edit
dl
rm
mv
147408
0755
edit
dl
rm
myisamchk
5145136
0755
edit
dl
rm
myisamlog
5002416
0755
edit
dl
rm
myisampack
5041600
0755
edit
dl
rm
myisam_ftdump
5020312
0755
edit
dl
rm
mysql
5501488
0755
edit
dl
rm
mysqlaccess
111961
0755
edit
dl
rm
mysqladmin
5042656
0755
edit
dl
rm
mysqlbinlog
5328504
0755
edit
dl
rm
mysqlcheck
5035576
0755
edit
dl
rm
mysqldump
5128224
0755
edit
dl
rm
mysqld_multi
27425
0755
edit
dl
rm
mysqld_safe
31214
0755
edit
dl
rm
mysqld_safe_helper
4691792
0755
edit
dl
rm
mysqlimport
5030448
0755
edit
dl
rm
mysqlshow
5024736
0755
edit
dl
rm
mysqlslap
5044280
0755
edit
dl
rm
mysql_config
4623
0755
edit
dl
rm
mysql_embedded
24911320
0755
edit
dl
rm
mysql_find_rows
3290
0755
edit
dl
rm
mysql_fix_extensions
1250
0755
edit
dl
rm
mysql_install_db
22692
0755
edit
dl
rm
mysql_plugin
4734912
0755
edit
dl
rm
mysql_tzinfo_to_sql
4734336
0755
edit
dl
rm
mysql_upgrade
5185856
0755
edit
dl
rm
mysql_waitpid
4721616
0755
edit
dl
rm
mytop
73757
0755
edit
dl
rm
my_print_defaults
4726288
0755
edit
dl
rm
nail
418704
0755
edit
dl
rm
named-rrchecker
20352
0755
edit
dl
rm
namei
33896
0755
edit
dl
rm
nano
253888
0755
edit
dl
rm
nc
50576
0755
edit
dl
rm
ncurses6-config
6015
0755
edit
dl
rm
ncursesw6-config
6018
0755
edit
dl
rm
ndptool
25040
0755
edit
dl
rm
neato
12552
0755
edit
dl
rm
needs-restarting
3702
0755
edit
dl
rm
neqn
908
0755
edit
dl
rm
netcat
50576
0755
edit
dl
rm
netstat
162488
0755
edit
dl
rm
newgidmap
48960
0755
edit
dl
rm
newgrp
43480
0755
edit
dl
rm
newuidmap
48920
0755
edit
dl
rm
nf-ct-add
16856
0755
edit
dl
rm
nf-ct-events
12672
0755
edit
dl
rm
nf-ct-list
16888
0755
edit
dl
rm
nf-exp-add
17272
0755
edit
dl
rm
nf-exp-delete
17056
0755
edit
dl
rm
nf-exp-list
16888
0755
edit
dl
rm
nf-log
12648
0755
edit
dl
rm
nf-monitor
12656
0755
edit
dl
rm
nf-queue
16744
0755
edit
dl
rm
ngettext
50144
0755
edit
dl
rm
nice
38224
0755
edit
dl
rm
nisdomainname
21664
0755
edit
dl
rm
nl
46648
0755
edit
dl
rm
nl-addr-add
12632
0755
edit
dl
rm
nl-addr-delete
17168
0755
edit
dl
rm
nl-addr-list
17280
0755
edit
dl
rm
nl-class-add
17128
0755
edit
dl
rm
nl-class-delete
12928
0755
edit
dl
rm
nl-class-list
12896
0755
edit
dl
rm
nl-classid-lookup
12768
0755
edit
dl
rm
nl-cls-add
17168
0755
edit
dl
rm
nl-cls-delete
17176
0755
edit
dl
rm
nl-cls-list
13040
0755
edit
dl
rm
nl-fib-lookup
12800
0755
edit
dl
rm
nl-link-enslave
12152
0755
edit
dl
rm
nl-link-ifindex2name
12152
0755
edit
dl
rm
nl-link-list
12528
0755
edit
dl
rm
nl-link-name2ifindex
12144
0755
edit
dl
rm
nl-link-release
12144
0755
edit
dl
rm
nl-link-set
13072
0755
edit
dl
rm
nl-link-stats
12888
0755
edit
dl
rm
nl-list-caches
12568
0755
edit
dl
rm
nl-list-sockets
12152
0755
edit
dl
rm
nl-monitor
12816
0755
edit
dl
rm
nl-neigh-add
12928
0755
edit
dl
rm
nl-neigh-delete
12968
0755
edit
dl
rm
nl-neigh-list
12480
0755
edit
dl
rm
nl-neightbl-list
12296
0755
edit
dl
rm
nl-pktloc-lookup
12864
0755
edit
dl
rm
nl-qdisc-add
12952
0755
edit
dl
rm
nl-qdisc-delete
12928
0755
edit
dl
rm
nl-qdisc-list
17144
0755
edit
dl
rm
nl-route-add
16784
0755
edit
dl
rm
nl-route-delete
17288
0755
edit
dl
rm
nl-route-get
12648
0755
edit
dl
rm
nl-route-list
16832
0755
edit
dl
rm
nl-rule-list
12336
0755
edit
dl
rm
nl-tctree-list
12960
0755
edit
dl
rm
nl-util-addr
12136
0755
edit
dl
rm
nm
51584
0755
edit
dl
rm
nm-online
21336
0755
edit
dl
rm
nmcli
1033216
0755
edit
dl
rm
nmtui
802936
0755
edit
dl
rm
nmtui-connect
802936
0755
edit
dl
rm
nmtui-edit
802936
0755
edit
dl
rm
nmtui-hostname
802936
0755
edit
dl
rm
nohup
38312
0755
edit
dl
rm
nop
12800
0755
edit
dl
rm
nproc
38304
0755
edit
dl
rm
nroff
3312
0755
edit
dl
rm
nsenter
34096
0755
edit
dl
rm
nslookup
149768
0755
edit
dl
rm
nss-policy-check
16696
0755
edit
dl
rm
nsupdate
74808
0755
edit
dl
rm
numfmt
67216
0755
edit
dl
rm
objcopy
245832
0755
edit
dl
rm
objdump
429832
0755
edit
dl
rm
od
75576
0755
edit
dl
rm
odbcinst
29576
0755
edit
dl
rm
odbc_config
12128
0755
edit
dl
rm
open
21472
0755
edit
dl
rm
openssl
763848
0755
edit
dl
rm
openvt
21472
0755
edit
dl
rm
os-prober
5915
0755
edit
dl
rm
osage
12552
0755
edit
dl
rm
p11-kit
38040
0755
edit
dl
rm
package-cleanup
3702
0755
edit
dl
rm
page_owner_sort
11616
0755
edit
dl
rm
pango-list
12160
0755
edit
dl
rm
pango-view
58816
0755
edit
dl
rm
paperconf
13384
0755
edit
dl
rm
passwd
33560
4755
edit
dl
rm
paste
38280
0755
edit
dl
rm
patch
211416
0755
edit
dl
rm
patchwork
12552
0755
edit
dl
rm
pathchk
38224
0755
edit
dl
rm
pathfix.py
6790
0755
edit
dl
rm
pcre2-config
1950
0755
edit
dl
rm
pdf2dsc
698
0755
edit
dl
rm
pdf2ps
909
0755
edit
dl
rm
pdnsutil
5442112
0755
edit
dl
rm
pdns_control
497936
0755
edit
dl
rm
peekfd
16904
0755
edit
dl
rm
perl
12728
0755
edit
dl
rm
perl5.26.3
12728
0755
edit
dl
rm
perlbug
45458
0755
edit
dl
rm
perldoc
118
0755
edit
dl
rm
perlivp
10813
0755
edit
dl
rm
perlml
6768
0755
edit
dl
rm
perlthanks
45458
0755
edit
dl
rm
perror
4928008
0755
edit
dl
rm
pflags
2636
0755
edit
dl
rm
pftp
103632
0755
edit
dl
rm
pgrep
29536
0755
edit
dl
rm
php
937
0755
edit
dl
rm
pic
300896
0755
edit
dl
rm
piconv
8271
0755
edit
dl
rm
pidof
17096
0755
edit
dl
rm
pidstat
67296
0755
edit
dl
rm
pigz
128392
0755
edit
dl
rm
pinentry
2404
0755
edit
dl
rm
pinentry-curses
79760
0755
edit
dl
rm
ping
67712
0755
edit
dl
rm
pinky
42456
0755
edit
dl
rm
pip-3
209
0755
edit
dl
rm
pip-3.6
209
0755
edit
dl
rm
pip3
209
0755
edit
dl
rm
pip3.6
209
0755
edit
dl
rm
pk12util
113784
0755
edit
dl
rm
pkaction
16776
0755
edit
dl
rm
pkcheck
25016
0755
edit
dl
rm
pkexec
29088
0755
edit
dl
rm
pkg-config
41000
0755
edit
dl
rm
pkgconf
41000
0755
edit
dl
rm
pkill
29536
0755
edit
dl
rm
pkla-admin-identities
26336
0755
edit
dl
rm
pkla-check-authorization
34592
0755
edit
dl
rm
pkttyagent
20872
0755
edit
dl
rm
pl2pm
4533
0755
edit
dl
rm
pldd
17152
0755
edit
dl
rm
pmap
33568
0755
edit
dl
rm
png-fix-itxt
12136
0755
edit
dl
rm
pngfix
54120
0755
edit
dl
rm
pod2html
4134
0755
edit
dl
rm
pod2man
15034
0755
edit
dl
rm
pod2text
10803
0755
edit
dl
rm
pod2usage
3948
0755
edit
dl
rm
podchecker
3658
0755
edit
dl
rm
podselect
2527
0755
edit
dl
rm
POST
16217
0755
edit
dl
rm
post-grohtml
244456
0755
edit
dl
rm
powernow-k8-decode
11136
0755
edit
dl
rm
pr
84120
0755
edit
dl
rm
pre-grohtml
133688
0755
edit
dl
rm
precat
5656
0755
edit
dl
rm
preconv
59032
0755
edit
dl
rm
preunzip
5656
0755
edit
dl
rm
prezip
5656
0755
edit
dl
rm
prezip-bin
12264
0755
edit
dl
rm
printenv
34120
0755
edit
dl
rm
printf
54848
0755
edit
dl
rm
prlimit
38440
0755
edit
dl
rm
prl_backup
7544
0755
edit
dl
rm
procan
84584
0755
edit
dl
rm
protoc
16888
0755
edit
dl
rm
protoc-c
250664
0755
edit
dl
rm
protoc-gen-c
250664
0755
edit
dl
rm
prove
13562
0755
edit
dl
rm
prtstat
21000
0755
edit
dl
rm
prune
17128
0755
edit
dl
rm
ps
137984
0755
edit
dl
rm
ps2ascii
631
0755
edit
dl
rm
ps2epsi
2752
0755
edit
dl
rm
ps2pdf
272
0755
edit
dl
rm
ps2pdf12
215
0755
edit
dl
rm
ps2pdf13
215
0755
edit
dl
rm
ps2pdf14
215
0755
edit
dl
rm
ps2pdfwr
1097
0755
edit
dl
rm
ps2ps
647
0755
edit
dl
rm
ps2ps2
669
0755
edit
dl
rm
psfaddtable
21152
0755
edit
dl
rm
psfgettable
21152
0755
edit
dl
rm
psfstriptable
21152
0755
edit
dl
rm
psfxtable
21152
0755
edit
dl
rm
pslog
12784
0755
edit
dl
rm
pstree
34336
0755
edit
dl
rm
pstree.x11
34336
0755
edit
dl
rm
ptar
3456
0755
edit
dl
rm
ptardiff
2535
0755
edit
dl
rm
ptargrep
4299
0755
edit
dl
rm
ptx
79864
0755
edit
dl
rm
pure-pw
39768
0755
edit
dl
rm
pure-pwconvert
10976
0755
edit
dl
rm
pure-statsdecode
10976
0755
edit
dl
rm
pv
75328
0755
edit
dl
rm
pwd
38320
0755
edit
dl
rm
pwdx
12984
0755
edit
dl
rm
pwmake
12560
0755
edit
dl
rm
pwscore
12560
0755
edit
dl
rm
pybabel
388
0755
edit
dl
rm
pydoc-3
89
0755
edit
dl
rm
pydoc3
89
0755
edit
dl
rm
pydoc3.6
89
0755
edit
dl
rm
pydoc3.12
79
0755
edit
dl
rm
pyjwt
384
0755
edit
dl
rm
python-html2text
406
0755
edit
dl
rm
python3
11872
0755
edit
dl
rm
python3-config
204
0755
edit
dl
rm
python3-html2text
406
0755
edit
dl
rm
python3.6
11872
0755
edit
dl
rm
python3.6-config
204
0755
edit
dl
rm
python3.6m
11872
0755
edit
dl
rm
python3.6m-config
204
0755
edit
dl
rm
python3.6m-x86_64-config
3626
0755
edit
dl
rm
python3.12
7752
0755
edit
dl
rm
pyvenv-3
446
0755
edit
dl
rm
pyvenv-3.6
446
0755
edit
dl
rm
qemu-ga
1004408
0755
edit
dl
rm
quota
93688
4755
edit
dl
rm
quotasync
76480
0755
edit
dl
rm
ranlib
63456
0755
edit
dl
rm
raw
16896
0755
edit
dl
rm
rctest
215744
0755
edit
dl
rm
read
28
0755
edit
dl
rm
readelf
639528
0755
edit
dl
rm
readlink
46984
0755
edit
dl
rm
realpath
51144
0755
edit
dl
rm
recode-sr-latin
18424
0755
edit
dl
rm
rename
16896
0755
edit
dl
rm
renew-dummy-cert
725
0755
edit
dl
rm
renice
16856
0755
edit
dl
rm
replace
4704088
0755
edit
dl
rm
repo-graph
3702
0755
edit
dl
rm
repoclosure
3702
0755
edit
dl
rm
repodiff
3702
0755
edit
dl
rm
repomanage
3702
0755
edit
dl
rm
repoquery
3702
0755
edit
dl
rm
reposync
3702
0755
edit
dl
rm
repotrack
3702
0755
edit
dl
rm
rescan-scsi-bus.sh
39161
0755
edit
dl
rm
reset
25352
0755
edit
dl
rm
resizecons
21272
0755
edit
dl
rm
resolvectl
200448
0755
edit
dl
rm
resolveip
4721560
0755
edit
dl
rm
resolve_stack_dump
4725728
0755
edit
dl
rm
rev
12760
0755
edit
dl
rm
rfcomm
176664
0755
edit
dl
rm
rm
72064
0755
edit
dl
rm
rmdir
46552
0755
edit
dl
rm
rnano
253888
0755
edit
dl
rm
rpcbind
63024
0755
edit
dl
rm
rpcinfo
33424
0755
edit
dl
rm
rpm
21352
0755
edit
dl
rm
rpm2archive
20952
0755
edit
dl
rm
rpm2cpio
12128
0755
edit
dl
rm
rpmdb
17368
0755
edit
dl
rm
rpmkeys
17272
0755
edit
dl
rm
rpmquery
21352
0755
edit
dl
rm
rpmverify
21352
0755
edit
dl
rm
rsync
534888
0755
edit
dl
rm
rsyslog-recover-qi.pl
6098
0755
edit
dl
rm
run-parts
1983
0755
edit
dl
rm
run-with-aspell
85
0755
edit
dl
rm
runcon
38272
0755
edit
dl
rm
rvi
1180560
0755
edit
dl
rm
rview
1180560
0755
edit
dl
rm
rvim
3067856
0755
edit
dl
rm
sadf
342600
0755
edit
dl
rm
sar
139024
0755
edit
dl
rm
sccmap
21112
0755
edit
dl
rm
scl
37752
0755
edit
dl
rm
scl_enabled
258
0755
edit
dl
rm
scl_source
1863
0755
edit
dl
rm
scp
105312
0755
edit
dl
rm
script
37680
0755
edit
dl
rm
scriptreplay
29696
0755
edit
dl
rm
scsi-rescan
39161
0755
edit
dl
rm
scsi_logging_level
8585
0755
edit
dl
rm
scsi_mandat
3602
0755
edit
dl
rm
scsi_readcap
1327
0755
edit
dl
rm
scsi_ready
1121
0755
edit
dl
rm
scsi_satl
3857
0755
edit
dl
rm
scsi_start
1285
0755
edit
dl
rm
scsi_stop
1474
0755
edit
dl
rm
scsi_temperature
936
0755
edit
dl
rm
sdiff
107856
0755
edit
dl
rm
sdptool
281360
0755
edit
dl
rm
secon
26072
0755
edit
dl
rm
secret-tool
21680
0755
edit
dl
rm
sed
118040
0755
edit
dl
rm
sedismod
280232
0755
edit
dl
rm
sedispol
203248
0755
edit
dl
rm
semodule_expand
12576
0755
edit
dl
rm
semodule_link
12576
0755
edit
dl
rm
semodule_package
17080
0755
edit
dl
rm
semodule_unpackage
12592
0755
edit
dl
rm
seq
54728
0755
edit
dl
rm
sessreg
17800
0755
edit
dl
rm
setarch
21256
0755
edit
dl
rm
setfacl
46064
0755
edit
dl
rm
setfont
46272
0755
edit
dl
rm
setkeycodes
12864
0755
edit
dl
rm
setleds
17000
0755
edit
dl
rm
setmetamode
12864
0755
edit
dl
rm
setpriv
46240
0755
edit
dl
rm
setsid
16768
0755
edit
dl
rm
setterm
46208
0755
edit
dl
rm
setup-nsssysinit
1539
0755
edit
dl
rm
setup-nsssysinit.sh
1539
0755
edit
dl
rm
setvtrgb
17040
0755
edit
dl
rm
sfdp
12552
0755
edit
dl
rm
sftp
163584
0755
edit
dl
rm
sg
43480
0755
edit
dl
rm
sginfo
76648
0755
edit
dl
rm
sgm_dd
33344
0755
edit
dl
rm
sgp_dd
37848
0755
edit
dl
rm
sg_bg_ctl
16464
0755
edit
dl
rm
sg_compare_and_write
21408
0755
edit
dl
rm
sg_copy_results
21320
0755
edit
dl
rm
sg_dd
45664
0755
edit
dl
rm
sg_decode_sense
20832
0755
edit
dl
rm
sg_emc_trespass
12560
0755
edit
dl
rm
sg_format
34184
0755
edit
dl
rm
sg_get_config
34128
0755
edit
dl
rm
sg_get_lba_status
20968
0755
edit
dl
rm
sg_ident
16568
0755
edit
dl
rm
sg_inq
120744
0755
edit
dl
rm
sg_logs
153632
0755
edit
dl
rm
sg_luns
25464
0755
edit
dl
rm
sg_map
16808
0755
edit
dl
rm
sg_map26
25480
0755
edit
dl
rm
sg_modes
44944
0755
edit
dl
rm
sg_opcodes
29376
0755
edit
dl
rm
sg_persist
34960
0755
edit
dl
rm
sg_prevent
12368
0755
edit
dl
rm
sg_raw
24984
0755
edit
dl
rm
sg_rbuf
21352
0755
edit
dl
rm
sg_rdac
16264
0755
edit
dl
rm
sg_read
25016
0755
edit
dl
rm
sg_readcap
21376
0755
edit
dl
rm
sg_read_attr
35640
0755
edit
dl
rm
sg_read_block_limits
12416
0755
edit
dl
rm
sg_read_buffer
21480
0755
edit
dl
rm
sg_read_long
16664
0755
edit
dl
rm
sg_reassign
16624
0755
edit
dl
rm
sg_referrals
16632
0755
edit
dl
rm
sg_rep_zones
21168
0755
edit
dl
rm
sg_requests
16704
0755
edit
dl
rm
sg_reset
17144
0755
edit
dl
rm
sg_reset_wp
16568
0755
edit
dl
rm
sg_rmsn
12368
0755
edit
dl
rm
sg_rtpg
16568
0755
edit
dl
rm
sg_safte
20760
0755
edit
dl
rm
sg_sanitize
25184
0755
edit
dl
rm
sg_sat_identify
17128
0755
edit
dl
rm
sg_sat_phy_event
21088
0755
edit
dl
rm
sg_sat_read_gplog
16696
0755
edit
dl
rm
sg_sat_set_features
16664
0755
edit
dl
rm
sg_scan
16912
0755
edit
dl
rm
sg_seek
17272
0755
edit
dl
rm
sg_senddiag
25888
0755
edit
dl
rm
sg_ses
121088
0755
edit
dl
rm
sg_ses_microcode
30200
0755
edit
dl
rm
sg_start
21448
0755
edit
dl
rm
sg_stpg
20800
0755
edit
dl
rm
sg_stream_ctl
20760
0755
edit
dl
rm
sg_sync
16624
0755
edit
dl
rm
sg_test_rwbuf
21248
0755
edit
dl
rm
sg_timestamp
21256
0755
edit
dl
rm
sg_turs
17160
0755
edit
dl
rm
sg_unmap
24912
0755
edit
dl
rm
sg_verify
20960
0755
edit
dl
rm
sg_vpd
111376
0755
edit
dl
rm
sg_write_buffer
21768
0755
edit
dl
rm
sg_write_long
16736
0755
edit
dl
rm
sg_write_same
25080
0755
edit
dl
rm
sg_write_verify
21296
0755
edit
dl
rm
sg_write_x
55056
0755
edit
dl
rm
sg_wr_mode
20792
0755
edit
dl
rm
sg_xcopy
41576
0755
edit
dl
rm
sg_zone
16696
0755
edit
dl
rm
sh
1154680
0755
edit
dl
rm
sha1hmac
33440
0755
edit
dl
rm
sha1sum
46648
0755
edit
dl
rm
sha224hmac
33440
0755
edit
dl
rm
sha224sum
46672
0755
edit
dl
rm
sha256hmac
33440
0755
edit
dl
rm
sha256sum
46672
0755
edit
dl
rm
sha384hmac
33440
0755
edit
dl
rm
sha384sum
46680
0755
edit
dl
rm
sha512hmac
33440
0755
edit
dl
rm
sha512sum
46688
0755
edit
dl
rm
shasum
9892
0755
edit
dl
rm
showconsolefont
21232
0755
edit
dl
rm
showkey
16976
0755
edit
dl
rm
showrgb
13368
0755
edit
dl
rm
shred
63336
0755
edit
dl
rm
shuf
59488
0755
edit
dl
rm
sieve-dump
35872
0755
edit
dl
rm
sieve-filter
45552
0755
edit
dl
rm
sieve-test
41392
0755
edit
dl
rm
sievec
36128
0755
edit
dl
rm
signver
117544
0755
edit
dl
rm
sim_client
16664
0755
edit
dl
rm
size
34048
0755
edit
dl
rm
skill
29488
0755
edit
dl
rm
slabinfo
37016
0755
edit
dl
rm
slabtop
21344
0755
edit
dl
rm
sleep
38296
0755
edit
dl
rm
slencheck
12584
0755
edit
dl
rm
sm3hmac
33440
0755
edit
dl
rm
snice
29488
0755
edit
dl
rm
socat
416248
0755
edit
dl
rm
soelim
43576
0755
edit
dl
rm
sort
126432
0755
edit
dl
rm
sotruss
4281
0755
edit
dl
rm
spell
122
0755
edit
dl
rm
splain
19150
0755
edit
dl
rm
split
59440
0755
edit
dl
rm
sprof
29360
0755
edit
dl
rm
sqlite3
1346512
0755
edit
dl
rm
ssh
775776
0755
edit
dl
rm
ssh-add
354448
0755
edit
dl
rm
ssh-agent
333384
0755
edit
dl
rm
ssh-copy-id
10694
0755
edit
dl
rm
ssh-keygen
437432
0755
edit
dl
rm
ssh-keyscan
442992
0755
edit
dl
rm
ssltap
133640
0755
edit
dl
rm
sss_ssh_authorizedkeys
29472
0755
edit
dl
rm
sss_ssh_knownhostsproxy
29472
0755
edit
dl
rm
stat
88232
0755
edit
dl
rm
stdbuf
50688
0755
edit
dl
rm
strace
2029832
0755
edit
dl
rm
strace-log-merge
1821
0755
edit
dl
rm
stream
12112
0755
edit
dl
rm
strings
38328
0755
edit
dl
rm
strip
245856
0755
edit
dl
rm
stty
79472
0755
edit
dl
rm
stunnel
230504
0755
edit
dl
rm
su
50168
4750
edit
dl
rm
sudo
191000
4111
edit
dl
rm
sudoedit
191000
4111
edit
dl
rm
sudoreplay
122056
0111
edit
dl
rm
sum
46624
0755
edit
dl
rm
sw-engine
21095632
0755
edit
dl
rm
sxpm
29504
0755
edit
dl
rm
sync
38256
0755
edit
dl
rm
systemctl
223696
0755
edit
dl
rm
systemd-analyze
1634864
0755
edit
dl
rm
systemd-ask-password
12312
0755
edit
dl
rm
systemd-cat
16416
0755
edit
dl
rm
systemd-cgls
16832
0755
edit
dl
rm
systemd-cgtop
33672
0755
edit
dl
rm
systemd-delta
25032
0755
edit
dl
rm
systemd-detect-virt
12168
0755
edit
dl
rm
systemd-escape
16392
0755
edit
dl
rm
systemd-firstboot
37872
0755
edit
dl
rm
systemd-hwdb
29600
0755
edit
dl
rm
systemd-inhibit
16416
0755
edit
dl
rm
systemd-machine-id-setup
25344
0755
edit
dl
rm
systemd-mount
53896
0755
edit
dl
rm
systemd-notify
16416
0755
edit
dl
rm
systemd-path
16400
0755
edit
dl
rm
systemd-resolve
200448
0755
edit
dl
rm
systemd-run
50120
0755
edit
dl
rm
systemd-socket-activate
25368
0755
edit
dl
rm
systemd-stdio-bridge
16408
0755
edit
dl
rm
systemd-sysusers
54320
0755
edit
dl
rm
systemd-tmpfiles
75056
0755
edit
dl
rm
systemd-tty-ask-password-agent
33608
0755
edit
dl
rm
systemd-umount
53896
0755
edit
dl
rm
tabs
16952
0755
edit
dl
rm
tac
42488
0755
edit
dl
rm
tail
75912
0755
edit
dl
rm
tapestat
42312
0755
edit
dl
rm
tar
459768
0755
edit
dl
rm
taskset
38152
0755
edit
dl
rm
tbl
158320
0755
edit
dl
rm
tclsh
9256
0755
edit
dl
rm
tclsh8.6
9256
0755
edit
dl
rm
tcptraceroute
1585
0755
edit
dl
rm
teamd
164368
0755
edit
dl
rm
teamdctl
31096
0755
edit
dl
rm
teamnl
20960
0755
edit
dl
rm
tee
42472
0755
edit
dl
rm
test
54848
0755
edit
dl
rm
tic
87360
0755
edit
dl
rm
timedatectl
37848
0755
edit
dl
rm
timeout
42864
0755
edit
dl
rm
tload
17160
0755
edit
dl
rm
tmon
40576
0755
edit
dl
rm
tmpwatch
36320
0755
edit
dl
rm
toe
16848
0755
edit
dl
rm
top
124616
0755
edit
dl
rm
touch
96192
0755
edit
dl
rm
tput
25392
0755
edit
dl
rm
tr
50816
0755
edit
dl
rm
tracepath
20928
0755
edit
dl
rm
traceroute
72672
0755
edit
dl
rm
traceroute6
72672
0755
edit
dl
rm
tred
16984
0755
edit
dl
rm
troff
824344
0755
edit
dl
rm
true
34128
0755
edit
dl
rm
truncate
42352
0755
edit
dl
rm
trust
224824
0755
edit
dl
rm
tset
25352
0755
edit
dl
rm
tsort
42488
0755
edit
dl
rm
tty
34112
0755
edit
dl
rm
turbostat
133936
0755
edit
dl
rm
twopi
12552
0755
edit
dl
rm
type
28
0755
edit
dl
rm
tzselect
15370
0755
edit
dl
rm
uapi
3496912
0755
edit
dl
rm
ucs2any
25000
0755
edit
dl
rm
udevadm
434752
0755
edit
dl
rm
udisksctl
62192
0755
edit
dl
rm
ul
21080
0755
edit
dl
rm
ulimit
30
0755
edit
dl
rm
umask
29
0755
edit
dl
rm
umount
33536
0755
edit
dl
rm
unalias
31
0755
edit
dl
rm
uname
38224
0755
edit
dl
rm
uname26
21256
0755
edit
dl
rm
unexpand
46688
0755
edit
dl
rm
unflatten
17024
0755
edit
dl
rm
unicode_start
2613
0755
edit
dl
rm
unicode_stop
363
0755
edit
dl
rm
uniq
50832
0755
edit
dl
rm
unlink
34144
0755
edit
dl
rm
unpigz
128392
0755
edit
dl
rm
unshare
25528
0755
edit
dl
rm
unversioned-python
157
0755
edit
dl
rm
unxz
84056
0755
edit
dl
rm
unzip
206728
0755
edit
dl
rm
unzipsfx
103912
0755
edit
dl
rm
update-ca-trust
1268
0755
edit
dl
rm
update-crypto-policies
87
0755
edit
dl
rm
update-gtk-immodules
313
0755
edit
dl
rm
update-mime-database
58592
0755
edit
dl
rm
uptime
12888
0755
edit
dl
rm
users
38296
0755
edit
dl
rm
usleep
12144
0755
edit
dl
rm
utmpdump
29352
0755
edit
dl
rm
uuclient
16256
0755
edit
dl
rm
uuidgen
16768
0755
edit
dl
rm
uuidparse
38024
0755
edit
dl
rm
vdir
143256
0755
edit
dl
rm
vi
1180560
0755
edit
dl
rm
view
1180560
0755
edit
dl
rm
vim
3067856
0755
edit
dl
rm
vimdiff
3067856
0755
edit
dl
rm
vimdot
1082
0755
edit
dl
rm
vimtutor
2121
0755
edit
dl
rm
vlock
21328
0755
edit
dl
rm
vmstat
37672
0755
edit
dl
rm
w
21248
0755
edit
dl
rm
wait
28
0755
edit
dl
rm
wall
33840
0755
edit
dl
rm
watch
29888
0755
edit
dl
rm
watchgnupg
16832
0755
edit
dl
rm
wc
50832
0755
edit
dl
rm
wdctl
37864
0755
edit
dl
rm
wget
533944
0755
edit
dl
rm
whatis
55336
0755
edit
dl
rm
whereis
29976
0755
edit
dl
rm
which
30088
0755
edit
dl
rm
whiptail
33880
0755
edit
dl
rm
who
54880
0755
edit
dl
rm
whoami
34136
0755
edit
dl
rm
wmf2eps
17560
0755
edit
dl
rm
wmf2fig
17560
0755
edit
dl
rm
wmf2gd
17552
0755
edit
dl
rm
wmf2svg
17576
0755
edit
dl
rm
wmf2x
17536
0755
edit
dl
rm
word-list-compress
12280
0755
edit
dl
rm
write
21112
0755
edit
dl
rm
wsrep_sst_backup
2447
0755
edit
dl
rm
wsrep_sst_common
70141
0644
edit
dl
rm
wsrep_sst_mariabackup
54265
0755
edit
dl
rm
wsrep_sst_mysqldump
8296
0755
edit
dl
rm
wsrep_sst_rsync
31473
0755
edit
dl
rm
wsrep_sst_rsync_wan
31473
0755
edit
dl
rm
x86_64
21256
0755
edit
dl
rm
x86_64-redhat-linux-c++
1266616
0755
edit
dl
rm
x86_64-redhat-linux-g++
1266616
0755
edit
dl
rm
x86_64-redhat-linux-gcc
1266576
0755
edit
dl
rm
x86_64-redhat-linux-gcc-8
1266576
0755
edit
dl
rm
x86_64-redhat-linux-gnu-pkg-config
424
0755
edit
dl
rm
x86_energy_perf_policy
32720
0755
edit
dl
rm
xargs
75888
0755
edit
dl
rm
xb-tool
29392
0755
edit
dl
rm
xgamma
17488
0755
edit
dl
rm
xgettext
290696
0755
edit
dl
rm
xhost
17528
0755
edit
dl
rm
xinput
65136
0755
edit
dl
rm
xkill
17512
0755
edit
dl
rm
xml2-config
1746
0755
edit
dl
rm
xmlcatalog
20872
0755
edit
dl
rm
xmllint
75136
0755
edit
dl
rm
xmlwf
37856
0755
edit
dl
rm
xmodmap
40936
0755
edit
dl
rm
xorg-x11-fonts-update-dirs
1322
0744
edit
dl
rm
xrandr
67032
0755
edit
dl
rm
xrdb
34800
0755
edit
dl
rm
xrefresh
18368
0755
edit
dl
rm
xset
38088
0755
edit
dl
rm
xsetpointer
13368
0755
edit
dl
rm
xsetroot
21952
0755
edit
dl
rm
xslt-config
2418
0755
edit
dl
rm
xsltproc
29152
0755
edit
dl
rm
xstdcmap
18104
0755
edit
dl
rm
xsubpp
5080
0755
edit
dl
rm
xxd
21032
0755
edit
dl
rm
xz
84056
0755
edit
dl
rm
xzcat
84056
0755
edit
dl
rm
xzcmp
6632
0755
edit
dl
rm
xzdec
16880
0755
edit
dl
rm
xzdiff
6632
0755
edit
dl
rm
xzegrep
5902
0755
edit
dl
rm
xzfgrep
5902
0755
edit
dl
rm
xzgrep
5902
0755
edit
dl
rm
xzless
1802
0755
edit
dl
rm
xzmore
2161
0755
edit
dl
rm
yat2m
34144
0755
edit
dl
rm
yes
34168
0755
edit
dl
rm
ypdomainname
21664
0755
edit
dl
rm
yum
2104
0755
edit
dl
rm
yum-builddep
3702
0755
edit
dl
rm
yum-config-manager
3702
0755
edit
dl
rm
yum-debug-dump
3702
0755
edit
dl
rm
yum-debug-restore
3702
0755
edit
dl
rm
yum-groups-manager
3702
0755
edit
dl
rm
yumdownloader
3702
0755
edit
dl
rm
zcat
1983
0755
edit
dl
rm
zcmp
1677
0755
edit
dl
rm
zdiff
5879
0755
edit
dl
rm
zegrep
29
0755
edit
dl
rm
zfgrep
29
0755
edit
dl
rm
zforce
2080
0755
edit
dl
rm
zgrep
7582
0755
edit
dl
rm
zip
234496
0755
edit
dl
rm
zipcloak
105376
0755
edit
dl
rm
zipdetails
50576
0755
edit
dl
rm
zipgrep
2953
0755
edit
dl
rm
zipinfo
206728
0755
edit
dl
rm
zipnote
100104
0755
edit
dl
rm
zipsplit
100104
0755
edit
dl
rm
zless
2205
0755
edit
dl
rm
zmore
1841
0755
edit
dl
rm
znew
4552
0755
edit
dl
rm
zone2json
1452648
0755
edit
dl
rm
zone2sql
1473776
0755
edit
dl
rm
zsoelim
43576
0755
edit
dl
rm
[
54888
0755
edit
dl
rm
Edit:
/usr/bin/wsrep_sst_common
(70141B)
# Copyright (C) 2017-2024 MariaDB # Copyright (C) 2012-2015 Codership Oy # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston # MA 02110-1335 USA. # This is a common command line parser and common functions to # be sourced by other SST scripts. trap 'exit 32' HUP PIPE trap 'exit 3' INT QUIT TERM OS="$(uname)" # Setting the paths for some utilities on CentOS export PATH="${PATH:+$PATH:}/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin" if [ "$OS" != 'Darwin' ]; then export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/local/lib:/lib:/usr/lib:/opt/lib" fi safe() { if [[ "${!1}" = *[\ \'\`\$]* ]]; then wsrep_log_error "Invalid value for $1: ${!1}" exit 21 fi echo "${!1}" } commandex() { if [ -n "$BASH_VERSION" ]; then command -v "$1" || : elif [ -x "$1" ]; then echo "$1" else which "$1" || : fi } with_bash_42=0 with_printf=1 if [ -z "$BASH_VERSION" ]; then [ -z "$(commandex printf)" ] && with_printf=0 else [ "${BASH_VERSINFO[0]}" -eq 4 -a "${BASH_VERSINFO[1]}" -ge 2 -o \ "${BASH_VERSINFO[0]}" -gt 4 ] && with_bash_42=1 fi wsrep_log() { local t # echo everything to stderr so that it gets into common error log # deliberately made to look different from the rest of the log if [ "$OS" = 'Linux' ]; then t=$(date '+%Y%m%d %H:%M:%S.%3N') elif [ $with_bash_42 -ne 0 ]; then printf -v t '%(%Y%m%d %H:%M:%S)T.000' else t=$(date '+%Y%m%d %H:%M:%S.000') fi echo "WSREP_SST: $* ($t)" >&2 } wsrep_log_error() { wsrep_log "[ERROR] $*" } wsrep_log_warning() { wsrep_log "[WARNING] $*" } wsrep_log_info() { wsrep_log "[INFO] $*" } trim_string() { if [ -n "$BASH_VERSION" ]; then local pattern="[![:space:]${2:-}]" local x="${1#*$pattern}" local z=${#1} x=${#x} if [ $x -ne $z ]; then local y="${1%$pattern*}" y=${#y} x=$(( z-x-1 )) y=$(( y-x+1 )) echo "${1:$x:$y}" else echo '' fi else local pattern="[[:space:]${2:-}]" echo "$1" | sed -E "s/^$pattern+|$pattern+\$//g" fi } trim_dir() { if [ -n "$BASH_VERSION" ]; then local pattern="![:space:]${2:-}" local x="${1#*[$pattern]}" local z=${#1} x=${#x} if [ $x -ne $z ]; then local y="${1%[$pattern/]*}" y=${#y} x=$(( z-x-1 )) y=$(( y-x+1 )) x="${1:$x:$y}" [ -z "$x" ] && x='.' echo "$x" else echo '' fi else local pattern="[:space:]${2:-}" local x=$(echo "$1" | sed -E "s/^[$pattern]+|[$pattern/]+\$//g") if [ -n "$x" ]; then echo "$x" elif "${1#*/}" != "$1"; then echo '.' else echo '' fi fi } trim_right() { if [ -n "$BASH_VERSION" ]; then local pattern="[![:space:]${2:-}]" local z=${#1} local y="${1%$pattern*}" y=${#y} if [ $y -ne $z ]; then y=$(( y+1 )) echo "${1:0:$y}" else echo '' fi else local pattern="[[:space:]${2:-}]" echo "$1" | sed -E "s/$pattern+\$//g" fi } trim_left() { if [ -n "$BASH_VERSION" ]; then local pattern="[![:space:]${2:-}]" local x="${1#*$pattern}" local z=${#1} x=${#x} if [ $x -ne $z ]; then x=$(( z-x-1 )) echo "${1:$x:$z}" else echo '' fi else local pattern="[[:space:]${2:-}]" echo "$1" | sed -E "s/^$pattern+//g" fi } to_minuses() { local x="$1" local t="${1#*_}" local r="" while [ "$t" != "$x" ]; do r="$r${x%%_*}-" x="$t" t="${t#*_}" done echo "$r$x" } WSREP_SST_OPT_BYPASS=0 WSREP_SST_OPT_PROGRESS=0 WSREP_SST_OPT_BINLOG="" WSREP_SST_OPT_BINLOG_INDEX="" WSREP_SST_OPT_LOG_BASENAME="" WSREP_SST_OPT_DATA="" WSREP_SST_OPT_AUTH="${WSREP_SST_OPT_AUTH:-}" WSREP_SST_OPT_USER="${WSREP_SST_OPT_USER:-}" WSREP_SST_OPT_PSWD="${WSREP_SST_OPT_PSWD:-}" WSREP_SST_OPT_DEFAULT="" WSREP_SST_OPT_DEFAULTS="" WSREP_SST_OPT_EXTRA_DEFAULT="" WSREP_SST_OPT_EXTRA_DEFAULTS="" WSREP_SST_OPT_SUFFIX_DEFAULT="" WSREP_SST_OPT_SUFFIX_VALUE="" WSREP_SST_OPT_MYSQLD="" WSREP_SST_OPT_PORT="" WSREP_SST_OPT_ADDR="" WSREP_SST_OPT_ADDR_PORT="" WSREP_SST_OPT_HOST="" WSREP_SST_OPT_HOST_UNESCAPED="" ARIA_LOG_DIR="" INNODB_DATA_HOME_DIR=$(trim_dir "${INNODB_DATA_HOME_DIR:-}") INNODB_LOG_GROUP_HOME=$(trim_dir "${INNODB_LOG_GROUP_HOME:-}") INNODB_UNDO_DIR=$(trim_dir "${INNODB_UNDO_DIR:-}") INNODB_BUFFER_POOL="" INNODB_BUFFER_POOL_SIZE="" INNODB_FORCE_RECOVERY="" INNOEXTRA="" while [ $# -gt 0 ]; do case "$1" in '--address') WSREP_SST_OPT_ADDR=$(trim_string "$2") # # Break address string into host:port/path parts # case "$WSREP_SST_OPT_ADDR" in \[*) # IPv6 # Remove the starting and ending square brackets, if present: addr="${WSREP_SST_OPT_ADDR#\[}" addr=$(trim_right "${addr%%\]*}") # Some utilities and subsequent code require an address # without square brackets: readonly WSREP_SST_OPT_HOST_UNESCAPED="$addr" # Square brackets are needed in most cases: readonly WSREP_SST_OPT_HOST="[$addr]" # Mark this address as IPv6: readonly WSREP_SST_OPT_HOST_IPv6=1 # Let's remove the leading part that contains the host address: remain="${WSREP_SST_OPT_ADDR#*\]}" ;; *) addr=$(trim_right "${WSREP_SST_OPT_ADDR%%[:/]*}") readonly WSREP_SST_OPT_HOST="$addr" readonly WSREP_SST_OPT_HOST_UNESCAPED="$addr" readonly WSREP_SST_OPT_HOST_IPv6=0 # Let's remove the leading part that contains the host address: remain="${WSREP_SST_OPT_ADDR#*[:/]}" ;; esac # If there is nothing but the address, then the remainder is empty: [ "$remain" = "$WSREP_SST_OPT_ADDR" ] && remain="" # Let's remove the ":" character that separates the port number # from the hostname: remain="${remain#:}" # Extract the port number from the address - all characters # up to "/" (if present): WSREP_SST_OPT_ADDR_PORT="${remain%%/*}" # If the "/" character is present, then the path is not empty: if [ "$WSREP_SST_OPT_ADDR_PORT" != "$remain" ]; then # This operation removes everything up to the "/" character, # effectively removing the port number from the string: readonly WSREP_SST_OPT_PATH="${remain#*/}" else readonly WSREP_SST_OPT_PATH="" fi WSREP_SST_OPT_ADDR_PORT=$(trim_right "$WSREP_SST_OPT_ADDR_PORT") # Remove the module name part from the string, which ends with "/": remain="${WSREP_SST_OPT_PATH#*/}" # This operation removes the tail after the very first occurrence # of the "/" character, inclusively: readonly WSREP_SST_OPT_MODULE=$(trim_right "${WSREP_SST_OPT_PATH%%/*}") # If there is one more "/" in the string, then everything before # it will be the LSN, otherwise the LSN is empty: if [ "$remain" != "$WSREP_SST_OPT_PATH" ]; then # Extract the part that matches the LSN by removing all # characters starting from the very first "/": readonly WSREP_SST_OPT_LSN=$(trim_right "${remain%%/*}") # Exctract everything after the first occurrence of # the "/" character in the string: source="$remain" remain="${remain#*/}" # If the remainder does not match the original string, # then there is something else (the version number in # our case): if [ "$remain" != "$source" ]; then # Let's extract the version number by removing the tail # after the very first occurence of the "/" character # (inclusively): readonly WSREP_SST_OPT_SST_VER=$(trim_right "${remain%%/*}") else readonly WSREP_SST_OPT_SST_VER="" fi else readonly WSREP_SST_OPT_LSN="" readonly WSREP_SST_OPT_SST_VER="" fi shift ;; '--bypass') readonly WSREP_SST_OPT_BYPASS=1 ;; '--progress') readonly WSREP_SST_OPT_PROGRESS=$(( $2 )) shift ;; '--datadir') # Let's remove the trailing slash: readonly WSREP_SST_OPT_DATA=$(trim_dir "$2") shift ;; '--aria-log-dir-path') # Let's remove the trailing slash: readonly ARIA_LOG_DIR=$(trim_dir "$2") shift ;; '--innodb-data-home-dir') # Let's remove the trailing slash: readonly INNODB_DATA_HOME_DIR=$(trim_dir "$2") shift ;; '--innodb-log-group-home-dir') # Let's remove the trailing slash: readonly INNODB_LOG_GROUP_HOME=$(trim_dir "$2") shift ;; '--innodb-undo-directory') # Let's remove the trailing slash: readonly INNODB_UNDO_DIR=$(trim_dir "$2") shift ;; '--innodb-buffer-pool-filename') readonly INNODB_BUFFER_POOL=$(trim_string "$2") shift ;; '--innodb-buffer-pool-size') readonly INNODB_BUFFER_POOL_SIZE=$(trim_string "$2") shift ;; '--defaults-file') file=$(trim_string "$2") readonly WSREP_SST_OPT_DEFAULT="$1=$file" readonly WSREP_SST_OPT_DEFAULTS="$1='$file'" shift ;; '--defaults-extra-file') file=$(trim_string "$2") readonly WSREP_SST_OPT_EXTRA_DEFAULT="$1=$file" readonly WSREP_SST_OPT_EXTRA_DEFAULTS="$1='$file'" shift ;; '--defaults-group-suffix') suffix=$(trim_string "$2") readonly WSREP_SST_OPT_SUFFIX_DEFAULT="$1=$suffix" readonly WSREP_SST_OPT_SUFFIX_VALUE="$suffix" shift ;; '--host') addr=$(trim_string "$2") case "$addr" in \[*) # IPv6 # Remove the starting and ending square brackets, if present: addr="${addr#\[}" addr=$(trim_right "${addr%%\]*}") # Some utilities and subsequent code require an address # without square brackets: readonly WSREP_SST_OPT_HOST_UNESCAPED="$addr" # Square brackets are needed in most cases: readonly WSREP_SST_OPT_HOST="[$addr]" # Mark this address as IPv6: readonly WSREP_SST_OPT_HOST_IPv6=1 ;; *) readonly WSREP_SST_OPT_HOST="$addr" readonly WSREP_SST_OPT_HOST_UNESCAPED="$addr" readonly WSREP_SST_OPT_HOST_IPv6=0 ;; esac WSREP_SST_OPT_ADDR="$addr" shift ;; '--local-port') readonly WSREP_SST_OPT_LPORT=$(( $2 )) shift ;; '--parent') readonly WSREP_SST_OPT_PARENT=$(( $2 )) shift ;; '--password') WSREP_SST_OPT_PSWD="$2" shift ;; '--port') readonly WSREP_SST_OPT_PORT=$(( $2 )) shift ;; '--role') readonly WSREP_SST_OPT_ROLE=$(trim_string "$2") shift ;; '--socket') readonly WSREP_SST_OPT_SOCKET=$(trim_string "$2") shift ;; '--user') WSREP_SST_OPT_USER="$2" shift ;; '--gtid') readonly WSREP_SST_OPT_GTID=$(trim_string "$2") shift ;; '--binlog'|'--log-bin') readonly WSREP_SST_OPT_BINLOG=$(trim_string "$2") shift ;; '--binlog-index'|'--log-bin-index') WSREP_SST_OPT_BINLOG_INDEX=$(trim_string "$2") shift ;; '--log-basename') readonly WSREP_SST_OPT_LOG_BASENAME=$(trim_string "$2") shift ;; '--gtid-domain-id') readonly WSREP_SST_OPT_GTID_DOMAIN_ID=$(trim_string "$2") shift ;; '--mysqld-args') original_cmd="" shift cmd_tail=0 while [ $# -gt 0 ]; do lname="${1#--}" # "--" is interpreted as the end of the list of options: if [ -z "$lname" ]; then shift if [ $# -gt 0 ]; then # copy "--" to the output string: original_cmd="$original_cmd --" # All other arguments must be copied unchanged: while [ $# -gt 0 ]; do original_cmd="$original_cmd '$1'" shift done fi break fi # Make sure the argument does not start with "--", otherwise it # is a long option, which is processed after this "if": if [ "$lname" = "$1" ]; then # Check if the argument is the short option or the short # options list, starting with "-": options="${1#-}" if [ "$options" != "$1" -a -n "$options" ]; then slist="" while [ -n "$options" ]; do # Let's separate the first character as the current # option name: if [ -n "$BASH_VERSION" ]; then option="${options:0:1}" elif [ $with_printf -ne 0 ]; then option=$(printf '%.1s' "$options") else # If it's not bash and without printf, # then we need to use slow external utilities: option=$(echo "$options" | cut -c1) fi # And the subsequent characters consider option value: value="" if [ ${#options} -gt 0 ]; then value="${options#?}" fi # Check for options without argument: if [ "$option" != '?' -a \ "$option" != 'a' -a \ "$option" != 's' -a \ "$option" != 'v' ] then # If the option value is absent, then check # the following argument: if [ -z "$value" -a $# -gt 1 ]; then # if the next argument does not start with # the "-" character, then next argument is # the current option value: if [ "${2#-}" = "$2" ]; then shift value="$1" elif [ "$2" = '--' ]; then shift if [ $# -gt 1 ]; then cmd_tail=1 shift value="$1" fi fi fi if [ "$option" = 'h' ]; then if [ -z "$WSREP_SST_OPT_DATA" ]; then MYSQLD_OPT_DATADIR=$(trim_dir "$value") fi elif [ "$option" != 'u' -a \ "$option" != 'P' ] then if [ $cmd_tail -ne 0 ]; then option="$option --" fi if [ -z "$value" ]; then slist="$slist$option" elif [ -z "$slist" ]; then slist="$option '$value'" else slist="$slist -$option '$value'" fi break fi if [ $cmd_tail -ne 0 ]; then if [ -n "$slist" ]; then slist="$slist --" else slist='-' fi fi break else slist="$slist$option" fi options="$value" done if [ -n "$slist" ]; then original_cmd="$original_cmd -$slist" fi elif [ -z "$options" ]; then # We found an minus sign without any characters after it: original_cmd="$original_cmd -" else # We found a value that does not start with a minus - # it is a positional argument or the value of previous # option. Copy it to output string (as is): original_cmd="$original_cmd '$1'" fi shift if [ $cmd_tail -ne 0 ]; then # All other arguments must be copied unchanged: while [ $# -gt 0 ]; do original_cmd="$original_cmd '$1'" shift done break fi continue fi # Now we are sure that we are working with an option # that has a "long" name, so remove all characters after # the first equal sign: option="${1%%=*}" # If the option name contains underscores, then replace # them to minuses: if [ "${option#*_}" != "$option" ]; then option=$(to_minuses "$option") fi # The "--loose-" prefix should not affect the recognition # of the option name: if [ "${option#--loose-}" != "$option" ]; then option="--${option#--loose-}" fi # Some options just need to be removed from the list: if [ "$option" != '--defaults-file' -a \ "$option" != '--defaults-extra-file' -a \ "$option" != '--defaults-group-suffix' -a \ "$option" != '--user' -a \ "$option" != '--port' -a \ "$option" != '--socket' ]; then value="${1#*=}" if [ "$value" = "$1" ]; then value="" fi # Let's fill in the variables containing important paths # that might not have been passed through explicit parameters # (+ removing the trailing slash in these paths). Many of these # options are processed internally within scripts or passed # explicitly to other programs, so we need to remove them # from mysqld's argument list: skip_mysqld_arg=0 case "$option" in '--aria-log-dir-path') if [ -z "$ARIA_LOG_DIR" ]; then MYSQLD_OPT_ARIA_LOG_DIR=$(trim_dir "$value") fi skip_mysqld_arg=1 ;; '--innodb-data-home-dir') if [ -z "$INNODB_DATA_HOME_DIR" ]; then MYSQLD_OPT_INNODB_DATA_HOME_DIR=$(trim_dir "$value") fi skip_mysqld_arg=1 ;; '--innodb-log-group-home-dir') if [ -z "$INNODB_LOG_GROUP_HOME" ]; then MYSQLD_OPT_INNODB_LOG_GROUP_HOME=$(trim_dir "$value") fi skip_mysqld_arg=1 ;; '--innodb-undo-directory') if [ -z "$INNODB_UNDO_DIR" ]; then MYSQLD_OPT_INNODB_UNDO_DIR=$(trim_dir "$value") fi skip_mysqld_arg=1 ;; '--innodb-buffer-pool-filename') if [ -z "$INNODB_BUFFER_POOL" ]; then MYSQLD_OPT_INNODB_BUFFER_POOL=$(trim_string "$value") fi skip_mysqld_arg=1 ;; '--innodb-buffer-pool-size') if [ -z "$INNODB_BUFFER_POOL_SIZE" ]; then MYSQLD_OPT_INNODB_BUFFER_POOL_SIZE=$(trim_string "$value") fi skip_mysqld_arg=1 ;; '--innodb-force-recovery') if [ -n "$value" -a "$value" != "0" ]; then INNODB_FORCE_RECOVERY=$(trim_string "$value") fi skip_mysqld_arg=1 ;; '--log-bin') if [ -z "$WSREP_SST_OPT_BINLOG" ]; then MYSQLD_OPT_LOG_BIN=$(trim_string "$value") fi skip_mysqld_arg=1 ;; '--log-bin-index') if [ -z "$WSREP_SST_OPT_BINLOG_INDEX" ]; then MYSQLD_OPT_LOG_BIN_INDEX=$(trim_string "$value") fi skip_mysqld_arg=1 ;; '--log-basename') if [ -z "$WSREP_SST_OPT_LOG_BASENAME" ]; then MYSQLD_OPT_LOG_BASENAME=$(trim_string "$value") fi skip_mysqld_arg=1 ;; '--datadir') if [ -z "$WSREP_SST_OPT_DATA" ]; then MYSQLD_OPT_DATADIR=$(trim_dir "$value") fi skip_mysqld_arg=1 ;; esac if [ $skip_mysqld_arg -eq 0 ]; then original_cmd="$original_cmd '$1'" fi fi shift done WSREP_SST_OPT_MYSQLD="${original_cmd# *}" break ;; *) # Must be command usage # exit 1 ;; esac shift done WSREP_TRANSFER_TYPE='SST' [ $WSREP_SST_OPT_BYPASS -ne 0 ] && readonly WSREP_TRANSFER_TYPE='IST' # Let's take the name of the current script as a base, # removing the directory, extension and "wsrep_sst_" prefix: WSREP_METHOD="${0##*/}" WSREP_METHOD="${WSREP_METHOD%.*}" readonly WSREP_METHOD="${WSREP_METHOD#wsrep_sst_}" if [ -n "${WSREP_SST_OPT_ROLE+x}" ]; then if [ "$WSREP_SST_OPT_ROLE" != 'donor' -a \ "$WSREP_SST_OPT_ROLE" != 'joiner' ] then wsrep_log_error "Unrecognized role: '$WSREP_SST_OPT_ROLE'" exit 22 # EINVAL fi else readonly WSREP_SST_OPT_ROLE='donor' fi readonly WSREP_SST_OPT_PROGRESS # The same argument can be present on the command line several # times, in this case we must take its last value: if [ -n "${MYSQLD_OPT_ARIA_LOG_DIR:-}" -a \ -z "$ARIA_LOG_DIR" ]; then readonly ARIA_LOG_DIR="$MYSQLD_OPT_ARIA_LOG_DIR" fi if [ -n "${MYSQLD_OPT_INNODB_DATA_HOME_DIR:-}" -a \ -z "$INNODB_DATA_HOME_DIR" ]; then readonly INNODB_DATA_HOME_DIR="$MYSQLD_OPT_INNODB_DATA_HOME_DIR" fi if [ -n "${MYSQLD_OPT_INNODB_LOG_GROUP_HOME:-}" -a \ -z "$INNODB_LOG_GROUP_HOME" ]; then readonly INNODB_LOG_GROUP_HOME="$MYSQLD_OPT_INNODB_LOG_GROUP_HOME" fi if [ -n "${MYSQLD_OPT_INNODB_UNDO_DIR:-}" -a \ -z "$INNODB_UNDO_DIR" ]; then readonly INNODB_UNDO_DIR="$MYSQLD_OPT_INNODB_UNDO_DIR" fi if [ -n "${MYSQLD_OPT_INNODB_BUFFER_POOL:-}" -a \ -z "$INNODB_BUFFER_POOL" ]; then readonly INNODB_BUFFER_POOL="$MYSQLD_OPT_INNODB_BUFFER_POOL" fi if [ -n "${MYSQLD_OPT_INNODB_BUFFER_POOL_SIZE:-}" -a \ -z "$INNODB_BUFFER_POOL_SIZE" ]; then readonly INNODB_BUFFER_POOL_SIZE="$MYSQLD_OPT_INNODB_BUFFER_POOL_SIZE" fi if [ -n "${MYSQLD_OPT_LOG_BIN:-}" -a \ -z "$WSREP_SST_OPT_BINLOG" ]; then readonly WSREP_SST_OPT_BINLOG="$MYSQLD_OPT_LOG_BIN" fi if [ -n "${MYSQLD_OPT_LOG_BIN_INDEX:-}" -a \ -z "$WSREP_SST_OPT_BINLOG_INDEX" ]; then WSREP_SST_OPT_BINLOG_INDEX="$MYSQLD_OPT_LOG_BIN_INDEX" fi if [ -n "${MYSQLD_OPT_DATADIR:-}" -a \ -z "$WSREP_SST_OPT_DATA" ]; then readonly WSREP_SST_OPT_DATA="$MYSQLD_OPT_DATADIR" fi if [ -n "${MYSQLD_OPT_LOG_BASENAME:-}" -a \ -z "$WSREP_SST_OPT_LOG_BASENAME" ]; then readonly WSREP_SST_OPT_LOG_BASENAME="$MYSQLD_OPT_LOG_BASENAME" fi # If the --log-bin option is present without a value, then # set WSREP_SST_OPT_BINLOG value using other arguments: if [ -z "$WSREP_SST_OPT_BINLOG" -a -n "${MYSQLD_OPT_LOG_BIN+x}" ]; then if [ -n "$WSREP_SST_OPT_LOG_BASENAME" ]; then # If the WSREP_SST_OPT_BINLOG variable is not set, but # --log-basename is present among the arguments to mysqld, # then set WSREP_SST_OPT_BINLOG equal to the base name # with the "-bin" suffix: readonly WSREP_SST_OPT_BINLOG="$WSREP_SST_OPT_LOG_BASENAME-bin" else # Take the default name: readonly WSREP_SST_OPT_BINLOG='mysql-bin' fi fi # Reconstructing the command line arguments that control the innodb # and binlog options: if [ -n "$WSREP_SST_OPT_LOG_BASENAME" ]; then if [ -n "$WSREP_SST_OPT_MYSQLD" ]; then WSREP_SST_OPT_MYSQLD="--log-basename='$WSREP_SST_OPT_LOG_BASENAME' $WSREP_SST_OPT_MYSQLD" else WSREP_SST_OPT_MYSQLD="--log-basename='$WSREP_SST_OPT_LOG_BASENAME'" fi fi if [ -n "$ARIA_LOG_DIR" ]; then INNOEXTRA="$INNOEXTRA --aria-log-dir-path='$ARIA_LOG_DIR'" fi if [ -n "$INNODB_DATA_HOME_DIR" ]; then INNOEXTRA="$INNOEXTRA --innodb-data-home-dir='$INNODB_DATA_HOME_DIR'" fi if [ -n "$INNODB_LOG_GROUP_HOME" ]; then INNOEXTRA="$INNOEXTRA --innodb-log-group-home-dir='$INNODB_LOG_GROUP_HOME'" fi if [ -n "$INNODB_UNDO_DIR" ]; then INNOEXTRA="$INNOEXTRA --innodb-undo-directory='$INNODB_UNDO_DIR'" fi if [ -n "$INNODB_BUFFER_POOL" ]; then INNOEXTRA="$INNOEXTRA --innodb-buffer-pool-filename='$INNODB_BUFFER_POOL'" fi if [ -n "$INNODB_BUFFER_POOL_SIZE" ]; then INNOEXTRA="$INNOEXTRA --innodb-buffer-pool-size='$INNODB_BUFFER_POOL_SIZE'" fi if [ -n "$WSREP_SST_OPT_BINLOG" ]; then INNOEXTRA="$INNOEXTRA --log-bin='$WSREP_SST_OPT_BINLOG'" if [ -n "$WSREP_SST_OPT_BINLOG_INDEX" ]; then if [ -n "$WSREP_SST_OPT_MYSQLD" ]; then WSREP_SST_OPT_MYSQLD="--log-bin-index='$WSREP_SST_OPT_BINLOG_INDEX' $WSREP_SST_OPT_MYSQLD" else WSREP_SST_OPT_MYSQLD="--log-bin-index='$WSREP_SST_OPT_BINLOG_INDEX'" fi fi fi readonly INNODB_FORCE_RECOVERY readonly WSREP_SST_OPT_MYSQLD get_binlog() { # if no command line argument and WSREP_SST_OPT_BINLOG is not set, # try to get it from my.cnf: if [ -z "$WSREP_SST_OPT_BINLOG" ]; then WSREP_SST_OPT_BINLOG=$(parse_cnf '--mysqld' 'log-bin') fi # if no command line argument and WSREP_SST_OPT_BINLOG_INDEX is not set, # try to get it from my.cnf: if [ -z "$WSREP_SST_OPT_BINLOG_INDEX" ]; then WSREP_SST_OPT_BINLOG_INDEX=$(parse_cnf '--mysqld' 'log-bin-index') fi # if no command line argument and WSREP_SST_OPT_LOG_BASENAME is not set, # then try to get it from my.cnf: if [ -z "$WSREP_SST_OPT_LOG_BASENAME" ]; then WSREP_SST_OPT_LOG_BASENAME=$(parse_cnf '--mysqld' 'log-basename') fi if [ -z "$WSREP_SST_OPT_BINLOG" ]; then # If the log-bin option is specified without a parameter, # then we need to build the name of the index file according # to the rules described in the server documentation: if [ $(in_config '--mysqld' 'log-bin') -ne 0 ]; then if [ -n "$WSREP_SST_OPT_LOG_BASENAME" ]; then # If the WSREP_SST_OPT_BINLOG variable is not set, but # --log-basename is present among the arguments of mysqld, # then set WSREP_SST_OPT_BINLOG equal to the base name # with the "-bin" suffix: readonly WSREP_SST_OPT_BINLOG="$WSREP_SST_OPT_LOG_BASENAME-bin" else # Take the default name: readonly WSREP_SST_OPT_BINLOG='mysql-bin' fi fi fi if [ -n "$WSREP_SST_OPT_BINLOG" ]; then # If the name of the index file is not specified, then we will build # it according to the specifications for the server: if [ -z "$WSREP_SST_OPT_BINLOG_INDEX" ]; then if [ -n "$WSREP_SST_OPT_LOG_BASENAME" ]; then # If the WSREP_SST_OPT_BINLOG_INDEX variable is not set, but # --log-basename is present among the arguments of mysqld, # then set WSREP_SST_OPT_BINLOG_INDEX equal to the base name # with the "-bin" suffix: readonly WSREP_SST_OPT_BINLOG_INDEX="$WSREP_SST_OPT_LOG_BASENAME-bin.index" else # Use the default name (note that base of this name # is already defined above): readonly WSREP_SST_OPT_BINLOG_INDEX="$WSREP_SST_OPT_BINLOG.index" fi else # Remove all directories from the index file path: local filename="${WSREP_SST_OPT_BINLOG_INDEX##*/}" # Check if the index file name contains the extension: if [ "${filename%.*}" = "$filename" ]; then # Let's add the default extension (".index"): readonly WSREP_SST_OPT_BINLOG_INDEX="$WSREP_SST_OPT_BINLOG_INDEX.index" else readonly WSREP_SST_OPT_BINLOG_INDEX fi fi fi } # Check the presence of the port value and, if necessary, transfer # the port number from the address to the WSREP_SST_OPT_PORT variable # or vice versa, and also, if necessary, substitute the missing port # value into the address value: if [ -n "$WSREP_SST_OPT_ADDR_PORT" ]; then if [ -n "$WSREP_SST_OPT_PORT" ]; then if [ "$WSREP_SST_OPT_PORT" != "$WSREP_SST_OPT_ADDR_PORT" ]; then echo "WSREP_SST: [ERROR] port in --port=$WSREP_SST_OPT_PORT" \ "differs from port in --address=$WSREP_SST_OPT_ADDR" >&2 exit 2 fi else # If the address contains a port number, assign it to # the corresponding variable: readonly WSREP_SST_OPT_PORT="$WSREP_SST_OPT_ADDR_PORT" fi else # If the port is missing, take the default port: if [ -z "$WSREP_SST_OPT_PORT" ]; then readonly WSREP_SST_OPT_PORT=4444 fi WSREP_SST_OPT_ADDR_PORT="$WSREP_SST_OPT_PORT" fi # Let's construct a new value for the address with the port: sst_path="${WSREP_SST_OPT_PATH:+/}$WSREP_SST_OPT_PATH" WSREP_SST_OPT_ADDR="$WSREP_SST_OPT_HOST:$WSREP_SST_OPT_PORT$sst_path" readonly WSREP_SST_OPT_ADDR readonly WSREP_SST_OPT_ADDR_PORT # try to use my_print_defaults, mysql and mysqldump that come # with the sources (for MTR suite): script_binary=$(dirname "$0") SCRIPTS_DIR=$(cd "$script_binary"; pwd) EXTRA_DIR="$SCRIPTS_DIR/../extra" if [ -x "$SCRIPTS_DIR/my_print_defaults" ]; then MY_PRINT_DEFAULTS="$SCRIPTS_DIR/my_print_defaults" elif [ -x "$EXTRA_DIR/my_print_defaults" ]; then MY_PRINT_DEFAULTS="$EXTRA_DIR/my_print_defaults" else MY_PRINT_DEFAULTS=$(commandex 'my_print_defaults') if [ -z "$MY_PRINT_DEFAULTS" ]; then wsrep_log_error "my_print_defaults not found in path" exit 2 fi fi readonly MY_PRINT_DEFAULTS wsrep_defaults="$WSREP_SST_OPT_DEFAULTS" wsrep_defaults="$wsrep_defaults${WSREP_SST_OPT_EXTRA_DEFAULTS:+ }$WSREP_SST_OPT_EXTRA_DEFAULTS" wsrep_defaults="$wsrep_defaults${WSREP_SST_OPT_SUFFIX_DEFAULT:+ }$WSREP_SST_OPT_SUFFIX_DEFAULT" readonly WSREP_SST_OPT_CONF="${wsrep_defaults:+ }$wsrep_defaults" wsrep_defaults="$WSREP_SST_OPT_DEFAULT" wsrep_defaults="$wsrep_defaults${WSREP_SST_OPT_EXTRA_DEFAULT:+ }$WSREP_SST_OPT_EXTRA_DEFAULT" wsrep_defaults="$wsrep_defaults${WSREP_SST_OPT_SUFFIX_DEFAULT:+ }$WSREP_SST_OPT_SUFFIX_DEFAULT" readonly WSREP_SST_OPT_CONF_UNQUOTED="${wsrep_defaults:+ }$wsrep_defaults" # # User can specify mariabackup specific settings that will be used during sst # process like encryption, etc. Parse such configuration option. # # 1st parameter: group (config file section like sst) or # my_print_defaults argument (like --mysqld) # 2nd parameter: var : name of the variable in the section, e.g. server-id # 3rd parameter: default value for the parameter # parse_cnf() { local groups="$1" local var="$2" local reval="" # normalize the variable names specified in the .cnf file # (user can use '_' or '-', for example, log-bin or log_bin), # then search for the last instance of the desired variable # and finally get the value of that variable (if the variable # was specified several times - we use only its last instance): local pattern='BEGIN {OFS=FS="="} {sub(/^--loose/,"-",$0); gsub(/_/,"-",$1); if ($1=="--'"$var"'") lastval=substr($0,length($1)+2)} END {print lastval}' while [ -n "$groups" ]; do # Remove the largest suffix starting with the '|' character: local group="${groups%%\|*}" # Remove the remainder (the group name) from the rest # of the groups list (as if it were a prefix): if [ "$group" != "$groups" ]; then groups="${groups#*\|}" else groups="" fi # If the group name is the same as the "mysqld" without "--" prefix, # then try to use it together with the group suffix: if [ "$group" = 'mysqld' -a -n "$WSREP_SST_OPT_SUFFIX_VALUE" ]; then reval=$("$MY_PRINT_DEFAULTS" \ ${WSREP_SST_OPT_DEFAULT:+"$WSREP_SST_OPT_DEFAULT"} \ ${WSREP_SST_OPT_EXTRA_DEFAULT:+"$WSREP_SST_OPT_EXTRA_DEFAULT"} \ ${WSREP_SST_OPT_SUFFIX_DEFAULT:+"$WSREP_SST_OPT_SUFFIX_DEFAULT"} \ "mysqld$WSREP_SST_OPT_SUFFIX_VALUE" | awk "$pattern") if [ -n "$reval" ]; then break fi fi # Let's try to use the group name as it is: reval=$("$MY_PRINT_DEFAULTS" \ ${WSREP_SST_OPT_DEFAULT:+"$WSREP_SST_OPT_DEFAULT"} \ ${WSREP_SST_OPT_EXTRA_DEFAULT:+"$WSREP_SST_OPT_EXTRA_DEFAULT"} \ ${WSREP_SST_OPT_SUFFIX_DEFAULT:+"$WSREP_SST_OPT_SUFFIX_DEFAULT"} \ "$group" | awk "$pattern") if [ -n "$reval" ]; then break fi done # Use default if we haven't found a value: [ -z "$reval" ] && reval="${3:-}" # Truncate spaces: [ -n "$reval" ] && reval=$(trim_string "$reval") echo "$reval" } # # This function simply checks for the presence of the parameter # in the config file, but does not return its value. It returns "1" # (true) even if the parameter is present in the configuration file # without a value: # in_config() { local groups="$1" local var="$2" local found=0 # normalize the variable names specified in the .cnf file # (user can use '_' or '-', for example, log-bin or log_bin), # then search for the last instance(s) of the desired variable: local pattern='BEGIN {OFS=FS="="; found=0} {sub(/^--loose/,"-",$0); gsub(/_/,"-",$1); if ($1=="--'"$var"'") found=1} END {print found}' while [ -n "$groups" ]; do # Remove the largest suffix starting with the '|' character: local group="${groups%%\|*}" # Remove the remainder (the group name) from the rest # of the groups list (as if it were a prefix): if [ "$group" != "$groups" ]; then groups="${groups#*\|}" else groups="" fi # If the group name is the same as the "mysqld" without "--" prefix, # then try to use it together with the group suffix: if [ "$group" = 'mysqld' -a -n "$WSREP_SST_OPT_SUFFIX_VALUE" ]; then found=$("$MY_PRINT_DEFAULTS" \ ${WSREP_SST_OPT_DEFAULT:+"$WSREP_SST_OPT_DEFAULT"} \ ${WSREP_SST_OPT_EXTRA_DEFAULT:+"$WSREP_SST_OPT_EXTRA_DEFAULT"} \ ${WSREP_SST_OPT_SUFFIX_DEFAULT:+"$WSREP_SST_OPT_SUFFIX_DEFAULT"} \ "mysqld$WSREP_SST_OPT_SUFFIX_VALUE" | awk "$pattern") if [ $found -ne 0 ]; then break fi fi # Let's try to use the group name as it is: found=$($MY_PRINT_DEFAULTS \ ${WSREP_SST_OPT_DEFAULT:+"$WSREP_SST_OPT_DEFAULT"} \ ${WSREP_SST_OPT_EXTRA_DEFAULT:+"$WSREP_SST_OPT_EXTRA_DEFAULT"} \ ${WSREP_SST_OPT_SUFFIX_DEFAULT:+"$WSREP_SST_OPT_SUFFIX_DEFAULT"} \ "$group" | awk "$pattern") if [ $found -ne 0 ]; then break fi done echo $found } # Get rid of incorrect values resulting from substitution # in programs external to the script: if [ "$WSREP_SST_OPT_USER" = '(null)' ]; then WSREP_SST_OPT_USER="" fi if [ "$WSREP_SST_OPT_PSWD" = '(null)' ]; then WSREP_SST_OPT_PSWD="" fi if [ "$WSREP_SST_OPT_AUTH" = '(null)' ]; then WSREP_SST_OPT_AUTH="" fi # Let's read the value of the authentication string from the # configuration file so that it does not go to the command line # and does not appear in the ps output: if [ -z "$WSREP_SST_OPT_AUTH" ]; then WSREP_SST_OPT_AUTH=$(parse_cnf 'sst' 'wsrep-sst-auth') fi # Splitting WSREP_SST_OPT_AUTH as "user:password" pair: if [ -n "$WSREP_SST_OPT_AUTH" ]; then # Extract username as shortest prefix up to first ':' character: WSREP_SST_OPT_AUTH_USER="${WSREP_SST_OPT_AUTH%%:*}" if [ -z "$WSREP_SST_OPT_USER" ]; then # if the username is not in the command line arguments, # set the username and password using WSREP_SST_OPT_AUTH # from the environment: WSREP_SST_OPT_USER="$WSREP_SST_OPT_AUTH_USER" WSREP_SST_OPT_PSWD="${WSREP_SST_OPT_AUTH#*:}" elif [ "$WSREP_SST_OPT_USER" = "$WSREP_SST_OPT_AUTH_USER" ]; then # If the username in the command line arguments and in # the environment variable are the same, set the password # if it was not specified in the command line: if [ -z "$WSREP_SST_OPT_PSWD" ]; then WSREP_SST_OPT_PSWD="${WSREP_SST_OPT_AUTH#*:}" fi else # The username is passed through the command line and does # not match the username in the environment variable - ignore # the environment and rebuild the authentication parameters: WSREP_SST_OPT_AUTH="$WSREP_SST_OPT_USER:$WSREP_SST_OPT_PSWD" fi fi WSREP_SST_OPT_REMOTE_AUTH="${WSREP_SST_OPT_REMOTE_AUTH:-}" WSREP_SST_OPT_REMOTE_USER= WSREP_SST_OPT_REMOTE_PSWD= if [ -n "$WSREP_SST_OPT_REMOTE_AUTH" ]; then # Split auth string at the last ':' WSREP_SST_OPT_REMOTE_USER="${WSREP_SST_OPT_REMOTE_AUTH%%:*}" WSREP_SST_OPT_REMOTE_PSWD="${WSREP_SST_OPT_REMOTE_AUTH#*:}" fi readonly WSREP_SST_OPT_USER readonly WSREP_SST_OPT_PSWD readonly WSREP_SST_OPT_AUTH readonly WSREP_SST_OPT_REMOTE_USER readonly WSREP_SST_OPT_REMOTE_PSWD readonly WSREP_SST_OPT_REMOTE_AUTH if [ -n "$WSREP_SST_OPT_DATA" ]; then SST_PROGRESS_FILE="$WSREP_SST_OPT_DATA/sst_in_progress" else SST_PROGRESS_FILE="" fi wsrep_cleanup_progress_file() { if [ -n "$SST_PROGRESS_FILE" -a -f "$SST_PROGRESS_FILE" ]; then rm -f "$SST_PROGRESS_FILE" 2>/dev/null || : fi } wsrep_check_program() { local prog="$1" local cmd=$(commandex "$prog") if [ -z "$cmd" ]; then wsrep_log_error "'$prog' not found in path" return 2 # no such file or directory fi } wsrep_check_programs() { local ret=0 while [ $# -gt 0 ]; do wsrep_check_program "$1" || ret=$? shift done return $ret } wsrep_check_datadir() { if [ -z "$WSREP_SST_OPT_DATA" ]; then wsrep_log_error \ "The '--datadir' parameter must be passed to the SST script" exit 2 fi } get_openssl() { # If the OPENSSL_BINARY variable is already defined, just return: if [ -n "${OPENSSL_BINARY+x}" ]; then return 0 fi # Let's look for openssl: OPENSSL_BINARY=$(commandex 'openssl') if [ -z "$OPENSSL_BINARY" ]; then OPENSSL_BINARY='/usr/bin/openssl' if [ ! -x "$OPENSSL_BINARY" ]; then OPENSSL_BINARY="" fi fi readonly OPENSSL_BINARY } # # Generate a string equivalent to 16 random bytes # wsrep_gen_secret() { get_openssl if [ -n "$OPENSSL_BINARY" ]; then "$OPENSSL_BINARY" rand -hex 16 elif [ -n "$BASH_VERSION" ]; then printf '%04x%04x%04x%04x%04x%04x%04x%04x' \ $RANDOM $RANDOM $RANDOM $RANDOM \ $RANDOM $RANDOM $RANDOM $RANDOM elif [ $with_printf -ne 0 -a -n "$(commandex cksum)" ]; then printf '%08x%08x%08x%08x' \ $(head -8 /dev/urandom | cksum | cut -d ' ' -f1) \ $(head -8 /dev/urandom | cksum | cut -d ' ' -f1) \ $(head -8 /dev/urandom | cksum | cut -d ' ' -f1) \ $(head -8 /dev/urandom | cksum | cut -d ' ' -f1) else wsrep_log_error "Unable to generate 16-byte secret" exit 22 fi } # # Checking if the address passed to us is local. # If the second parameter is nonzero, then this function # does not check for matches with local domain names: # is_local_ip() { # Rapid recognition of the most common cases: [ "$1" = '127.0.0.1' -o \ "$1" = '127.0.0.2' -o \ "$1" = 'localhost' -o \ "$1" = '::1' ] && return 0 # If the address starts with "127." this is probably a local # address, but we need to clarify what follows this prefix: if [ "${1#127.}" != "$1" ]; then # All 127.0.0.0/8 addresses are local: if echo "$1" | grep -q -E '^127\.[0-9]+\.[0-9]+\.[0-9]+$'; then return 0 fi fi # If the second parameter is nonzero, then we will skip # the domain name check: if [ "${2:-0}" -eq 0 ]; then # We consider all the names of a given host to be local addresses: [ "$1" = "$(hostname -s 2>/dev/null)" -o \ "$1" = "$(hostname -f 2>/dev/null)" -o \ "$1" = "$(hostname -d 2>/dev/null)" ] && return 0 fi # If the address contains anything other than digits # and separators, it is not a local address: [ "${1#*[!0-9.]}" != "$1" ] && \ [ "${1#*[!0-9A-Fa-f:\[\]]}" != "$1" ] && return 1 # Now let's check if the given address is assigned to # one of the network cards: local ip_util=$(commandex 'ip') if [ -n "$ip_util" ]; then # ip address show ouput format is " inet[6] <address>/<mask>": "$ip_util" address show \ | grep -o -E '^[[:space:]]*inet.?[[:space:]]+[^[:space:]]+/' \ | grep -qw -F -- "$1/" && return 0 else local ifconfig_util=$(commandex 'ifconfig') if [ -n "$ifconfig_util" ]; then # ifconfig output format is " inet[6] <address> ...": "$ifconfig_util" \ | grep -o -E '^[[:space:]]*inet.?[[:space:]]+[^[:space:]]+' \ | grep -qw -F -- "$1" && return 0 fi fi return 1 } check_sockets_utils() { # The presence of any of these utilities is enough for us: lsof_available=0 sockstat_available=0 ss_available=0 raw_socket_check=0 if [ -n "$(commandex selinuxenabled)" ] && selinuxenabled; then raw_socket_check=1 wsrep_log_info "/proc/net/tcp{,6} is being used directly to avoid excessive selinux AVC notices" return 0 fi socket_utility="$(commandex ss)" if [ -n "$socket_utility" ]; then socket_uname='ss' ss_available=1 ss_opts='-nlp' # Let's check that ss has an option to skip headers: if $socket_utility -h 2>&1 | grep -qw -F -- '-H'; then ss_available=2 ss_opts="${ss_opts}H" fi else socket_utility="$(commandex sockstat)" if [ -n "$socket_utility" ]; then socket_uname='sockstat' sockstat_available=1 sockstat_opts='-p' if [ "$OS" = 'FreeBSD' ]; then # sockstat in FreeBSD is different from other systems, # let's denote it with a different value: sockstat_available=2 sockstat_opts='-46lq -P tcp -p' fi else socket_utility="$(commandex lsof)" if [ -n "$socket_utility" ]; then socket_uname='lsof' lsof_available=1 lsof_opts='-Pnl' # Let's check that lsof has an option to bypass blocking: if $socket_utility -h 2>&1 | grep -qw -F -- '-b'; then lsof_available=2 lsof_opts="$lsof_opts -b -w" else lsof_opts="$lsof_opts -S 10" fi else wsrep_log_error "Neither lsof, nor sockstat, nor ss tool" \ "were found in the path. Make sure you have" \ "at least one of them installed." exit 2 # ENOENT fi fi fi wsrep_log_info "'$socket_uname' is selected as a socket" \ "information utility." } # # Check if the port is in the "listen" state. # The first parameter is the PID of the process that should # listen on the port - if it is not known, you can specify # an empty string or zero. # The second parameter is the port number. # The third parameter is a list of the names of utilities # (via "|") that can listen on this port during the state # transfer. # check_port() { local pid="${1:-0}" local port="$2" local utils="$3" [ $pid -le 0 ] && pid='[0-9]+' local rc=2 # ENOENT if [ $raw_socket_check -ne 0 ]; then for key in $(awk -v p="$port" 'BEGIN { hex_port = sprintf(":%04X", p) } $2 ~ hex_port && $4 == "0A" { print $10 }' /proc/net/tcp /proc/net/tcp6); do return 0 done elif [ $ss_available -ne 0 ]; then $socket_utility $ss_opts -t "( sport = :$port )" 2>/dev/null | \ grep -q -E "[[:space:]]users:[[:space:]]?\\(.*\\(\"($utils)[^[:space:]]*\"[^)]*,pid=$pid(,[^)]*)?\\)" && rc=0 elif [ $sockstat_available -ne 0 ]; then if [ $sockstat_available -gt 1 ]; then # The sockstat command on FreeBSD does not return # the connection state without special option, but # it supports filtering by connection state: local out out=$($socket_utility $sockstat_opts "$port" 2>/dev/null) || rc=16 # EBUSY # On FreeBSD, the sockstat utility may exit without # any output due to locking issues in certain versions; # let's return a special exit code in such cases: if [ $rc -eq 16 -o -z "$out" ]; then return 16 # EBUSY fi echo "$out" | \ grep -q -E "^[^[:space:]]+[[:space:]]+($utils)[^[:space:]]*[[:space:]]+$pid([[:space:]]|\$)" && rc=0 else $socket_utility $sockstat_opts "$port" 2>/dev/null | \ grep -q -E "^[^[:space:]]+[[:space:]]+($utils)[^[:space:]]*[[:space:]]+$pid([[:space:]].+)?[[:space:]]LISTEN([[:space:]]|\$)" && rc=0 fi elif [ $lsof_available -ne 0 ]; then $socket_utility $lsof_opts -i ":$port" 2>/dev/null | \ grep -q -E "^($utils)[^[:space:]]*[[:space:]]+$pid([[:space:]].+)?[[:space:]]\\(LISTEN\\)([[:space:]]|\$)" && rc=0 else wsrep_log_error "Unknown sockets utility" exit 2 # ENOENT fi return $rc } # # If the ssl_dhparams variable is already set, uses that as a source # of dh parameters for OpenSSL. Otherwise, looks for dhparams.pem in # the datadir, and creates it there if it can't find the file. # check_for_dhparams() { ssl_dhparams="$DATA/dhparams.pem" get_openssl if [ -n "$OPENSSL_BINARY" ]; then wsrep_log_info \ "Could not find dhparams file, creating $ssl_dhparams" local bug=0 local errmsg errmsg=$("$OPENSSL_BINARY" \ dhparam -out "$ssl_dhparams" -dsaparam 2048 2>&1) || bug=1 if [ $bug -ne 0 ]; then wsrep_log_info "run: \"$OPENSSL_BINARY\" dhparam"\ "-out \"$ssl_dhparams\" -dsaparam 2048" wsrep_log_info "output: $errmsg" wsrep_log_error "******** ERROR *****************************************" wsrep_log_error "* Could not create the dhparams.pem file with OpenSSL. *" wsrep_log_error "********************************************************" ssl_dhparams="" fi else # Rollback: if openssl is not installed, then use # the default parameters: ssl_dhparams="" fi } # # Verifies that the CA file verifies the certificate. # Doing this here lets us generate better error messages. # # 1st param: path to the CA file. # 2nd param: path to the certificate. # verify_ca_matches_cert() { local cert="$1" local ca="$2" local cap="$3" local readable=1; [ ! -r "$cert" ] && readable=0 [ -n "$ca" -a ! -r "$ca" ] && readable=0 [ -n "$cap" -a ! -r "$cap" ] && readable=0 if [ $readable -eq 0 ]; then wsrep_log_error \ "Both PEM file and CA file (or path) must be readable" exit 22 fi # If the openssl utility is not installed, then # we will not do this certificate check: get_openssl if [ -z "$OPENSSL_BINARY" ]; then wsrep_log_info "openssl utility not found" return fi local not_match=0 local errmsg # -untrusted lets intermediate CAs bundled after the leaf complete the # chain to the CA. Safe despite the name: these are only candidate links, # still rejected unless signed back to the trusted CA (-CAfile). errmsg=$("$OPENSSL_BINARY" verify -verbose \ ${ca:+ -CAfile} ${ca:+ "$ca"} \ ${cap:+ -CApath} ${cap:+ "$cap"} \ -untrusted "$cert" \ "$cert" 2>&1) || not_match=1 if [ $not_match -eq 1 ]; then wsrep_log_info "run: \"$OPENSSL_BINARY\" verify -verbose${ca:+ -CAfile \"$ca\"}${cap:+ -CApath \"$cap\"} \"$cert\"" wsrep_log_info "output: $errmsg" wsrep_log_error "******** FATAL ERROR ********************************************" wsrep_log_error "* The certifcate and CA (certificate authority) do not match. *" wsrep_log_error "* It does not appear that the certificate was issued by the CA. *" wsrep_log_error "* Please check your certificate and CA files. *" wsrep_log_error "*****************************************************************" exit 22 fi } # # Verifies that the certificate matches the private key. # Doing this will save us having to wait for a timeout that would # otherwise occur. # # 1st param: path to the certificate. # 2nd param: path to the private key. # verify_cert_matches_key() { local cert="$1" local key="$2" if [ ! -r "$key" -o ! -r "$cert" ]; then wsrep_log_error "Both the certificate file and the key file" \ "must be readable" exit 22 fi # If the openssl utility is not installed, then # we will not do this certificate check: get_openssl if [ -z "$OPENSSL_BINARY" ]; then wsrep_log_info "openssl utility not found" return fi # Generate the public key from the cert and the key. # They should match (otherwise we can't create an SSL connection). local pk1=$("$OPENSSL_BINARY" x509 -in "$cert" -pubkey -noout 2>/dev/null || :) local pk2=$("$OPENSSL_BINARY" pkey -in "$key" -pubout 2>/dev/null || :) if [ "$pk1" != "$pk2" ]; then wsrep_log_error "******************* FATAL ERROR *****************" wsrep_log_error "* The certificate and private key do not match. *" wsrep_log_error "* Please check your certificate and key files. *" wsrep_log_error "*************************************************" exit 22 fi } # # Compares two version strings. # The first parameter is the version to be checked; # The second parameter is the minimum version required; # Returns 1 (failure) if $1 >= $2, 0 (success) otherwise. # check_for_version() { local y1="${1#*.}" [ "$y1" = "$1" ] && y1="" local z1="${y1#*.}" [ "$z1" = "$y1" ] && z1="" local w1="${z1#*.}" [ "$w1" = "$z1" ] && w1="" local x1="${1%%.*}" y1="${y1%%.*}" z1="${z1%%.*}" w1="${w1%%.*}" [ -z "$y1" ] && y1=0 [ -z "$z1" ] && z1=0 [ -z "$w1" ] && w1=0 local y2="${2#*.}" [ "$y2" = "$2" ] && y2="" local z2="${y2#*.}" [ "$z2" = "$y2" ] && z2="" local w2="${z2#*.}" [ "$w2" = "$z2" ] && w2="" local x2="${2%%.*}" y2="${y2%%.*}" z2="${z2%%.*}" w2="${w2%%.*}" [ -z "$y2" ] && y2=0 [ -z "$z2" ] && z2=0 [ -z "$w2" ] && w2=0 [ $x1 -lt $x2 ] && return 1 [ $x1 -gt $x2 ] && return 0 [ $y1 -lt $y2 ] && return 1 [ $y1 -gt $y2 ] && return 0 [ $z1 -lt $z2 ] && return 1 [ $z1 -gt $z2 ] && return 0 [ $w1 -lt $w2 ] && return 1 return 0 } # # Check whether process is still running. # The first parameter contains the name of the PID file. # The second parameter is the flag of the need to delete # the PID file. # If the second parameter is not zero and not empty, # then if the process terminates, the corresponding # PID file will be deleted. # This function also sets the CHECK_PID variable to zero # if the process has already exited, or writes the PID # of the process there if it is still running. # check_pid() { local pid_file="$1" if [ -r "$pid_file" ]; then local pid=$(cat "$pid_file" 2>/dev/null || :) if [ -n "$pid" ]; then if [ $pid -gt 0 ]; then if ps -p $pid >/dev/null 2>&1; then CHECK_PID=$pid return 0 fi fi fi local remove=${2:-0} if [ $remove -ne 0 ]; then rm -f "$pid_file" || : fi fi local config="${3:-}" if [ -n "$config" -a -f "$config" ]; then rm -f "$config" || : fi CHECK_PID=0 return 1 } # # Checking that the process with the specified PID is still # running and killing it in this case by sending SIGTERM # (using the "kill" operation). # The first parameter contains PID of the process. # The second and third parameters (both optional) are the names # of the PID and the configuration files, which should be removed # after the process ends. # If the first parameter (PID of the process) is zero, then # the function immediately deletes the PID and the configuration # files (if specified), without any additional checks. # cleanup_pid() { local pid=$1 local pid_file="${2:-}" local config="${3:-}" if [ $pid -gt 0 ]; then if ps -p $pid >/dev/null 2>&1; then if kill $pid >/dev/null 2>&1; then sleep 0.5 local round=0 local force=0 while ps -p $pid >/dev/null 2>&1; do sleep 1 round=$(( round+1 )) if [ $round -eq 16 ]; then if [ $force -eq 0 ]; then round=8 force=1 kill -9 $pid >/dev/null 2>&1 || : sleep 0.5 else return 1 fi fi done elif ps -p $pid >/dev/null 2>&1; then wsrep_log_warning "Unable to kill PID=$pid${pid_file:+ ($pid_file)}" return 1 fi fi fi [ -n "$pid_file" -a -f "$pid_file" ] && rm -f "$pid_file" || : [ -n "$config" -a -f "$config" ] && rm -f "$config" || : return 0 } nproc="" get_proc() { if [ -z "$nproc" ]; then set +e if [ "$OS" = 'Linux' ]; then nproc=$(grep -cw -E '^processor' /proc/cpuinfo 2>/dev/null || :) elif [ "$OS" = 'Darwin' -o "$OS" = 'FreeBSD' ]; then nproc=$(sysctl -n hw.ncpu) fi set -e if [ -z "$nproc" ] || [ $nproc -eq 0 ]; then nproc=1 fi fi } check_server_ssl_config() { # backward-compatible behavior: tcert=$(parse_cnf 'sst' 'tca') tcap=$(parse_cnf 'sst' 'tcapath') tpem=$(parse_cnf 'sst' 'tcert') tkey=$(parse_cnf 'sst' 'tkey') # reading new ssl configuration options: local tcert2=$(parse_cnf "$encgroups" 'ssl-ca') local tcap2=$(parse_cnf "$encgroups" 'ssl-capath') local tpem2=$(parse_cnf "$encgroups" 'ssl-cert') local tkey2=$(parse_cnf "$encgroups" 'ssl-key') # if there are no old options, then we take new ones: if [ -z "$tcert" -a -z "$tcap" -a -z "$tpem" -a -z "$tkey" ]; then tcert="$tcert2" tcap="$tcap2" tpem="$tpem2" tkey="$tkey2" # checking for presence of the new-style SSL configuration: elif [ -n "$tcert2" -o -n "$tcap2" -o -n "$tpem2" -o -n "$tkey2" ]; then if [ "$tcert" != "$tcert2" -o \ "$tcap" != "$tcap2" -o \ "$tpem" != "$tpem2" -o \ "$tkey" != "$tkey2" ] then wsrep_log_info \ "new ssl configuration options (ssl-ca[path], ssl-cert" \ "and ssl-key) are ignored by SST due to presence" \ "of the tca[path], tcert and/or tkey in the [sst] section" fi fi # Role-specific overrides: the joiner is the TLS server (listener), # the donor the TLS client (connector). Allow a distinct cert, key # and CA per role for setups where they differ. if [ "$WSREP_SST_OPT_ROLE" = 'joiner' ]; then tcert=$(parse_cnf "$encgroups" 'ssl-server-ca' "$tcert") tcap=$(parse_cnf "$encgroups" 'ssl-server-capath' "$tcap") tpem=$(parse_cnf "$encgroups" 'ssl-server-cert' "$tpem") tkey=$(parse_cnf "$encgroups" 'ssl-server-key' "$tkey") else tcert=$(parse_cnf "$encgroups" 'ssl-client-ca' "$tcert") tcap=$(parse_cnf "$encgroups" 'ssl-client-capath' "$tcap") tpem=$(parse_cnf "$encgroups" 'ssl-client-cert' "$tpem") tkey=$(parse_cnf "$encgroups" 'ssl-client-key' "$tkey") fi if [ -n "$tcert" ]; then if [ "${tcert%/}" != "$tcert" -o -d "$tcert" ]; then tcap="$tcert" tcert="" fi fi } # Get Common Name (CN) from the certificate: openssl_getCN() { get_openssl if [ -z "$OPENSSL_BINARY" ]; then wsrep_log_error \ 'openssl not found but it is required for authentication' exit 42 fi local bug=0 local CN=$("$OPENSSL_BINARY" x509 -noout -subject -in "$1" 2>&1) || bug=1 if [ $bug -ne 0 ]; then wsrep_log_info "run: \"$OPENSSL_BINARY\" x509 -noout -subject -in \"$1\"" wsrep_log_info "output: $CN" wsrep_log_error "******** FATAL ERROR **********************************************" wsrep_log_error "* Unable to parse the certificate file to obtain the common name. *" wsrep_log_error "*******************************************************************" exit 22 fi CN=$(trim_string "$CN") if [ -n "$CN" ]; then # If the string begins with the "subject" prefix # then we need to remove it: local saved="$CN" local remain="${CN#subject}" if [ "$remain" != "$saved" ]; then remain=$(trim_left "$remain") # Now let's check for the presence of "=" character # after the "subject": saved="$remain" remain="${remain#=}" if [ "$remain" != "$saved" ]; then remain=$(trim_left "$remain") else remain="" bug=1 fi fi while [ -n "$remain" ]; do local value="" # Let's extract the option name - all characters # up to the first '=' or ',' character (if present): local option="${remain%%[=,]*}" if [ "$option" != "$remain" ]; then option=$(trim_right "$option") # These variables will be needed to determine # which separator comes first: local x="${remain#*=}" local y="${remain#*,}" local z=${#remain} x=${#x}; [ $x -eq $z ] && x=0 y=${#y}; [ $y -eq $z ] && y=0 # The remaining string is everything that follows # the separator character: remain=$(trim_left "${remain#*[=,]}") # Let's check what we are dealing with - an equal # sign or a comma? if [ $x -gt $y ]; then # If the remainder begins with a double quote, # then there is a string containing commas and # we need to parse it: saved="$remain" remain="${remain#\"}" if [ "$remain" != "$saved" ]; then while :; do # We need to find the closing quote: local prefix="$remain" remain="${remain#*\"}" # Let's check if there is a closing quote? if [ "$remain" = "$prefix" ]; then bug=1 break fi # Everything up to the closing quote is # the next part of the value: value="$value${prefix%%\"*}" # But if the last character of the value # is a backslash, then it is a quoted quotation # mark and we need to add it to the value: if [ "${value%\\}" != "$value" ]; then value="$value\"" else break fi done [ $bug -ne 0 ] && break # Now we have to remove "," if it is present # in the string after the value: saved=$(trim_left "$remain") remain="${saved#,}" if [ "$remain" != "$saved" ]; then remain=$(trim_left "$remain") elif [ -n "$remain" ]; then bug=1 break fi else # We are dealing with a simple unquoted string value, # therefore we need to take everything up to the end # of the string, or up to the next comma character: value="${remain%%,*}" if [ "$value" != "$remain" ]; then remain=$(trim_left "${remain#*,}") else remain="" fi value=$(trim_right "$value") fi if [ "$option" = 'CN' -a -n "$value" ]; then echo "$value" return fi fi else remain="" fi done fi if [ $bug -ne 0 ]; then wsrep_log_error "******** FATAL ERROR **********************************************" wsrep_log_error "* Unable to parse the certificate options: '$CN'" wsrep_log_error "*******************************************************************" exit 22 fi echo '' } simple_cleanup() { # Since this is invoked just after exit NNN local estatus=$? if [ $estatus -ne 0 ]; then wsrep_log_error "Cleanup after exit with status: $estatus" fi if [ -n "$SST_PID" ]; then [ "$(pwd)" != "$OLD_PWD" ] && cd "$OLD_PWD" [ -f "$SST_PID" ] && rm -f "$SST_PID" || : fi exit $estatus } create_data() { OLD_PWD="$(pwd)" DATA_DIR="$OLD_PWD" if [ -n "$DATA" -a "$DATA" != '.' ]; then [ ! -d "$DATA" ] && mkdir -p "$DATA" cd "$DATA" DATA_DIR="$(pwd)" cd "$OLD_PWD" fi } create_dirs() { local simplify=${1:-0} # if no command line argument and INNODB_DATA_HOME_DIR environment # variable is not set, try to get it from the my.cnf: if [ -z "$INNODB_DATA_HOME_DIR" ]; then INNODB_DATA_HOME_DIR=$(parse_cnf '--mysqld' 'innodb-data-home-dir') INNODB_DATA_HOME_DIR=$(trim_dir "$INNODB_DATA_HOME_DIR") fi if [ -n "$INNODB_DATA_HOME_DIR" -a "$INNODB_DATA_HOME_DIR" != '.' -a \ "$INNODB_DATA_HOME_DIR" != "$DATA_DIR" ] then # handle both relative and absolute paths: cd "$DATA" [ ! -d "$INNODB_DATA_HOME_DIR" ] && mkdir -p "$INNODB_DATA_HOME_DIR" cd "$INNODB_DATA_HOME_DIR" ib_home_dir="$(pwd)" cd "$OLD_PWD" [ $simplify -ne 0 -a "$ib_home_dir" = "$DATA_DIR" ] && ib_home_dir="" fi # if no command line argument and INNODB_LOG_GROUP_HOME is not set, # then try to get it from the my.cnf: if [ -z "$INNODB_LOG_GROUP_HOME" ]; then INNODB_LOG_GROUP_HOME=$(parse_cnf '--mysqld' 'innodb-log-group-home-dir') INNODB_LOG_GROUP_HOME=$(trim_dir "$INNODB_LOG_GROUP_HOME") fi if [ -n "$INNODB_LOG_GROUP_HOME" -a "$INNODB_LOG_GROUP_HOME" != '.' -a \ "$INNODB_LOG_GROUP_HOME" != "$DATA_DIR" ] then # handle both relative and absolute paths: cd "$DATA" [ ! -d "$INNODB_LOG_GROUP_HOME" ] && mkdir -p "$INNODB_LOG_GROUP_HOME" cd "$INNODB_LOG_GROUP_HOME" ib_log_dir="$(pwd)" cd "$OLD_PWD" [ $simplify -ne 0 -a "$ib_log_dir" = "$DATA_DIR" ] && ib_log_dir="" fi # if no command line argument and INNODB_UNDO_DIR is not set, # then try to get it from the my.cnf: if [ -z "$INNODB_UNDO_DIR" ]; then INNODB_UNDO_DIR=$(parse_cnf '--mysqld' 'innodb-undo-directory') INNODB_UNDO_DIR=$(trim_dir "$INNODB_UNDO_DIR") fi if [ -n "$INNODB_UNDO_DIR" -a "$INNODB_UNDO_DIR" != '.' -a \ "$INNODB_UNDO_DIR" != "$DATA_DIR" ] then # handle both relative and absolute paths: cd "$DATA" [ ! -d "$INNODB_UNDO_DIR" ] && mkdir -p "$INNODB_UNDO_DIR" cd "$INNODB_UNDO_DIR" ib_undo_dir="$(pwd)" cd "$OLD_PWD" [ $simplify -ne 0 -a "$ib_undo_dir" = "$DATA_DIR" ] && ib_undo_dir="" fi # if no command line argument then try to get it from the my.cnf: if [ -z "$ARIA_LOG_DIR" ]; then ARIA_LOG_DIR=$(parse_cnf '--mysqld' 'aria-log-dir-path') ARIA_LOG_DIR=$(trim_dir "$ARIA_LOG_DIR") fi if [ -n "$ARIA_LOG_DIR" -a "$ARIA_LOG_DIR" != '.' -a \ "$ARIA_LOG_DIR" != "$DATA_DIR" ] then # handle both relative and absolute paths: cd "$DATA" [ ! -d "$ARIA_LOG_DIR" ] && mkdir -p "$ARIA_LOG_DIR" cd "$ARIA_LOG_DIR" ar_log_dir="$(pwd)" cd "$OLD_PWD" [ $simplify -ne 0 -a "$ar_log_dir" = "$DATA_DIR" ] && ar_log_dir="" fi return 0 } wait_previous_sst() { # give some time for previous SST to complete: check_round=0 while check_pid "$SST_PID" 1; do wsrep_log_info "Previous SST is not completed, waiting for it to exit" check_round=$(( check_round+1 )) if [ $check_round -eq 30 ]; then wsrep_log_error "previous SST script still running..." exit 114 # EALREADY fi sleep 1 done trap simple_cleanup EXIT echo $$ > "$SST_PID" } DATA="$WSREP_SST_OPT_DATA" wsrep_check_datadir create_data SST_PID="$DATA/wsrep_sst.pid" if [ -n "${MTR_SST_JOINER_DELAY:-}" ]; then MTR_SST_JOINER_DELAY=$(trim_string "$MTR_SST_JOINER_DELAY") fi simulate_long_sst() { # Delay for MTR tests if needed to simulate long SST/IST: if [ ${MTR_SST_JOINER_DELAY:-0} -gt 0 ]; then wsrep_log_info "Sleeping $MTR_SST_JOINER_DELAY seconds for MTR test" sleep $MTR_SST_JOINER_DELAY fi } wsrep_log_info "$WSREP_METHOD $WSREP_TRANSFER_TYPE started on $WSREP_SST_OPT_ROLE"
Save
cmd:
run