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>
This commit is contained in:
parent
348f57d669
commit
4080be3d7d
1 changed files with 1 additions and 1 deletions
|
@ -290,8 +290,8 @@ static int fstrim_all(struct fstrim_control *ctl)
|
||||||
if (!tgt || mnt_fs_is_pseudofs(fs) || mnt_fs_is_netfs(fs))
|
if (!tgt || mnt_fs_is_pseudofs(fs) || mnt_fs_is_netfs(fs))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* convert LABEL= (etc.) from fstab to paths */
|
||||||
if (!src && cache) {
|
if (!src && cache) {
|
||||||
/* convert LABEL= (etc.) from fstab to paths */
|
|
||||||
const char *spec = mnt_fs_get_source(fs);
|
const char *spec = mnt_fs_get_source(fs);
|
||||||
|
|
||||||
if (!spec)
|
if (!spec)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue