[LTP] [PATCH v2] lib: introduce safe_write() retry

Petr Vorel pvorel@suse.cz
Tue Oct 4 20:45:16 CEST 2022


Hi Jan,

...
> > LGTM. I just wonder if we need to add it to lib/safe_macros.c,

> It's currently shared code.
Ah, I'm sorry.

> > which implements it for the old API. Would it work to add it only to
> > tst_safe_macros.c and tst_safe_macros.h (instead of safe_macros_fn.h)?

> We could have 2 implementations for safe_write, but modifying existing one
> seemed better option. There's no harm supporting new option in old API too.

Sure, np.

Kind regards,
Petr


More information about the ltp mailing list