diff options
Diffstat (limited to 'libmount/src/context_loopdev.c')
-rw-r--r-- | libmount/src/context_loopdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c index 369f81dc0..576b7f55a 100644 --- a/libmount/src/context_loopdev.c +++ b/libmount/src/context_loopdev.c @@ -40,7 +40,8 @@ int mnt_context_is_loopdev(struct libmnt_context *cxt) return 1; } - if (cxt->mountflags & (MS_BIND | MS_MOVE | MS_PROPAGATION)) + if ((cxt->mountflags & (MS_BIND | MS_MOVE)) + || mnt_context_propagation_only(cxt)) return 0; /* Automatically create a loop device from a regular file if a |