]> 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)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 15:42:56 +0000 (17:42 +0200)
commit9dbc073e4c58a56f68da8209df19789131446f5e
tree26b2e8d24fe6c83c9940d49d2f2230adb0fc639d
parent3530f10dbb45e6fd7662989c7dd72023de3dfa60
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