[Cluster-devel] [PATCH 1/4] libgfs2: Superblock building and writing improvements

Bob Peterson rpeterso at redhat.com
Mon Feb 17 15:12:40 UTC 2014


----- Original Message -----
| build_sb was creating the sb, setting its fields from an sdp and then
| writing it, and also zeroing the gap before the sb on the device in a
| block-by-block way using buffer_heads.
| 
| This patch splits the build_sb function into lgfs2_sb_init and
| lgfs2_sb_write which operate on gfs2_sb structures instead of gfs2_sbds.
| lgfs2_sb_write now uses pwritev to zero the initial blocks and write the
| sb to an fd.
| 
| get_random_bytes has been moved into structures.c and made static as
| only lgfs2_sb_init now uses it.
| 
| Signed-off-by: Andrew Price <anprice at redhat.com>
| ---

Hi,

All four patches look good to me. ACK.

Bob Peterson
Red Hat File Systems




More information about the Cluster-devel mailing list