Whamcloud - gitweb
EX-3041 lipe: include reserved space into disk usage
authorLei Feng <flei@whamcloud.com>
Tue, 20 Apr 2021 00:08:59 +0000 (08:08 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 22 Jul 2021 17:38:35 +0000 (17:38 +0000)
commit3db0abfbc4658d23b019d9e3ea9df56ef9dadfec
treea925cdd4b9473d284f39b7ec590a189062c7ffb1
parent59251e5c63c081346a752541c8b5366dc252b784
EX-3041 lipe: include reserved space into disk usage

Typically ext4 fs reserves 5% disk space for root. It's
calculated as used space when df command shows the Use%.
So we calculate the usage in lpcc_purge in the same way
to be consistent with df.

Change-Id: I1cdee6ea66ad27bf7501cecb4a4a9495e09647a6
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial
Reviewed-on: https://review.whamcloud.com/43376
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/src/lpcc_purge.c