qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Borzenkov <pavel.borzenkov@gmail.com>
To: qemu-devel@nongnu.org
Cc: andreas.faerber@web.de
Subject: [Qemu-devel] [PATCH 1/3] raw-posix: Remove dead code
Date: Thu, 10 Nov 2011 22:40:05 +0400	[thread overview]
Message-ID: <1320950407-43512-2-git-send-email-pavel.borzenkov@gmail.com> (raw)
In-Reply-To: <1320950407-43512-1-git-send-email-pavel.borzenkov@gmail.com>

It was commented out since the initial import from svn.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
---
 block/raw-posix.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/block/raw-posix.c b/block/raw-posix.c
index a3de373..17e1c6f 100644
--- a/block/raw-posix.c
+++ b/block/raw-posix.c
@@ -37,7 +37,6 @@
 #include <IOKit/storage/IOMediaBSDClient.h>
 #include <IOKit/storage/IOMedia.h>
 #include <IOKit/storage/IOCDMedia.h>
-//#include <IOKit/storage/IOCDTypes.h>
 #include <CoreFoundation/CoreFoundation.h>
 #endif
 
@@ -279,23 +278,6 @@ static int raw_open(BlockDriverState *bs, const char *filename, int flags)
     return raw_open_common(bs, filename, flags, 0);
 }
 
-/* XXX: use host sector size if necessary with:
-#ifdef DIOCGSECTORSIZE
-        {
-            unsigned int sectorsize = 512;
-            if (!ioctl(fd, DIOCGSECTORSIZE, &sectorsize) &&
-                sectorsize > bufsize)
-                bufsize = sectorsize;
-        }
-#endif
-#ifdef CONFIG_COCOA
-        uint32_t blockSize = 512;
-        if ( !ioctl( fd, DKIOCGETBLOCKSIZE, &blockSize ) && blockSize > bufsize) {
-            bufsize = blockSize;
-        }
-#endif
-*/
-
 /*
  * Check if all memory in this vector is sector aligned.
  */
-- 
1.7.5.4

  reply	other threads:[~2011-11-10 18:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10 18:40 [Qemu-devel] [PATCH 0/3] Make GUI frontends optional on Mac OS X Pavel Borzenkov
2011-11-10 18:40 ` Pavel Borzenkov [this message]
2011-12-14 12:03   ` [Qemu-devel] [PATCH 1/3] raw-posix: Remove dead code Andreas Färber
2011-11-10 18:40 ` [Qemu-devel] [PATCH 2/3] raw-posix: Do not use CONFIG_COCOA macro Pavel Borzenkov
2011-11-30  0:38   ` Andreas Färber
2011-12-08  0:12     ` Andreas Färber
2011-11-10 18:40 ` [Qemu-devel] [PATCH 3/3] configure: add '--disable-cocoa' switch Pavel Borzenkov
2011-12-08  0:41   ` Andreas Färber
2012-01-14  0:42     ` Andreas Färber
2012-01-16 23:46       ` Andrzej Zaborowski
2012-01-17 11:06         ` Andreas Färber
2012-01-17 14:23           ` Andrzej Zaborowski
2012-01-17 14:46         ` Peter Maydell

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=1320950407-43512-2-git-send-email-pavel.borzenkov@gmail.com \
    --to=pavel.borzenkov@gmail.com \
    --cc=andreas.faerber@web.de \
    --cc=qemu-devel@nongnu.org \
    /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).