mirror of
https://github.com/MariaDB/server.git
synced 2025-07-28 23:27:19 +00:00
Merge 10.8 into 10.9
This commit is contained in:
5
debian/mariadb-server.mariadb.init
vendored
5
debian/mariadb-server.mariadb.init
vendored
@ -84,7 +84,10 @@ sanity_checks() {
|
||||
|
||||
# check for diskspace shortage
|
||||
datadir=`mariadbd_get_param datadir`
|
||||
if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4>4096) }'; then
|
||||
# As preset blocksize of GNU df is 1024 then available bytes is $df_available_blocks * 1024
|
||||
# 4096 blocks is then lower than 4 MB
|
||||
df_available_blocks=`LC_ALL=C BLOCKSIZE= df --output=avail "$datadir" | tail -n 1`
|
||||
if [ "$df_available_blocks" -lt "4096" ]; then
|
||||
log_failure_msg "$0: ERROR: The partition with $datadir is too full!"
|
||||
echo "ERROR: The partition with $datadir is too full!" | $ERR_LOGGER
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user