check_readonlyfs: check input data

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>