Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hash_backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
hash_backup
Commits
eb32a4cf
Commit
eb32a4cf
authored
3 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
More XFS madness fixes
parent
5e7b2d54
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
secondary.py
+3
-0
3 additions, 0 deletions
secondary.py
with
3 additions
and
0 deletions
secondary.py
+
3
−
0
View file @
eb32a4cf
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment