From: Carlos Maiolino Date: Tue, 4 Oct 2011 16:26:01 -0300 Subject: [Cluster-devel] [PATCH] gfs2_jadd: Fix error handlers In-Reply-To: <1317755114.2777.82.camel@menhir> References: <1317750280-11713-1-git-send-email-cmaiolino@redhat.com> <1317755114.2777.82.camel@menhir> Message-ID: <20111004192601.GA4777@andromeda.usersys.redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > > @@ -212,10 +218,9 @@ create_new_inode(struct gfs2_sbd *sdp) > > if (errno == EEXIST) { > > error = unlink(name); > > if (error) > > - die( _("can't unlink %s: %s\n"), > > - name, strerror(errno)); > > + perror("unlink"); > > } else > > - die( _("can't create %s: %s\n"), name, strerror(errno)); > > + perror("create"); > > } > In this case you should be passing the name that couldn't be created > rather than the string "create" to perror. Otherwise the user won't know > what the message refers to, > > Steve. > Gotcha, thanks Steve, I'll fix that on my next patch -- --Carlos