~brad-marshall/charms/trusty/nova-compute/add-nrpe-checks

« back to all changes in this revision

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

  • Committer: Corey Bryant
  • Date: 2014-07-11 02:24:52 UTC
  • mto: This revision was merged to the branch mainline in revision 70.
  • Revision ID: corey.bryant@canonical.com-20140711022452-72xfia0gz5klgugi
Sync with charm-helpers

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.