diff options
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portable.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c index 256362355c..0f6c71042e 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -333,7 +333,7 @@ static int portable_extract_by_path( assert(path); - r = loop_device_make_by_path(path, O_RDONLY, LO_FLAGS_PARTSCAN, &d); + r = loop_device_make_by_path(path, O_RDONLY, LO_FLAGS_PARTSCAN, LOCK_SH, &d); if (r == -EISDIR) { _cleanup_free_ char *image_name = NULL; @@ -359,10 +359,6 @@ static int portable_extract_by_path( /* We now have a loopback block device, let's fork off a child in its own mount namespace, mount it * there, and extract the metadata we need. The metadata is sent from the child back to us. */ - r = loop_device_flock(d, LOCK_SH); - if (r < 0) - return log_debug_errno(r, "Failed to acquire lock on loopback block device: %m"); - BLOCK_SIGNALS(SIGCHLD); r = mkdtemp_malloc("/tmp/inspect-XXXXXX", &tmpdir); |