-
Notifications
You must be signed in to change notification settings - Fork 142
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
There is a problem with btrfs partition unmount #962
Comments
There are many issues currently when it comes to multidisk btrfs volumes. There are some related changes in #838 but that work isn't finished at the moment. |
The #838 project should take a bit more time to complete, until then, the #976 code commit can be considered in order for btrfs to be uninstalled properly, provided of course that it does not introduce other problems. In particular, the benefits of introducing this solution in the current maintenance release should be even greater.Thanks! |
Hmm, looking at your pull request #976 and reading the story here, I don't think that introducing a big The If I understand your issue properly, you're facing exactly what #838 is supposed to solve. The |
I modified the code of #976: Thanks! |
The U disk is formatted into multiple btrfs file system partitions. When the U disk is directly pulled out, only one btrfs file system partition can be unmounted.
The reason for this problem is:
When the U disk is pulled out, udisks_state_check_mounted_fs_entry() will unmount the first btrfs partition first. Then mounts_changed_event() is triggered. Causes the udisks_state_check_mounted_fs_entry function to be called and UDisksMountMonitor *monitor to be updated. The remaining btrfs partitions will enter the udisks_mount_monitor_parse_mountinfo() function when unmounted, namely:
Since the U disk has been pulled out, "stat (mount_source, &statbuf)" cannot obtain the device file information, so an exception occurs.
The text was updated successfully, but these errors were encountered: