Re: [LTP] [PATCH v2 5/5] swapon03: Remove grep dependency

Cyril Hrubis
2025-11-14T10:27:15Z

Hi!
> This change requires to normalize TMPDIR via realpath() otherwise grep will
> fail. Either in the test or in the library [1] (I'll submit it separately, no
> need to be part of Wei's cleanup).

I was wondering if we can avoid matching the full path. Maybe we can
just do strstr() on the line from the /proc/mounts matching the filename
before we attempt to do the scanf().

--
Cyril Hrubis
chrubis@suse.cz