qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 21/55] block: Revert entanglement of bdrv_is_ins


From: Christoph Hellwig
Subject: Re: [Qemu-devel] [PATCH 21/55] block: Revert entanglement of bdrv_is_inserted() with tray status
Date: Tue, 26 Jul 2011 14:10:10 +0200
User-agent: Mutt/1.5.17 (2007-11-01)

> @@ -1066,20 +1066,21 @@ static const struct {
>      [ 0x03 ] = { cmd_request_sense,                 ALLOW_UA },
>      [ 0x12 ] = { cmd_inquiry,                       ALLOW_UA },
>      [ 0x1a ] = { cmd_mode_sense, /* (6) */          0 },
> -    [ 0x1b ] = { cmd_start_stop_unit,               0 },
> +    [ 0x1b ] = { cmd_start_stop_unit,               0 }, /* [1] */
>      [ 0x1e ] = { cmd_prevent_allow_medium_removal,  0 },
>      [ 0x25 ] = { cmd_read_cdvd_capacity,            CHECK_READY },

> +    /* [1] handler detects and reports not ready condition itself */

Why not comment this near the actual code?  The footnote scheme is
pretty odd and I've not seen it anywhere else in the code.

Otherwise looks fine,

Reviewed-by: Christoph Hellwig <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]