~openstack-charmers-archive/charms/trusty/lxd/next

« back to all changes in this revision

Viewing changes to hooks/lxd_utils.py

  • Committer: James Page
  • Date: 2016-02-25 16:39:10 UTC
  • mfrom: (50.4.3 lxd-btrfs)
  • Revision ID: james.page@ubuntu.com-20160225163910-6nz4fzp1mseuko49
Enable btrfs quota on /var/lib/lxd

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
              options='user_subvol_rm_allowed',
187
187
              persist=True,
188
188
              filesystem='btrfs')
 
189
        cmd = ['btrfs', 'quota', 'enable', '/var/lib/lxd']
 
190
        check_call(cmd)
189
191
        service_start('lxd')
190
192
    elif config('storage-type') == 'lvm':
191
193
        if (is_lvm_physical_volume(dev) and