Skip to content
Snippets Groups Projects
Commit eb32a4cf authored by Anders Blomdell's avatar Anders Blomdell
Browse files

More XFS madness fixes

parent 5e7b2d54
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,9 @@ class Backup:
stat = os.statvfs(self.dst_root)
free = stat.f_frsize * stat.f_bavail
need = size + stat.f_frsize
if stat.f_bavail == stat.f_bfree:
# Probably on xfs, make sure we alway have 1 MB extra
need += 1024*1024
if path:
need += stat.f_frsize * len(path.split('/'))
return (free, need)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment