qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 1/1] iscsi: add iSCSI block device support


From: Kevin Wolf
Subject: [Qemu-devel] Re: [PATCH 1/1] iscsi: add iSCSI block device support
Date: Mon, 22 Nov 2010 10:27:03 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10

Am 21.11.2010 23:17, schrieb ronnie sahlberg:
> List,
> 
> Please find attached a gzipped patch against master that adds support of 
> iSCSI.
> It is sent in gz format because of its uncompressed size, >100kb.

I think there's something missing in your mail. :-)

Anyway, I got the code from the KVM list, and I have some general comments:

* Please split this into some smaller patches and send them as a patch
  series. Inline the patches instead of a gzipped attachment, because
  that makes it a lot easier to comment the code when replying to your
  mail.
* Have a look at CODING_STYLE in the repository, especially at the
  sections about 80 chars per line and whitespace.
* Don't use printf() but error_report() for error messages
* Try to use qemu functions instead of POSIX ones so that the code
  will also work on Windows and other platforms. If you can't make it
  run on Windows, still use qemu functions where possible and change
  the Makefile to compile it only for POSIX hosts.
* Once you use qemu_malloc, you can drop your NULL checks. qemu_malloc
  never returns an error.
* Use QLISTs (qemu-queue.h) instead of introducing a new SLIST

Kevin



reply via email to

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