-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unmount at the end of take_filesystem_ownership
often fails because device is busy
#1102
Comments
So I tweaked the test to manually unmount the partitions if this happens. However, we're still seeing it fail sometimes during another part of the test which tests resizing partitions, and I think it's actually for the same reason. The test gets stuck at this screen for much longer than expected, and times out: looking at the logs, right around the time it gets stuck, are the same kinds of message, right after a message that looks related to the resize operation:
so I think we hit this same "failed unmount of temporary mount" problem as part of the resize workflow, and it results in the UI getting stuck as it's waiting for the unmount to happen, or something along those lines. |
I suppose this is gvfs automounting kicking in. Looking at Mounting any filesystem for the sole purpose of resizing, getting filesystem size or taking ownership and unmounting it afterwards has always been source of problems since there's typically something else that registers a new mount and trying to sniff or index it (e.g. the tracker indexing service?). I think we had an idea to make use of a private mount namespace for such temporary things but no work has actually been done on that part. |
In Fedora, we have recently added an openQA test intended to test the GNOME Disks application. It's backed by a 1.1GB disk image file,
/root/disk.img
, which we loopback mount withlosetup -P -f --show /root/disk.img
to provide a handy "disk" for testing.One of the tests involves formatting the disk, creating three new partitions, then mounting them. However, this test is quite often failing because when the test comes to mount one of the new partitions, it is already mounted at
/run/udisks2/temp-mount-(RANDOMSTRING)
. In the system journal, we see these messages:looking at the udisks2 source, it looks to me like we're in
take_filesystem_ownership
insrc/udiskslinuxfilesystemhelpers.c
, here. It seems to me like, maybe, that is not actually waiting for therecursive_chown
operation to be fully committed to the filesystem before attempting to unmount it, or something?I can tweak the test to try and workaround this by manually unmounting each partition after creating it if it still seems to be mounted, but it seems a bit ugly.
The text was updated successfully, but these errors were encountered: