Re: [dm-devel] [PATCH 15/21] libmultipath: update_bindings_file: use a single write()

2023-09-06 Thread Benjamin Marzinski
On Fri, Sep 01, 2023 at 08:02:28PM +0200, mwi...@suse.com wrote: > From: Martin Wilck > > Save code and syscalls by assembling the content in memory first. > write() may return less bytes written than expected. Deal with it. > Reviewed-by: Benjamin Marzinski > Signed-off-by: Martin Wilck >

[dm-devel] [PATCH 15/21] libmultipath: update_bindings_file: use a single write()

2023-09-01 Thread mwilck
From: Martin Wilck Save code and syscalls by assembling the content in memory first. write() may return less bytes written than expected. Deal with it. Signed-off-by: Martin Wilck --- libmultipath/alias.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff