79
79
# Add the primary mount last for squid. This allocates it last
80
80
# and saves additional space for metadata mirrors
81
81
squid_cache = '/'.join((primary_mount, 'squid'))
82
_mkdir(os.path.dirname(squid_cache), owner='proxy', group='proxy',
84
82
_mkdir(squid_cache, owner='proxy', group='proxy', perms=0o770)
85
83
max_size = _disk_free(squid_cache)
86
84
# Reserve 8GB for metadata and 4GB for the OS