diff options
author | Karel Zak | 2012-01-02 15:00:27 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-02 15:00:27 +0100 |
commit | c70d9d768bbe291ad29f29200340d1f4d8bbf30f (patch) | |
tree | 0878a5b06223146a9bbe6a48109cf348df75218d /libmount/src/context_loopdev.c | |
parent | mount: don't canonicalize the source of a pseudofs (diff) | |
download | kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.tar.gz kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.tar.xz kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.zip |
libmount: consolidate MNT_FS_* code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_loopdev.c')
-rw-r--r-- | libmount/src/context_loopdev.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |