~tribaal/charm-helpers/stable-device-mounted-accepts-partitions

Viewing all changes in revision 158.

  • Committer: Christopher Glass
  • Date: 2014-08-13 09:42:14 UTC
  • Revision ID: christopher.glass@canonical.com-20140813094214-xrjslvvy3j2xohnm
Make the is_device_mounted() helper accept partitions as well as devices.
This allows for calling code not to care about wether the device is a partition or a root device:
is_device_mounted("/dev/sda") is valid, and now is_device_mounted("/dev/sda1") is valid as well and should return sensible values.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: