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

Cyril Hrubis chrubis@suse.cz
Fri Nov 14 11:27:46 CET 2025


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


More information about the ltp mailing list