Skip to content
Commit 071f8162 authored by Chris Coulson's avatar Chris Coulson Committed by Jens Granseuer
Browse files

Low disk space warning bug-fixes

Cast buf.f_frsize and buf.f_bavail to gint64 before multiplying
them to calculate the absolute free disk space. This prevents an
overflow on 32-bit platforms.

If the device path for a GUnixMountEntry does not begin with /dev,
don't assume the mount is virtual and then ignore it. In some cases,
this can cause a real mount to be ignored (eg, the device path
can be rootfs for the root filesystem). Ignore a pre-determined
list of FS types instead, for filtering out virtual devices.

Also don't display a warning if there is greater than 2GB of free
space remaining. This fixes a regression from the old low disk
space warning. Fixes bug #591153.
parent 031804f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment