http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c7
--- Comment #7 from Stanislav Brabec ---
I found the root of the problem:
sys-utils/fstrim.c: uniq_fs_source_cmp() contains this code:
const char *aroot = mnt_fs_get_root(a),
*broot = mnt_fs_get_root(b);
if (!aroot || !broot)
eq = 0;
else if (strcmp(aroot, broot) != 0)
eq = 0;
In case of btrfs, it may look?
mnt_fs_streq_srcpath() founds a match.
mnt_fs_get_root() returns:
aroot = /usr/local
broot = /var/crash
These strings don't match => return "not match"
Whole this function was added to de-duplicate bind mounts. There it makes
sense:
for gvfsd-fuse and gvfsd-fuse
aroot = /
broot = /
=> match
We have similar problems in mount/libmount in past. There we attempted to
detect whether a particular btrfs sub-volume is already mounted. Here we will
need a similar code.
--
You are receiving this mail because:
You are on the CC list for the bug.