]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: de-duplicate btrfs sub-volumes
authorStanislav Brabec <sbrabec@suse.cz>
Wed, 25 Jan 2017 17:30:26 +0000 (18:30 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2017 11:26:01 +0000 (12:26 +0100)
commitafa382f2e087b71c9e626144f2f313abc42ad594
tree83705dfe61cdfa002ca696d83126aed9622c8315
parent6d8a31f6db4006c6b9750b6381d0bd74ffc992c6
fstrim: de-duplicate btrfs sub-volumes

There was a comparison of roots in uniq_fs_source_cmp(). As we care only on
device names, comparing roots makes only a little sense, and it breaks on btrfs.
As a result, FITRIM ioctl() is called for each subvolume. But by design, only
one TRIM is needed for the whole btrfs volume.

Remove it to be able to de-duplicate btrfs subvolumes.

Fixes opensuse #1020077.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
sys-utils/fstrim.c