[LTP] [PATCH] commands/mkswap01: Update wait_for_file function

Cyril Hrubis chrubis@suse.cz
Tue Feb 2 15:35:25 CET 2016


Hi!
> In commit a76b72ad31fa7bb22a09f323dadd5db7c00c7f56,it depends on the files 
> under /dev/disk/by-* in wait_for_file function.But sometimes udev does not 
> refresh automatically during runtime and the symbolic links will not appear.

Isn't that udev bug?

> Update the function to use blkid instead.

Does actually the swapon in the verify function work? Since as far as I
can tell it actually opens the symlink in question in order to get the
swap device.

Have you tried stracing it in case that the code waiting for the device
timeouted?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list