]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/ismounted: basic support for loop devices
authorKarel Zak <kzak@redhat.com>
Wed, 19 Dec 2012 11:40:32 +0000 (12:40 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 19 Dec 2012 11:40:32 +0000 (12:40 +0100)
commitca4f6229b0bc14c9c3aea3a20cd37bd0f3de0310
tree4f3d742f95c581208f64ed118c51d3cbb4ad63dd
parent06f588f7d108d9ba2ae86b037c244acf18d00d32
lib/ismounted: basic support for loop devices

 # losetup -a /dev/loop0
 /dev/loop0: [2053]:1048578 (/home/fs-images/filesystems/ext2.img)

 # findmnt /dev/loop0
 TARGET    SOURCE     FSTYPE OPTIONS
 /mnt/test /dev/loop0 ext3   rw,relatime,data=ordered

old version:

 ./test_ismounted /home/fs-images/filesystems/ext2.img
 not mounted

new version:

 ./test_ismounted /home/fs-images/filesystems/ext2.img
 mounted on /mnt/test

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/Makemodule.am
lib/Makemodule.am
lib/ismounted.c