Skip to content

umount: Resolve btrfs subvolume mountpoints#1521

Open
wyu71 wants to merge 1 commit into
storaged-project:masterfrom
wyu71:fix/btrfs-subvol-umount
Open

umount: Resolve btrfs subvolume mountpoints#1521
wyu71 wants to merge 1 commit into
storaged-project:masterfrom
wyu71:fix/btrfs-subvol-umount

Conversation

@wyu71

@wyu71 wyu71 commented Jun 3, 2026

Copy link
Copy Markdown

When umount.udisks2 is invoked for a btrfs subvolume mountpoint, stat() may return the anonymous btrfs device number instead of the backing block device. This makes the helper fail to find the matching UDisks object.

Look up the btrfs mount source from /proc/self/mountinfo before falling back to the mountpoint device number.

Fixes #1495

When umount.udisks2 is invoked for a btrfs subvolume mountpoint,
stat() may return the anonymous btrfs device number instead of the
backing block device. This makes the helper fail to find the matching
UDisks object.

Look up the btrfs mount source from /proc/self/mountinfo before falling
back to the mountpoint device number.

Fixes storaged-project#1495
@wyu71

wyu71 commented Jun 3, 2026

Copy link
Copy Markdown
Author

Testing Farm failure is unrelated to this change.

The failure is in EXFATTestCase.test_* tests:

No such interface 'org.freedesktop.UDisks2.Filesystem' on object at /org/freedesktop/UDisks2/block_devices/sdd

This PR only touches the umount.udisks2 helper and does not affect filesystem interface detection. The issue appears to be a test environment problem with exFAT support on the /dev/sdd device.

Could you re-run the Testing Farm check?

@vojtechtrefny

Copy link
Copy Markdown
Member

Testing Farm failure is unrelated to this change.

The failure is in EXFATTestCase.test_* tests:

That's caused by some changes in the latest exfatprogs, I am already working on fixing this (storaged-project/libblockdev#1199), you can ignore these failures.

@vojtechtrefny

Copy link
Copy Markdown
Member

/packit test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

udisk fail to umount btrfs partion if default btrfs subvol is not "root"

2 participants