Whamcloud - gitweb
LU-9936 utils: Improve ldiskfs_write_dd() writing mount data 08/56408/4
authorMarc Vef <mvef@whamcloud.com>
Wed, 18 Sep 2024 13:53:23 +0000 (15:53 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 9 Dec 2024 06:10:34 +0000 (06:10 +0000)
commit7687e22af35d3759b6f106104d900c462e2be4cd
tree42913a2df09205a59f0a2bed77f0cc7acb0afbf8
parent45cb8d54700c6c4b42d4d3e40b38cb05bad0494b
LU-9936 utils: Improve ldiskfs_write_dd() writing mount data

Writing the mount data to a file used buffered stream I/O missing a
flush operation with incomplete error handling.

This patch replaces buffered stream I/O with the Unix I/O API and adds
error handling.

Signed-off-by: Marc Vef <mvef@whamcloud.com>
Change-Id: Ia7dfc186b1c6f581dee461bd277f07dcc2eabafa
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56408
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/libmount_utils_ldiskfs.c