summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab.c
diff options
context:
space:
mode:
authorAndreas Henriksson2014-09-19 01:36:33 +0200
committerKarel Zak2014-09-22 12:54:07 +0200
commite624bc558b9148b004c7908f12fad35038e3f5af (patch)
treeed1a711b4929fbb2da2adfa3a800e43398e8e2a6 /libmount/src/tab.c
parentumount: read mountinfo if --detach-loop given (diff)
downloadkernel-qcow2-util-linux-e624bc558b9148b004c7908f12fad35038e3f5af.tar.gz
kernel-qcow2-util-linux-e624bc558b9148b004c7908f12fad35038e3f5af.tar.xz
kernel-qcow2-util-linux-e624bc558b9148b004c7908f12fad35038e3f5af.zip
libmount: only invoke loopcxt on linux
This is part of an attempt to make libmount buildable on non-linux. The support for /dev/loop* is Linux-specific so just disable it on non-linux for now. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Diffstat (limited to 'libmount/src/tab.c')
-rw-r--r--libmount/src/tab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/tab.c b/libmount/src/tab.c
index 4094fb878..011ba5429 100644
--- a/libmount/src/tab.c
+++ b/libmount/src/tab.c
@@ -1439,8 +1439,10 @@ int mnt_table_is_fs_mounted(struct libmnt_table *tb, struct libmnt_fs *fstab_fs)
} else
flags = LOOPDEV_FL_OFFSET;
+#if __linux__
if (loopdev_is_used(mnt_fs_get_srcpath(fs), src, offset, flags))
break;
+#endif
}
if (root) {