unmount at the end of take_filesystem_ownership
often fails because device is busy
#1102
Milestone
take_filesystem_ownership
often fails because device is busy
#1102
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: