summaryrefslogtreecommitdiffstats
path: root/sys-utils
diff options
context:
space:
mode:
authorStanislav Brabec2019-06-10 21:59:21 +0200
committerKarel Zak2019-06-11 10:23:45 +0200
commit4080be3d7d84952e42048d2f266d49412ada955c (patch)
treee359dc797a24693415d195bc018a513d7109ce35 /sys-utils
parentlib/canonicalize: fix compiler warning [-Wsign-compare] (diff)
downloadkernel-qcow2-util-linux-4080be3d7d84952e42048d2f266d49412ada955c.tar.gz
kernel-qcow2-util-linux-4080be3d7d84952e42048d2f266d49412ada955c.tar.xz
kernel-qcow2-util-linux-4080be3d7d84952e42048d2f266d49412ada955c.zip
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>
Diffstat (limited to 'sys-utils')
-rw-r--r--sys-utils/fstrim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c
index cae38cdff..ff029015e 100644
--- a/sys-utils/fstrim.c
+++ b/sys-utils/fstrim.c
@@ -290,8 +290,8 @@ static int fstrim_all(struct fstrim_control *ctl)
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)