]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: Add tests for character devices
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 7 Jun 2017 08:20:44 +0000 (10:20 +0200)
committerEryu Guan <eguan@redhat.com>
Thu, 8 Jun 2017 02:53:27 +0000 (10:53 +0800)
commitd4c9003b529458f626c3430a668dd86cd647e967
tree928bcf793cc573c6ff298a662debe76f2c10e037
parentff1f614f3373d83c9e5ec33bb45853e73560f2f8
common/rc: Add tests for character devices

Implement _is_char_dev similar to _is_block_dev to test for
character devices.

Add a _require_local_device test. This test is similar to
_require_block_device but checks if the path refers to a
block or a character device.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc