File util-linux-fstrim-A-1.patch of Package python3-libmount

From 4080be3d7d84952e42048d2f266d49412ada955c Mon Sep 17 00:00:00 2001
From: Stanislav Brabec <sbrabec@suse.cz>
Date: Mon, 10 Jun 2019 21:59:21 +0200
Subject: [PATCH 1/4] fstrim: Fix fstrim_all() comment

"convert LABEL=" does not happens in mnt_fs_get_source(), but later in
mnt_resolve_spec(). To make this more clean, move the comment before this
chunk of code.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
---
 sys-utils/fstrim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: util-linux-2.33.1/sys-utils/fstrim.c
===================================================================
--- util-linux-2.33.1.orig/sys-utils/fstrim.c
+++ util-linux-2.33.1/sys-utils/fstrim.c
@@ -256,8 +256,8 @@ static int fstrim_all(struct fstrim_cont
 		if (!tgt || mnt_fs_is_pseudofs(fs) || mnt_fs_is_netfs(fs))
 			continue;
 
+		/* convert LABEL= (etc.) from fstab to paths */
 		if (!src && cache) {
-			/* convert LABEL= (etc.) from fstab to paths */
 			const char *spec = mnt_fs_get_source(fs);
 
 			if (!spec)
openSUSE Build Service is sponsored by