From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] gfs2-utils: master - mkfs.gfs2: Move the new rgrp creation code into libgfs2
Date: Tue, 02 Jul 2013 13:55:17 +0100 [thread overview]
Message-ID: <1372769717.2715.37.camel@menhir> (raw)
In-Reply-To: <1983072178.106607948.1372768746625.JavaMail.root@redhat.com>
On Tue, 2013-07-02 at 08:39 -0400, Bob Peterson wrote:
> | +/**
> | + * Write a resource group to a file descriptor.
> | + * Returns 0 on success or non-zero on failure with errno set
> | + */
> | +int lgfs2_rgrp_write(int fd, lgfs2_rgrp_t rg, unsigned bsize)
> | +{
> | + ssize_t ret = 0;
> | + size_t len = rg->ri.ri_length * bsize;
> | + unsigned int i;
> | + const struct gfs2_meta_header bmh = {
> | + .mh_magic = GFS2_MAGIC,
> | + .mh_type = GFS2_METATYPE_RB,
> | + .mh_format = GFS2_FORMAT_RB,
>
> Here again, maybe we should set __pad0 explicitly rather than leaving the
> value uninitialized.
>
With this form of initialisation the other fields will all be set to
zero anyway, so it doesn't need to be done explicitly here,
Steve.
next prev parent reply other threads:[~2013-07-02 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20130702092636.3ECC760DED@fedorahosted.org>
2013-07-02 12:39 ` [Cluster-devel] gfs2-utils: master - mkfs.gfs2: Move the new rgrp creation code into libgfs2 Bob Peterson
2013-07-02 12:55 ` Steven Whitehouse [this message]
2013-07-02 13:09 ` Andrew Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1372769717.2715.37.camel@menhir \
--to=swhiteho@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).