util-linux/disk-utils
Karel Zak ca4f6229b0 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>
2012-12-19 12:40:32 +01:00
..
Makemodule.am lib/ismounted: basic support for loop devices 2012-12-19 12:40:32 +01:00
addpart.8 build-sys: move partx to disk-utils/ 2012-06-26 20:50:18 +02:00
addpart.c translation: unify file open error messages 2012-07-16 18:18:22 +02:00
blockdev.8 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
blockdev.c fix buffer overrun in some calls to sscanf 2012-07-09 22:26:27 +02:00
cramfs.h cramfs.h: coding style 2011-07-21 23:50:04 +02:00
cramfs_common.c mkfs.cramfs: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:57:30 +02:00
delpart.8 build-sys: move partx to disk-utils/ 2012-06-26 20:50:18 +02:00
delpart.c translation: unify file open error messages 2012-07-16 18:18:22 +02:00
elvtune.8 docs: tweak the formatting and wording of several disk-utils man pages 2011-08-29 11:24:47 +02:00
elvtune.c disk-utils: verify writing to streams was successful 2012-04-04 20:04:39 +02:00
fdformat.8 docs: tweak the formatting and wording of several disk-utils man pages 2011-08-29 11:24:47 +02:00
fdformat.c translation: unify file open error messages 2012-07-16 18:18:22 +02:00
fsck.8 fix bold style of man page references 2012-10-09 12:12:48 +02:00
fsck.c fsck: use less aggressive method to detect mounted devices 2012-08-24 19:20:33 +02:00
fsck.cramfs.c fsck.cramfs: fix compiler warning [-Wpointer-arith] 2012-09-04 16:49:28 +02:00
fsck.minix.8 docs: add missing exit value to fsck.minix(8) 2012-12-19 11:39:00 +01:00
fsck.minix.c minix: replace magic constants with macro names 2012-12-19 11:38:56 +01:00
isosize.8 docs: tweak the formatting and wording of several disk-utils man pages 2011-08-29 11:24:47 +02:00
isosize.c isosize: inform if file does not look like iso file system 2012-12-19 11:05:04 +01:00
minix_programs.h minix: change types in header file 2012-12-19 11:38:51 +01:00
mkfs.8 docs: tweak the formatting and wording of several disk-utils man pages 2011-08-29 11:24:47 +02:00
mkfs.bfs.8 docs: tweak the formatting and wording of several disk-utils man pages 2011-08-29 11:24:47 +02:00
mkfs.bfs.c translation: unify stat error messages 2012-07-16 18:18:22 +02:00
mkfs.c disk-utils: verify writing to streams was successful 2012-04-04 20:04:39 +02:00
mkfs.cramfs.c translation: unify file open error messages 2012-07-16 18:18:22 +02:00
mkfs.minix.8 docs: tweak the formatting and wording of several disk-utils man pages 2011-08-29 11:24:47 +02:00
mkfs.minix.c minix: replace magic constants with macro names 2012-12-19 11:38:56 +01:00
mkswap.8 mkswap: wipe old signature if there is no part table by default 2012-09-21 12:43:33 +02:00
mkswap.c mkswap: wipe old signature if there is no part table by default 2012-09-21 12:43:33 +02:00
partx.8 partx: add update command 2012-12-19 10:48:12 +01:00
partx.c partx: add update command 2012-12-19 10:48:12 +01:00
partx.h resizepart: add new command 2012-08-13 22:10:14 +02:00
raw.8 docs: tweak the formatting and wording of several disk-utils man pages 2011-08-29 11:24:47 +02:00
raw.c raw: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:45:52 +02:00
resizepart.8 resizepart: add new command 2012-08-13 22:10:14 +02:00
resizepart.c resizepart: remove debug message 2012-08-14 08:33:39 +02:00
swaplabel.8 blkid: document LIBBLKID_DEBUG users 2012-09-04 17:21:54 +02:00
swaplabel.c translation: unify file open error messages 2012-07-16 18:18:22 +02:00