Hi,
I cannot reproduce the problem described, using revno 368 I get the following:
$ python Python 2.7.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from charmhelpers.contrib.storage.linux.utils import * >>> is_device_mounted(device='/dev/sda1') True >>> is_device_mounted(device='/dev/sda') True >>> is_device_mounted(device='/dev/sdf') False >>> is_device_mounted(device='/dev/sdf1') False >>> $ bzr revno 368 $ mount|grep sda /dev/sda6 on / type btrfs (rw,relatime,ssd,space_cache) /dev/sda1 on /boot type ext4 (rw,relatime,data=ordered) /dev/sda6 on /home type btrfs (rw,relatime,ssd,space_cache) $ mount|grep sdf # empty output
I'm setting this bug as 'incomplete', but please if you're still getting this error feel free to reopen it.
Best,
Hi,
I cannot reproduce the problem described, using revno 368 I get the following:
$ python contrib. storage. linux.utils import * mounted( device= '/dev/sda1' ) mounted( device= '/dev/sda' ) mounted( device= '/dev/sdf' ) mounted( device= '/dev/sdf1' ) ssd,space_ cache) data=ordered) ssd,space_ cache)
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from charmhelpers.
>>> is_device_
True
>>> is_device_
True
>>> is_device_
False
>>> is_device_
False
>>>
$ bzr revno
368
$ mount|grep sda
/dev/sda6 on / type btrfs (rw,relatime,
/dev/sda1 on /boot type ext4 (rw,relatime,
/dev/sda6 on /home type btrfs (rw,relatime,
$ mount|grep sdf
# empty output
I'm setting this bug as 'incomplete', but please if you're still getting this error feel free to reopen it.
Best,