Mailinglist Archive: opensuse-bugs (4243 mails)

< Previous Next >
[Bug 1012504] Under "Repository Management", when adding a local ISO image, making any change prior to exiting YaST produces an error
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 02 Jan 2017 19:55:26 +0000
  • Message-id: <bug-1012504-21960-nkjChMSUH3@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1012504
http://bugzilla.suse.com/show_bug.cgi?id=1012504#c9

Stanislav Brabec <sbrabec@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CONFIRMED
Assignee|zypp-maintainers@xxxxxxxxxx |sbrabec@xxxxxxxx
|o.novell.com |
Flags|needinfo?(kernel-maintainer |
|s@xxxxxxxxxxxxxxxxxxxxxx) |

--- Comment #9 from Stanislav Brabec <sbrabec@xxxxxxxx> ---
I just debugged the issue.

On the first sight it indeed looks like the issue mentioned in the comment 7.
But when checking deeper, it is a different issue. It is a problem of
util-linux mount.

Here is a simple reproducer:

#!/bin/sh
mkdir -p cdrom
mkisofs -o cdrom.iso cdrom/ 2>/dev/null
losetup /dev/loop0 cdrom.iso
strace mount -t auto -o ro,loop=/dev/loop1 cdrom.iso /mnt 2>&1 | grep ^mount
cat /proc/self/mountinfo | grep /mnt
umount /mnt
losetup -d /dev/loop0


mount("/dev/loop0", "/mnt", "iso9660", MS_MGC_VAL|MS_RDONLY, NULL) = 0
333 60 7:0 / /mnt ro,relatime shared:241 - iso9660 /dev/loop0 ro
losetup: /dev/loop0: detach failed: No such device or address

=> You called
mount -t auto -o ro,loop=/dev/loop1 cdrom.iso /mnt
^
but mount(8) called:
mount("/dev/loop0", "/mnt", "iso9660", MS_MGC_VAL|MS_RDONLY, NULL) = 0
^

It looks like a regression introduced by a patch set
util-linux-loop-reuse-*.patch: The reuse code must not be activated for
-oloop=/dev/loop1.


Note: I failed to reproduce the kernel corruption with iso9660. It's
reproduction vector probably depends on btrfs.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >