]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: Remove all skipped entries before de-duplication
authorScott Shambarger <devel@shambarger.net>
Thu, 12 May 2022 23:27:26 +0000 (16:27 -0700)
committerScott Shambarger <devel@shambarger.net>
Thu, 12 May 2022 23:27:26 +0000 (16:27 -0700)
commit20af6cee463cd6329b4f06db3282a09be942bd7a
treeef8b58a250675542f1e683e781a81de285dbe62a
parent581b77da7aa4a5205902857184d555bed367e3e0
fstrim: Remove all skipped entries before de-duplication

When processing fstab entries, de-duplication is performed based on the
source before all tests on the target have been checked, resulting in
some entries being skipped when a removed duplicate with a different
target would not have been.

The fix is to move all the target checks before the source
de-duplication.

Addresses: #1686
Signed-off-by: Scott Shambarger <devel@shambarger.net>
sys-utils/fstrim.c