[dm-devel] [patch 1/3] Extremely basic hp hardware handler (no retries, no error handling, etc).
Dave Wysochanski
dwysocha at redhat.com
Mon Jul 30 22:08:25 UTC 2007
On Mon, 2007-07-30 at 16:08 -0500, Mike Christie wrote:
> Chandra Seetharaman wrote:
> > Hi Dave,
> >
> > some coding style related comments (below).
> >
>
>
> >> + if (!error) {
> >> + err_flags = 0;
> >> + DMDEBUG("%s path activation command - success",
> >> + path->dev->name);
> >
> > Mixed use of space and tab for indentation (many other places too).
> >
>
> Where is that rule for this type of plcae?
>
> I think that is fine in those types of places. In fact I would leave it
> with mixed because that is how the rest of the dm code does it.
>
>
> >> + memset(&req->cmd, 0, BLK_MAX_CDB);
> >> + req->cmd[0] = START_STOP;
> >> + req->cmd[4] = 1;
> >> + req->cmd_len = COMMAND_SIZE(req->cmd[0]);
> >> + out:
> >
> > I think there will be no space before the label (one more below).
> >
>
> Either is normally fine, but in this case to fit with the other dm code
> that is best.
>
Ok. I think the attached is more consistent with the dm code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dm-hp-sw-v0.0.2.patch
Type: text/x-patch
Size: 7053 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20070730/902e51f8/attachment.bin>
More information about the dm-devel
mailing list