~nobuto/charms/trusty/ceph/workaround-multinics

« back to all changes in this revision

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

  • Committer: Liam Young
  • Date: 2014-07-25 07:21:41 UTC
  • mfrom: (75.1.4 ceph)
  • Revision ID: liam.young@canonical.com-20140725072141-pn1cfq057qq9102j
[jamespage. r=gnuoy] Use charm-helper for pkg version comparisons

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.