~gnuoy/charms/trusty/nova-compute/resurrect-peer-relation

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/storage/linux/utils.py

  • Committer: james.page at ubuntu
  • Date: 2014-07-28 11:36:16 UTC
  • mfrom: (68.1.3 nova-compute)
  • Revision ID: james.page@ubuntu.com-20140728113616-spl81505m0q840sy
[corey.bryant,r=james-page] Add amulet tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    check_call(['dd', 'if=/dev/zero', 'of=%s' % (block_device),
38
38
                'bs=512', 'count=100', 'seek=%s' % (gpt_end)])
39
39
 
 
40
 
40
41
def is_device_mounted(device):
41
42
    '''Given a device path, return True if that device is mounted, and False
42
43
    if it isn't.