Merge "Added an extra parameter to the df command"

This commit is contained in:
Jenkins
2014-07-08 23:35:21 +00:00
committed by Gerrit Code Review

View File

@@ -356,7 +356,7 @@ class Store(glance.store.base.Store):
"""
#Calculate total available space
df = processutils.execute("df", "-k",
df = processutils.execute("df", "-k", "-P",
mount_point)[0].strip("'\n'")
total_available_space = int(df.split('\n')[1].split()[3]) * units.Ki