From c70d9d768bbe291ad29f29200340d1f4d8bbf30f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 2 Jan 2012 15:00:27 +0100 Subject: libmount: consolidate MNT_FS_* code Signed-off-by: Karel Zak --- libmount/src/context_loopdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libmount/src/context_loopdev.c') diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c index 561ab397d..6221166ff 100644 --- a/libmount/src/context_loopdev.c +++ b/libmount/src/context_loopdev.c @@ -20,7 +20,6 @@ int mnt_context_is_loopdev(struct libmnt_context *cxt) { const char *type, *src; - int fl; assert(cxt); /* The mount flags have to be merged, otherwise we have to use @@ -50,9 +49,8 @@ int mnt_context_is_loopdev(struct libmnt_context *cxt) * regular files could be implemented. */ type = mnt_fs_get_fstype(cxt->fs); - fl = __mnt_fs_get_flags(cxt->fs); - if (!(fl & (MNT_FS_PSEUDO | MNT_FS_NET | MNT_FS_SWAP)) && + if (mnt_fs_is_regular(cxt->fs) && (!type || strcmp(type, "auto") == 0 || blkid_known_fstype(type))) { struct stat st; -- cgit v1.2.3-55-g7522