All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
@ 2013-05-24  5:36 Fam Zheng
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 01/12] curl: introduce CURLSockInfo to BDRVCURLState Fam Zheng
                   ` (13 more replies)
  0 siblings, 14 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, rjones, stefanha

CURL library API has changed, the current curl driver is not working with
current libcurl. It may or may not have worked with old libcurl, but currently,
when testing with apache http URL, it just hangs before fetching any data.  The
problem is because the mismatch of our code and how libcurl wants to be used.
(man 3 curl_multi_socket_action, section 'TYPICAL USAGE')
 
 - Step 3. We need timer to support libcurl timeout.
 - Step 6. We'll call the right API function, replacing the deprecated.
 - Step 5, 8. Manage socket properly (take actions on socket fd that are passed
   into socket callback from libcurl)

This patch rewrites the use of API as well as the structure of internal states:

BDRVCURLState holds the pointer to curl multi interface (man 3
libcurl-multi), and 4 lists for internal states:
 - CURLState holds state for libcurl connection (man 3 libcurl-easy)
 - CURLSockInfo holds information for libcurl socket interface (man 3
   curl_multi_socket_action).
 - CURLDataCache holds the user data read from libcurl, it is in a list
   ordered by access, the used cache is moved to list head on access, so
   the tail element is freed first. BDRVCURLState.cache_quota is the
   threshold to start freeing cache.
 - CURLAIOCB holds ongoing aio information.

Changes from v5:
  05: Rename bs to s for BDRVCURLState.
  06: Use int64_t for offsets.
      Fix printf format string.
      Move introducing of use_count to 07.
  07: Drop explicit cast.
      Use int64_t for offsets.
      Use_count moved here.
  08: Remove duplicated.
      Move s->url = NULL to separate patch.
  09: Fix while(0);
  12: Added:
      curl: set s->url to NULL after free.

Changes from v4:
  11: Added:
        block/curl.c: Refuse to open the handle for writes.

Changes from v3:
  01, 06, 07: Add QLIST_INIT in qemu_open to initialize each list.
  07: Move clean up for s->acbs from later patch to here. Use qemu_aio_relase instead of g_free on acb.
      Fix use-after-free bug. [Rich]

Changes from v2:
  00: Removed previous 09, since changes are included in previous
      commits.
      previous 09: curl: release everything on curl close.
  01: Add commit message for introducing CURLSockInfo. Remove
      unnecessary pointer type cast.
  02: Use sizeof instead of macro for s->range len.
  04: Use pstrcpy and strncasecmp.
  06: Add commit message for why is there a cache in curl.c.

Changes from v1:
   Split to multiple patches. The final status should be identical to v1.

Fam Zheng (11):
  curl: introduce CURLSockInfo to BDRVCURLState.
  curl: change magic number to sizeof
  curl: change curl_multi_do to curl_fd_handler
  curl: fix curl_open
  curl: add timer to BDRVCURLState
  curl: introduce CURLDataCache
  curl: make use of CURLDataCache.
  curl: use list to store CURLState
  curl: add cache quota.
  curl: introduce ssl_no_cert runtime option.
  curl: set s->url to NULL after free.

Richard W.M. Jones (1):
  block/curl.c: Refuse to open the handle for writes.

 block/curl.c | 566 +++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 352 insertions(+), 214 deletions(-)

-- 
1.8.2.3

^ permalink raw reply	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 01/12] curl: introduce CURLSockInfo to BDRVCURLState.
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
@ 2013-05-24  5:36 ` Fam Zheng
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 02/12] curl: change magic number to sizeof Fam Zheng
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

We use socket provided by curl in the driver.  Libcurl multi interface
has option CURLMOPT_SOCKETFUNCTION for socket.

Per man 3 curl_multi_setopt:

    ...
    CURLMOPT_SOCKETFUNCTION

    Pass a pointer to a function matching the curl_socket_callback
    prototype. The curl_multi_socket_action(3) function informs the
    application about updates in the socket (file descriptor) status by
    doing none, one, or multiple calls to the curl_socket_callback given in
    the param argument. They update the status with changes since the
    previous time a curl_multi_socket(3) function was called. If the given
    callback pointer is NULL, no callback will be called. Set the callback's
    userp argument with CURLMOPT_SOCKETDATA. See curl_multi_socket(3) for
    more callback details.
    ...

The added structure store information for all the socket returned by
libcurl. The most important field is action, which is used to keep what
actions are needed when this socket's fd handler is called.

CURLSockInfo is added here and used in later commits to save the socket
actions.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)

diff --git a/block/curl.c b/block/curl.c
index b8935fd..a829fe7 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -75,10 +75,18 @@ typedef struct CURLState
     char in_use;
 } CURLState;
 
+typedef struct CURLSockInfo {
+    curl_socket_t fd;
+    int action;
+    struct BDRVCURLState *s;
+    QLIST_ENTRY(CURLSockInfo) next;
+} CURLSockInfo;
+
 typedef struct BDRVCURLState {
     CURLM *multi;
     size_t len;
     CURLState states[CURL_NUM_STATES];
+    QLIST_HEAD(, CURLSockInfo) socks;
     char *url;
     size_t readahead_size;
 } BDRVCURLState;
@@ -88,9 +96,18 @@ static void curl_multi_do(void *arg);
 static int curl_aio_flush(void *opaque);
 
 static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,
-                        void *s, void *sp)
+                        void *userp, void *sockp)
 {
+    BDRVCURLState *s = userp;
     DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, fd);
+    CURLSockInfo *sock = sockp;
+    if (!sock) {
+        sock = g_malloc0(sizeof(CURLSockInfo));
+        sock->fd = fd;
+        sock->s = s;
+        QLIST_INSERT_HEAD(&s->socks, sock, next);
+        curl_multi_assign(s->multi, fd, sock);
+    }
     switch (action) {
         case CURL_POLL_IN:
             qemu_aio_set_fd_handler(fd, curl_multi_do, NULL, curl_aio_flush, s);
@@ -433,6 +450,8 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
         inited = 1;
     }
 
+    QLIST_INIT(&s->socks);
+
     DPRINTF("CURL: Opening %s\n", file);
     s->url = g_strdup(file);
     state = curl_init_state(s);
@@ -462,8 +481,8 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     // initialize the multi interface!
 
     s->multi = curl_multi_init();
-    curl_multi_setopt( s->multi, CURLMOPT_SOCKETDATA, s); 
-    curl_multi_setopt( s->multi, CURLMOPT_SOCKETFUNCTION, curl_sock_cb ); 
+    curl_multi_setopt(s->multi, CURLMOPT_SOCKETDATA, s);
+    curl_multi_setopt(s->multi, CURLMOPT_SOCKETFUNCTION, curl_sock_cb);
     curl_multi_do(s);
 
     qemu_opts_del(opts);
@@ -603,6 +622,14 @@ static void curl_close(BlockDriverState *bs)
     }
     if (s->multi)
         curl_multi_cleanup(s->multi);
+
+    while (!QLIST_EMPTY(&s->socks)) {
+        CURLSockInfo *sock = QLIST_FIRST(&s->socks);
+        QLIST_REMOVE(sock, next);
+        g_free(sock);
+        sock = NULL;
+    }
+
     g_free(s->url);
 }
 
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 02/12] curl: change magic number to sizeof
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 01/12] curl: introduce CURLSockInfo to BDRVCURLState Fam Zheng
@ 2013-05-24  5:36 ` Fam Zheng
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 03/12] curl: change curl_multi_do to curl_fd_handler Fam Zheng
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

String field length is duplicated in two places. Make it a sizeof.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/curl.c b/block/curl.c
index a829fe7..a11002b 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -569,7 +569,7 @@ static void curl_readv_bh_cb(void *p)
     state->orig_buf = g_malloc(state->buf_len);
     state->acb[0] = acb;
 
-    snprintf(state->range, 127, "%zd-%zd", start, end);
+    snprintf(state->range, sizeof(state->range) - 1, "%zd-%zd", start, end);
     DPRINTF("CURL (AIO): Reading %d at %zd (%s)\n",
             (acb->nb_sectors * SECTOR_SIZE), start, state->range);
     curl_easy_setopt(state->curl, CURLOPT_RANGE, state->range);
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 03/12] curl: change curl_multi_do to curl_fd_handler
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 01/12] curl: introduce CURLSockInfo to BDRVCURLState Fam Zheng
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 02/12] curl: change magic number to sizeof Fam Zheng
@ 2013-05-24  5:36 ` Fam Zheng
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 04/12] curl: fix curl_open Fam Zheng
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

The driver calls curl_multi_do to take action at several points, while
it's also registered as socket fd handler. This patch removes internal
call of curl_multi_do because they are not necessary when handler can be
called by socket data update.

Since curl_multi_do becomes a pure fd handler, the function is renamed.
It takes a pointer to CURLSockInfo now, instead of pointer to
BDRVCURLState.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/block/curl.c b/block/curl.c
index a11002b..82a7a30 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -92,7 +92,7 @@ typedef struct BDRVCURLState {
 } BDRVCURLState;
 
 static void curl_clean_state(CURLState *s);
-static void curl_multi_do(void *arg);
+static void curl_fd_handler(void *arg);
 static int curl_aio_flush(void *opaque);
 
 static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,
@@ -110,17 +110,23 @@ static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,
     }
     switch (action) {
         case CURL_POLL_IN:
-            qemu_aio_set_fd_handler(fd, curl_multi_do, NULL, curl_aio_flush, s);
+            qemu_aio_set_fd_handler(fd, curl_fd_handler, NULL,
+                                    curl_aio_flush, sock);
+            sock->action |= CURL_CSELECT_IN;
             break;
         case CURL_POLL_OUT:
-            qemu_aio_set_fd_handler(fd, NULL, curl_multi_do, curl_aio_flush, s);
+            qemu_aio_set_fd_handler(fd, NULL, curl_fd_handler, curl_aio_flush,
+                                    sock);
+            sock->action |= CURL_CSELECT_OUT;
             break;
         case CURL_POLL_INOUT:
-            qemu_aio_set_fd_handler(fd, curl_multi_do, curl_multi_do,
-                                    curl_aio_flush, s);
+            qemu_aio_set_fd_handler(fd, curl_fd_handler, curl_fd_handler,
+                                    curl_aio_flush, sock);
+            sock->action |= CURL_CSELECT_IN | CURL_CSELECT_OUT;
             break;
         case CURL_POLL_REMOVE:
             qemu_aio_set_fd_handler(fd, NULL, NULL, NULL, NULL);
+            sock->action = 0;
             break;
     }
 
@@ -226,9 +232,10 @@ static int curl_find_buf(BDRVCURLState *s, size_t start, size_t len,
     return FIND_RET_NONE;
 }
 
-static void curl_multi_do(void *arg)
+static void curl_fd_handler(void *arg)
 {
-    BDRVCURLState *s = (BDRVCURLState *)arg;
+    CURLSockInfo *sock = (CURLSockInfo *)arg;
+    BDRVCURLState *s = sock->s;
     int running;
     int r;
     int msgs_in_queue;
@@ -237,7 +244,9 @@ static void curl_multi_do(void *arg)
         return;
 
     do {
-        r = curl_multi_socket_all(s->multi, &running);
+        r = curl_multi_socket_action(s->multi,
+                sock->fd, sock->action,
+                &running);
     } while(r == CURLM_CALL_MULTI_PERFORM);
 
     /* Try to find done transfers, so we can free the easy
@@ -302,7 +311,6 @@ static CURLState *curl_init_state(BDRVCURLState *s)
         }
         if (!state) {
             g_usleep(100);
-            curl_multi_do(s);
         }
     } while(!state);
 
@@ -483,7 +491,6 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     s->multi = curl_multi_init();
     curl_multi_setopt(s->multi, CURLMOPT_SOCKETDATA, s);
     curl_multi_setopt(s->multi, CURLMOPT_SOCKETFUNCTION, curl_sock_cb);
-    curl_multi_do(s);
 
     qemu_opts_del(opts);
     return 0;
@@ -575,7 +582,6 @@ static void curl_readv_bh_cb(void *p)
     curl_easy_setopt(state->curl, CURLOPT_RANGE, state->range);
 
     curl_multi_add_handle(s->multi, state->curl);
-    curl_multi_do(s);
 
 }
 
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 04/12] curl: fix curl_open
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (2 preceding siblings ...)
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 03/12] curl: change curl_multi_do to curl_fd_handler Fam Zheng
@ 2013-05-24  5:36 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 05/12] curl: add timer to BDRVCURLState Fam Zheng
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

Change curl_size_cb to curl_header_cb, as what the function is really
doing. Fix the registering, CURLOPT_WRITEFUNCTION is apparently wrong,
should be CURLOPT_HEADERFUNCTION.

Parsing size from header is not necessary as we're using

  curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d)

The validity of d is version dependant per man 3 curl_easy_getinfo:

    ...
    CURLINFO_CONTENT_LENGTH_DOWNLOAD

    Pass a pointer to a double to receive the content-length of the
    download. This is the value read from the Content-Length: field.
    Since 7.19.4, this returns -1 if the size isn't known.
    ...

And Accept-Ranges is essential for curl to fetch right data from
http/https servers, so we check for this in the header and fail the open
if it's not supported.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 44 ++++++++++++++++++++++++++++++++------------
 1 file changed, 32 insertions(+), 12 deletions(-)

diff --git a/block/curl.c b/block/curl.c
index 82a7a30..d238489 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -89,6 +89,8 @@ typedef struct BDRVCURLState {
     QLIST_HEAD(, CURLSockInfo) socks;
     char *url;
     size_t readahead_size;
+    /* Whether http server accept range in header */
+    bool accept_range;
 } BDRVCURLState;
 
 static void curl_clean_state(CURLState *s);
@@ -133,14 +135,14 @@ static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,
     return 0;
 }
 
-static size_t curl_size_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
+static size_t curl_header_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
 {
-    CURLState *s = ((CURLState*)opaque);
+    BDRVCURLState *s = (BDRVCURLState *)opaque;
     size_t realsize = size * nmemb;
-    size_t fsize;
+    const char *accept_line = "Accept-Ranges: bytes";
 
-    if(sscanf(ptr, "Content-Length: %zd", &fsize) == 1) {
-        s->s->len = fsize;
+    if (strncmp((char *)ptr, accept_line, strlen(accept_line)) == 0) {
+        s->accept_range = true;
     }
 
     return realsize;
@@ -428,6 +430,7 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     Error *local_err = NULL;
     const char *file;
     double d;
+    int running;
 
     static int inited = 0;
 
@@ -469,16 +472,29 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     // Get file size
 
     curl_easy_setopt(state->curl, CURLOPT_NOBODY, 1);
-    curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_size_cb);
-    if (curl_easy_perform(state->curl))
+    curl_easy_setopt(state->curl, CURLOPT_HEADERFUNCTION,
+                     curl_header_cb);
+    curl_easy_setopt(state->curl, CURLOPT_HEADERDATA, s);
+    if (curl_easy_perform(state->curl)) {
         goto out;
+    }
     curl_easy_getinfo(state->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &d);
-    curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_read_cb);
     curl_easy_setopt(state->curl, CURLOPT_NOBODY, 0);
-    if (d)
+#if LIBCURL_VERSION_NUM > 0x071304
+    if (d != -1) {
+#else
+    if (d) {
+#endif
         s->len = (size_t)d;
-    else if(!s->len)
+    } else if (!s->len) {
+        goto out;
+    }
+    if (!strncasecmp(s->url, "http://", strlen("http://"))
+        && !strncasecmp(s->url, "https://", strlen("https://"))
+        && !s->accept_range) {
+        pstrcpy(state->errmsg, CURL_ERROR_SIZE, "Server not supporting range.");
         goto out;
+    }
     DPRINTF("CURL: Size = %zd\n", s->len);
 
     curl_clean_state(state);
@@ -487,10 +503,13 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
 
     // Now we know the file exists and its size, so let's
     // initialize the multi interface!
-
     s->multi = curl_multi_init();
+    if (!s->multi) {
+        goto out_noclean;
+    }
     curl_multi_setopt(s->multi, CURLMOPT_SOCKETDATA, s);
     curl_multi_setopt(s->multi, CURLMOPT_SOCKETFUNCTION, curl_sock_cb);
+    curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running);
 
     qemu_opts_del(opts);
     return 0;
@@ -500,8 +519,9 @@ out:
     curl_easy_cleanup(state->curl);
     state->curl = NULL;
 out_noclean:
-    g_free(s->url);
     qemu_opts_del(opts);
+    g_free(s->url);
+    s->url = NULL;
     return -EINVAL;
 }
 
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 05/12] curl: add timer to BDRVCURLState
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (3 preceding siblings ...)
  2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 04/12] curl: fix curl_open Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 06/12] curl: introduce CURLDataCache Fam Zheng
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

libcurl uses timer to manage ongoing sockets, it needs us to supply
timer. This patch introduce QEMUTimer to BDRVCURLState and handles
timeouts as libcurl expects (curl_multi_timer_cb sets given timeout
value on the timer and curl_timer_cb calls curl_multi_socket_action on
triggered).

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/block/curl.c b/block/curl.c
index d238489..bb46c8f 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -89,6 +89,7 @@ typedef struct BDRVCURLState {
     QLIST_HEAD(, CURLSockInfo) socks;
     char *url;
     size_t readahead_size;
+    QEMUTimer *timer;
     /* Whether http server accept range in header */
     bool accept_range;
 } BDRVCURLState;
@@ -148,6 +149,38 @@ static size_t curl_header_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
     return realsize;
 }
 
+static void curl_timer_cb(void *opaque)
+{
+    int running;
+    BDRVCURLState *s = opaque;
+    DPRINTF("curl timeout!\n");
+    curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running);
+}
+
+/* Call back for curl_multi interface */
+static int curl_multi_timer_cb(CURLM *multi, long timeout_ms, void *s_)
+{
+    BDRVCURLState *s = s_;
+    DPRINTF("curl multi timer cb, timeout: %ld (ms)\n", timeout_ms);
+    if (timeout_ms < 0) {
+        if (s->timer) {
+            qemu_del_timer(s->timer);
+            qemu_free_timer(s->timer);
+            s->timer = NULL;
+        }
+    } else if (timeout_ms == 0) {
+        curl_timer_cb(s);
+    } else {
+        if (!s->timer) {
+            s->timer = qemu_new_timer_ms(host_clock, curl_timer_cb, s);
+            assert(s->timer);
+        }
+        qemu_mod_timer(s->timer, qemu_get_clock_ms(host_clock) + timeout_ms);
+    }
+
+    return 0;
+}
+
 static size_t curl_read_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
 {
     CURLState *s = ((CURLState*)opaque);
@@ -509,6 +542,8 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     }
     curl_multi_setopt(s->multi, CURLMOPT_SOCKETDATA, s);
     curl_multi_setopt(s->multi, CURLMOPT_SOCKETFUNCTION, curl_sock_cb);
+    curl_multi_setopt(s->multi, CURLMOPT_TIMERDATA, s);
+    curl_multi_setopt(s->multi, CURLMOPT_TIMERFUNCTION, curl_multi_timer_cb);
     curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running);
 
     qemu_opts_del(opts);
@@ -634,6 +669,13 @@ static void curl_close(BlockDriverState *bs)
     int i;
 
     DPRINTF("CURL: Close\n");
+
+    if (s->timer) {
+        qemu_del_timer(s->timer);
+        qemu_free_timer(s->timer);
+        s->timer = NULL;
+    }
+
     for (i=0; i<CURL_NUM_STATES; i++) {
         if (s->states[i].in_use)
             curl_clean_state(&s->states[i]);
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 06/12] curl: introduce CURLDataCache
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (4 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 05/12] curl: add timer to BDRVCURLState Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 07/12] curl: make use of CURLDataCache Fam Zheng
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

Data buffer was contained by CURLState, they are allocated and freed
together. This patch try to isolate them, by introducing a dedicated
cache list to BDRVCURLState. The benifit is we can now release the
CURLState (and associated sockets) while keep the fetched data for later
use, and simplies the prefetch and buffer logic for some degree.

Note: There's already page cache in guest kernel, why cache data here?
Since we don't want to submit http/ftp/* request for every 2KB in
sequencial read, but there are crude guest that sends small IO reqs,
which will result in horrible performance.  GRUB/isolinux loading kernel
is a typical case and we workaround this by prefetch cache.  This is
what curl.c has been doing along. This patch just refectors the buffer.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 137 ++++++++++++++++++++++++++++-------------------------------
 1 file changed, 66 insertions(+), 71 deletions(-)

diff --git a/block/curl.c b/block/curl.c
index bb46c8f..a99d8b5 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -43,10 +43,6 @@
 #define SECTOR_SIZE     512
 #define READ_AHEAD_SIZE (256 * 1024)
 
-#define FIND_RET_NONE   0
-#define FIND_RET_OK     1
-#define FIND_RET_WAIT   2
-
 struct BDRVCURLState;
 
 typedef struct CURLAIOCB {
@@ -61,6 +57,14 @@ typedef struct CURLAIOCB {
     size_t end;
 } CURLAIOCB;
 
+typedef struct CURLDataCache {
+    char *data;
+    int64_t base_pos;
+    size_t data_len;
+    int64_t write_pos;
+    QLIST_ENTRY(CURLDataCache) next;
+} CURLDataCache;
+
 typedef struct CURLState
 {
     struct BDRVCURLState *s;
@@ -90,6 +94,8 @@ typedef struct BDRVCURLState {
     char *url;
     size_t readahead_size;
     QEMUTimer *timer;
+    /* List of data cache ordered by access, freed from tail */
+    QLIST_HEAD(, CURLDataCache) cache;
     /* Whether http server accept range in header */
     bool accept_range;
 } BDRVCURLState;
@@ -98,6 +104,19 @@ static void curl_clean_state(CURLState *s);
 static void curl_fd_handler(void *arg);
 static int curl_aio_flush(void *opaque);
 
+static CURLDataCache *curl_find_cache(BDRVCURLState *bs,
+                                      int64_t start, size_t len)
+{
+    CURLDataCache *c;
+    QLIST_FOREACH(c, &bs->cache, next) {
+        if (start >= c->base_pos &&
+            start + len <= c->base_pos + c->write_pos) {
+            return c;
+        }
+    }
+    return NULL;
+}
+
 static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action,
                         void *userp, void *sockp)
 {
@@ -181,6 +200,23 @@ static int curl_multi_timer_cb(CURLM *multi, long timeout_ms, void *s_)
     return 0;
 }
 
+static void curl_complete_io(BDRVCURLState *bs, CURLAIOCB *acb,
+                             CURLDataCache *cache)
+{
+    int64_t aio_base = acb->sector_num * SECTOR_SIZE;
+    size_t aio_bytes = acb->nb_sectors * SECTOR_SIZE;
+    int64_t off = aio_base - cache->base_pos;
+
+    qemu_iovec_from_buf(acb->qiov, 0, cache->data + off, aio_bytes);
+    acb->common.cb(acb->common.opaque, 0);
+    DPRINTF("AIO Request OK: " PRId64 "%10zd\n", aio_base, aio_bytes);
+    qemu_aio_release(acb);
+    acb = NULL;
+    /* Move cache next in the list */
+    QLIST_REMOVE(cache, next);
+    QLIST_INSERT_HEAD(&bs->cache, cache, next);
+}
+
 static size_t curl_read_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
 {
     CURLState *s = ((CURLState*)opaque);
@@ -214,59 +250,6 @@ read_end:
     return realsize;
 }
 
-static int curl_find_buf(BDRVCURLState *s, size_t start, size_t len,
-                         CURLAIOCB *acb)
-{
-    int i;
-    size_t end = start + len;
-
-    for (i=0; i<CURL_NUM_STATES; i++) {
-        CURLState *state = &s->states[i];
-        size_t buf_end = (state->buf_start + state->buf_off);
-        size_t buf_fend = (state->buf_start + state->buf_len);
-
-        if (!state->orig_buf)
-            continue;
-        if (!state->buf_off)
-            continue;
-
-        // Does the existing buffer cover our section?
-        if ((start >= state->buf_start) &&
-            (start <= buf_end) &&
-            (end >= state->buf_start) &&
-            (end <= buf_end))
-        {
-            char *buf = state->orig_buf + (start - state->buf_start);
-
-            qemu_iovec_from_buf(acb->qiov, 0, buf, len);
-            acb->common.cb(acb->common.opaque, 0);
-
-            return FIND_RET_OK;
-        }
-
-        // Wait for unfinished chunks
-        if ((start >= state->buf_start) &&
-            (start <= buf_fend) &&
-            (end >= state->buf_start) &&
-            (end <= buf_fend))
-        {
-            int j;
-
-            acb->start = start - state->buf_start;
-            acb->end = acb->start + len;
-
-            for (j=0; j<CURL_NUM_ACB; j++) {
-                if (!state->acb[j]) {
-                    state->acb[j] = acb;
-                    return FIND_RET_WAIT;
-                }
-            }
-        }
-    }
-
-    return FIND_RET_NONE;
-}
-
 static void curl_fd_handler(void *arg)
 {
     CURLSockInfo *sock = (CURLSockInfo *)arg;
@@ -299,7 +282,9 @@ static void curl_fd_handler(void *arg)
             case CURLMSG_DONE:
             {
                 CURLState *state = NULL;
-                curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, (char**)&state);
+                curl_easy_getinfo(msg->easy_handle,
+                                  CURLINFO_PRIVATE,
+                                  (char **)&state);
 
                 /* ACBs for successful messages get completed in curl_read_cb */
                 if (msg->data.result != CURLE_OK) {
@@ -495,6 +480,7 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     }
 
     QLIST_INIT(&s->socks);
+    QLIST_INIT(&s->cache);
 
     DPRINTF("CURL: Opening %s\n", file);
     s->url = g_strdup(file);
@@ -589,26 +575,24 @@ static const AIOCBInfo curl_aiocb_info = {
 static void curl_readv_bh_cb(void *p)
 {
     CURLState *state;
-
+    CURLDataCache *cache = NULL;
     CURLAIOCB *acb = p;
     BDRVCURLState *s = acb->common.bs->opaque;
+    int64_t aio_base, aio_bytes;
+    int64_t start, end;
 
     qemu_bh_delete(acb->bh);
     acb->bh = NULL;
 
-    size_t start = acb->sector_num * SECTOR_SIZE;
-    size_t end;
+    aio_base = acb->sector_num * SECTOR_SIZE;
+    aio_bytes = acb->nb_sectors * SECTOR_SIZE;
 
-    // In case we have the requested data already (e.g. read-ahead),
-    // we can just call the callback and be done.
-    switch (curl_find_buf(s, start, acb->nb_sectors * SECTOR_SIZE, acb)) {
-        case FIND_RET_OK:
-            qemu_aio_release(acb);
-            // fall through
-        case FIND_RET_WAIT:
-            return;
-        default:
-            break;
+    start = acb->sector_num * SECTOR_SIZE;
+
+    cache = curl_find_cache(s, aio_base, aio_bytes);
+    if (cache) {
+        curl_complete_io(s, acb, cache);
+        return;
     }
 
     // No cache found, so let's start a new request
@@ -691,6 +675,17 @@ static void curl_close(BlockDriverState *bs)
     if (s->multi)
         curl_multi_cleanup(s->multi);
 
+    while (!QLIST_EMPTY(&s->cache)) {
+        CURLDataCache *cache = QLIST_FIRST(&s->cache);
+        if (cache->data) {
+            g_free(cache->data);
+            cache->data = NULL;
+        }
+        QLIST_REMOVE(cache, next);
+        g_free(cache);
+        cache = NULL;
+    }
+
     while (!QLIST_EMPTY(&s->socks)) {
         CURLSockInfo *sock = QLIST_FIRST(&s->socks);
         QLIST_REMOVE(sock, next);
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 07/12] curl: make use of CURLDataCache.
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (5 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 06/12] curl: introduce CURLDataCache Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 08/12] curl: use list to store CURLState Fam Zheng
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

Make subsequecial changes to make use of introduced CURLDataCache. Moved
acb struct from CURLState to BDRVCURLState, and changed to list.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 170 ++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 92 insertions(+), 78 deletions(-)

diff --git a/block/curl.c b/block/curl.c
index a99d8b5..5405485 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -39,7 +39,6 @@
                    CURLPROTO_TFTP)
 
 #define CURL_NUM_STATES 8
-#define CURL_NUM_ACB    8
 #define SECTOR_SIZE     512
 #define READ_AHEAD_SIZE (256 * 1024)
 
@@ -52,9 +51,7 @@ typedef struct CURLAIOCB {
 
     int64_t sector_num;
     int nb_sectors;
-
-    size_t start;
-    size_t end;
+    QLIST_ENTRY(CURLAIOCB) next;
 } CURLAIOCB;
 
 typedef struct CURLDataCache {
@@ -62,20 +59,18 @@ typedef struct CURLDataCache {
     int64_t base_pos;
     size_t data_len;
     int64_t write_pos;
+    /* Ref count for CURLState */
+    int use_count;
     QLIST_ENTRY(CURLDataCache) next;
 } CURLDataCache;
 
 typedef struct CURLState
 {
     struct BDRVCURLState *s;
-    CURLAIOCB *acb[CURL_NUM_ACB];
     CURL *curl;
-    char *orig_buf;
-    size_t buf_start;
-    size_t buf_off;
-    size_t buf_len;
     char range[128];
     char errmsg[CURL_ERROR_SIZE];
+    CURLDataCache *cache;
     char in_use;
 } CURLState;
 
@@ -90,6 +85,7 @@ typedef struct BDRVCURLState {
     CURLM *multi;
     size_t len;
     CURLState states[CURL_NUM_STATES];
+    QLIST_HEAD(, CURLAIOCB) acbs;
     QLIST_HEAD(, CURLSockInfo) socks;
     char *url;
     size_t readahead_size;
@@ -219,31 +215,35 @@ static void curl_complete_io(BDRVCURLState *bs, CURLAIOCB *acb,
 
 static size_t curl_read_cb(void *ptr, size_t size, size_t nmemb, void *opaque)
 {
-    CURLState *s = ((CURLState*)opaque);
+    CURLState *s = opaque;
+    CURLDataCache *c = s->cache;
     size_t realsize = size * nmemb;
-    int i;
-
-    DPRINTF("CURL: Just reading %zd bytes\n", realsize);
+    CURLAIOCB *acb;
 
-    if (!s || !s->orig_buf)
+    if (!c || !c->data) {
         goto read_end;
+    }
+    if (c->write_pos >= c->data_len) {
+        goto read_end;
+    }
+    memcpy(c->data + c->write_pos, ptr,
+           MIN(realsize, c->data_len - c->write_pos));
+    c->write_pos += realsize;
+    if (c->write_pos >= c->data_len) {
+        c->write_pos = c->data_len;
+    }
 
-    memcpy(s->orig_buf + s->buf_off, ptr, realsize);
-    s->buf_off += realsize;
-
-    for(i=0; i<CURL_NUM_ACB; i++) {
-        CURLAIOCB *acb = s->acb[i];
-
-        if (!acb)
-            continue;
-
-        if ((s->buf_off >= acb->end)) {
-            qemu_iovec_from_buf(acb->qiov, 0, s->orig_buf + acb->start,
-                                acb->end - acb->start);
-            acb->common.cb(acb->common.opaque, 0);
-            qemu_aio_release(acb);
-            s->acb[i] = NULL;
+    acb = QLIST_FIRST(&s->s->acbs);
+    while (acb) {
+        int64_t aio_base = acb->sector_num * SECTOR_SIZE;
+        size_t aio_len = acb->nb_sectors * SECTOR_SIZE;
+        CURLAIOCB *next = QLIST_NEXT(acb, next);
+        if (aio_base >= c->base_pos &&
+            aio_base + aio_len <= c->base_pos + c->write_pos) {
+            QLIST_REMOVE(acb, next);
+            curl_complete_io(s->s, acb, c);
         }
+        acb = next;
     }
 
 read_end:
@@ -273,10 +273,12 @@ static void curl_fd_handler(void *arg)
         CURLMsg *msg;
         msg = curl_multi_info_read(s->multi, &msgs_in_queue);
 
-        if (!msg)
+        if (!msg) {
             break;
-        if (msg->msg == CURLMSG_NONE)
+        }
+        if (msg->msg == CURLMSG_NONE) {
             break;
+        }
 
         switch (msg->msg) {
             case CURLMSG_DONE:
@@ -286,19 +288,17 @@ static void curl_fd_handler(void *arg)
                                   CURLINFO_PRIVATE,
                                   (char **)&state);
 
-                /* ACBs for successful messages get completed in curl_read_cb */
+                /* ACBs for successful messages get completed in curl_read_cb,
+                 * fail existing acbs for now */
                 if (msg->data.result != CURLE_OK) {
-                    int i;
-                    for (i = 0; i < CURL_NUM_ACB; i++) {
-                        CURLAIOCB *acb = state->acb[i];
-
-                        if (acb == NULL) {
-                            continue;
-                        }
-
+                    CURLAIOCB *acb = QLIST_FIRST(&s->acbs);
+                    while (acb) {
+                        CURLAIOCB *next = QLIST_NEXT(acb, next);
+                        DPRINTF("EIO, %s\n", state->errmsg);
                         acb->common.cb(acb->common.opaque, -EIO);
+                        QLIST_REMOVE(acb, next);
                         qemu_aio_release(acb);
-                        state->acb[i] = NULL;
+                        acb = next;
                     }
                 }
 
@@ -315,13 +315,10 @@ static void curl_fd_handler(void *arg)
 static CURLState *curl_init_state(BDRVCURLState *s)
 {
     CURLState *state = NULL;
-    int i, j;
+    int i;
 
     do {
         for (i=0; i<CURL_NUM_STATES; i++) {
-            for (j=0; j<CURL_NUM_ACB; j++)
-                if (s->states[i].acb[j])
-                    continue;
             if (s->states[i].in_use)
                 continue;
 
@@ -378,6 +375,10 @@ static void curl_clean_state(CURLState *s)
     if (s->s->multi)
         curl_multi_remove_handle(s->s->multi, s->curl);
     s->in_use = 0;
+    if (s->cache) {
+        s->cache->use_count--;
+        assert(s->cache->use_count >= 0);
+    }
 }
 
 static void curl_parse_filename(const char *filename, QDict *options,
@@ -481,6 +482,7 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
 
     QLIST_INIT(&s->socks);
     QLIST_INIT(&s->cache);
+    QLIST_INIT(&s->acbs);
 
     DPRINTF("CURL: Opening %s\n", file);
     s->url = g_strdup(file);
@@ -549,14 +551,8 @@ out_noclean:
 static int curl_aio_flush(void *opaque)
 {
     BDRVCURLState *s = opaque;
-    int i, j;
-
-    for (i=0; i < CURL_NUM_STATES; i++) {
-        for(j=0; j < CURL_NUM_ACB; j++) {
-            if (s->states[i].acb[j]) {
-                return 1;
-            }
-        }
+    if (!QLIST_EMPTY(&s->acbs)) {
+        return 1;
     }
     return 0;
 }
@@ -579,7 +575,7 @@ static void curl_readv_bh_cb(void *p)
     CURLAIOCB *acb = p;
     BDRVCURLState *s = acb->common.bs->opaque;
     int64_t aio_base, aio_bytes;
-    int64_t start, end;
+    int running;
 
     qemu_bh_delete(acb->bh);
     acb->bh = NULL;
@@ -587,7 +583,9 @@ static void curl_readv_bh_cb(void *p)
     aio_base = acb->sector_num * SECTOR_SIZE;
     aio_bytes = acb->nb_sectors * SECTOR_SIZE;
 
-    start = acb->sector_num * SECTOR_SIZE;
+    if (aio_base + aio_bytes > s->len) {
+        goto err_release;
+    }
 
     cache = curl_find_cache(s, aio_base, aio_bytes);
     if (cache) {
@@ -598,29 +596,41 @@ static void curl_readv_bh_cb(void *p)
     // No cache found, so let's start a new request
     state = curl_init_state(s);
     if (!state) {
-        acb->common.cb(acb->common.opaque, -EIO);
-        qemu_aio_release(acb);
-        return;
+        goto err_release;
     }
 
-    acb->start = 0;
-    acb->end = (acb->nb_sectors * SECTOR_SIZE);
-
-    state->buf_off = 0;
-    if (state->orig_buf)
-        g_free(state->orig_buf);
-    state->buf_start = start;
-    state->buf_len = acb->end + s->readahead_size;
-    end = MIN(start + state->buf_len, s->len) - 1;
-    state->orig_buf = g_malloc(state->buf_len);
-    state->acb[0] = acb;
-
-    snprintf(state->range, sizeof(state->range) - 1, "%zd-%zd", start, end);
-    DPRINTF("CURL (AIO): Reading %d at %zd (%s)\n",
-            (acb->nb_sectors * SECTOR_SIZE), start, state->range);
-    curl_easy_setopt(state->curl, CURLOPT_RANGE, state->range);
+    cache = g_malloc0(sizeof(CURLDataCache));
+    cache->base_pos = acb->sector_num * SECTOR_SIZE;
+    cache->data_len = aio_bytes + s->readahead_size;
+    cache->write_pos = 0;
+    cache->data = g_malloc(cache->data_len);
 
+    QLIST_INSERT_HEAD(&s->acbs, acb, next);
+    snprintf(state->range, sizeof(state->range) - 1, "%zd-%zd", cache->base_pos,
+             cache->base_pos + cache->data_len);
+    DPRINTF("Reading range: %s\n", state->range);
+    curl_easy_setopt(state->curl, CURLOPT_RANGE, state->range);
+    QLIST_INSERT_HEAD(&s->cache, cache, next);
+    state->cache = cache;
+    cache->use_count++;
     curl_multi_add_handle(s->multi, state->curl);
+    /* kick off curl to start the action */
+    curl_multi_socket_action(s->multi, 0, CURL_SOCKET_TIMEOUT, &running);
+    return;
+
+err_release:
+    if (cache) {
+        if (cache->data) {
+            g_free(cache->data);
+            cache->data = NULL;
+        }
+        g_free(cache);
+        cache = NULL;
+    }
+    acb->common.cb(acb->common.opaque, -EIO);
+    qemu_aio_release(acb);
+    return;
+
 
 }
 
@@ -667,14 +677,18 @@ static void curl_close(BlockDriverState *bs)
             curl_easy_cleanup(s->states[i].curl);
             s->states[i].curl = NULL;
         }
-        if (s->states[i].orig_buf) {
-            g_free(s->states[i].orig_buf);
-            s->states[i].orig_buf = NULL;
-        }
     }
     if (s->multi)
         curl_multi_cleanup(s->multi);
 
+    while (!QLIST_EMPTY(&s->acbs)) {
+        CURLAIOCB *acb = QLIST_FIRST(&s->acbs);
+        acb->common.cb(acb->common.opaque, -EIO);
+        QLIST_REMOVE(acb, next);
+        qemu_aio_release(acb);
+        acb = NULL;
+    }
+
     while (!QLIST_EMPTY(&s->cache)) {
         CURLDataCache *cache = QLIST_FIRST(&s->cache);
         if (cache->data) {
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 08/12] curl: use list to store CURLState
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (6 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 07/12] curl: make use of CURLDataCache Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 09/12] curl: add cache quota Fam Zheng
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

Make it consistent to other structures to use QLIST to store CURLState.
It also simplifies initialization and releasing of data.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 82 +++++++++++++++++++++++++++---------------------------------
 1 file changed, 37 insertions(+), 45 deletions(-)

diff --git a/block/curl.c b/block/curl.c
index 5405485..9b18238 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -38,7 +38,6 @@
                    CURLPROTO_FTP | CURLPROTO_FTPS | \
                    CURLPROTO_TFTP)
 
-#define CURL_NUM_STATES 8
 #define SECTOR_SIZE     512
 #define READ_AHEAD_SIZE (256 * 1024)
 
@@ -64,14 +63,13 @@ typedef struct CURLDataCache {
     QLIST_ENTRY(CURLDataCache) next;
 } CURLDataCache;
 
-typedef struct CURLState
-{
+typedef struct CURLState {
     struct BDRVCURLState *s;
     CURL *curl;
     char range[128];
     char errmsg[CURL_ERROR_SIZE];
     CURLDataCache *cache;
-    char in_use;
+    QLIST_ENTRY(CURLState) next;
 } CURLState;
 
 typedef struct CURLSockInfo {
@@ -84,7 +82,7 @@ typedef struct CURLSockInfo {
 typedef struct BDRVCURLState {
     CURLM *multi;
     size_t len;
-    CURLState states[CURL_NUM_STATES];
+    QLIST_HEAD(, CURLState) curl_states;
     QLIST_HEAD(, CURLAIOCB) acbs;
     QLIST_HEAD(, CURLSockInfo) socks;
     char *url;
@@ -303,6 +301,9 @@ static void curl_fd_handler(void *arg)
                 }
 
                 curl_clean_state(state);
+                QLIST_REMOVE(state, next);
+                g_free(state);
+                state = NULL;
                 break;
             }
             default:
@@ -314,29 +315,17 @@ static void curl_fd_handler(void *arg)
 
 static CURLState *curl_init_state(BDRVCURLState *s)
 {
-    CURLState *state = NULL;
-    int i;
-
-    do {
-        for (i=0; i<CURL_NUM_STATES; i++) {
-            if (s->states[i].in_use)
-                continue;
-
-            state = &s->states[i];
-            state->in_use = 1;
-            break;
-        }
-        if (!state) {
-            g_usleep(100);
-        }
-    } while(!state);
-
-    if (state->curl)
-        goto has_curl;
+    CURLState *state;
 
+    state = g_malloc0(sizeof(CURLState));
+    state->s = s;
     state->curl = curl_easy_init();
-    if (!state->curl)
-        return NULL;
+    if (!state->curl) {
+        DPRINTF("CURL: curl_easy_init failed\n");
+        g_free(state);
+        state = NULL;
+        goto out;
+    }
     curl_easy_setopt(state->curl, CURLOPT_URL, s->url);
     curl_easy_setopt(state->curl, CURLOPT_TIMEOUT, 5);
     curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_read_cb);
@@ -362,19 +351,19 @@ static CURLState *curl_init_state(BDRVCURLState *s)
 #ifdef DEBUG_VERBOSE
     curl_easy_setopt(state->curl, CURLOPT_VERBOSE, 1);
 #endif
-
-has_curl:
-
-    state->s = s;
-
+out:
     return state;
 }
 
 static void curl_clean_state(CURLState *s)
 {
-    if (s->s->multi)
-        curl_multi_remove_handle(s->s->multi, s->curl);
-    s->in_use = 0;
+    if (s->curl) {
+        if (s->s->multi) {
+            curl_multi_remove_handle(s->s->multi, s->curl);
+        }
+        curl_easy_cleanup(s->curl);
+        s->curl = NULL;
+    }
     if (s->cache) {
         s->cache->use_count--;
         assert(s->cache->use_count >= 0);
@@ -483,6 +472,7 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     QLIST_INIT(&s->socks);
     QLIST_INIT(&s->cache);
     QLIST_INIT(&s->acbs);
+    QLIST_INIT(&s->curl_states);
 
     DPRINTF("CURL: Opening %s\n", file);
     s->url = g_strdup(file);
@@ -520,7 +510,8 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
 
     curl_clean_state(state);
     curl_easy_cleanup(state->curl);
-    state->curl = NULL;
+    g_free(state);
+    state = NULL;
 
     // Now we know the file exists and its size, so let's
     // initialize the multi interface!
@@ -610,6 +601,7 @@ static void curl_readv_bh_cb(void *p)
              cache->base_pos + cache->data_len);
     DPRINTF("Reading range: %s\n", state->range);
     curl_easy_setopt(state->curl, CURLOPT_RANGE, state->range);
+    QLIST_INSERT_HEAD(&s->curl_states, state, next);
     QLIST_INSERT_HEAD(&s->cache, cache, next);
     state->cache = cache;
     cache->use_count++;
@@ -631,7 +623,6 @@ err_release:
     qemu_aio_release(acb);
     return;
 
-
 }
 
 static BlockDriverAIOCB *curl_aio_readv(BlockDriverState *bs,
@@ -660,7 +651,6 @@ static BlockDriverAIOCB *curl_aio_readv(BlockDriverState *bs,
 static void curl_close(BlockDriverState *bs)
 {
     BDRVCURLState *s = bs->opaque;
-    int i;
 
     DPRINTF("CURL: Close\n");
 
@@ -670,16 +660,18 @@ static void curl_close(BlockDriverState *bs)
         s->timer = NULL;
     }
 
-    for (i=0; i<CURL_NUM_STATES; i++) {
-        if (s->states[i].in_use)
-            curl_clean_state(&s->states[i]);
-        if (s->states[i].curl) {
-            curl_easy_cleanup(s->states[i].curl);
-            s->states[i].curl = NULL;
-        }
+    while (!QLIST_EMPTY(&s->curl_states)) {
+        CURLState *state = QLIST_FIRST(&s->curl_states);
+        /* Remove and clean curl easy handles */
+        curl_clean_state(state);
+        QLIST_REMOVE(state, next);
+        g_free(state);
+        state = NULL;
     }
-    if (s->multi)
+
+    if (s->multi) {
         curl_multi_cleanup(s->multi);
+    }
 
     while (!QLIST_EMPTY(&s->acbs)) {
         CURLAIOCB *acb = QLIST_FIRST(&s->acbs);
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 09/12] curl: add cache quota.
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (7 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 08/12] curl: use list to store CURLState Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 10/12] curl: introduce ssl_no_cert runtime option Fam Zheng
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

Introduce a cache quota: BDRVCURLState.cache_quota.
When adding new CURLDataCache to BDRVCURLState, if number of existing
CURLDataCache is larger than CURL_CACHE_QUOTA, try to release some first
to limit the in memory cache size.

A least used entry is selected for releasing.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/block/curl.c b/block/curl.c
index 9b18238..6e893d0 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -40,6 +40,7 @@
 
 #define SECTOR_SIZE     512
 #define READ_AHEAD_SIZE (256 * 1024)
+#define CURL_CACHE_QUOTA 10
 
 struct BDRVCURLState;
 
@@ -90,6 +91,8 @@ typedef struct BDRVCURLState {
     QEMUTimer *timer;
     /* List of data cache ordered by access, freed from tail */
     QLIST_HEAD(, CURLDataCache) cache;
+    /* Threshold to release unused cache when cache list is longer than it */
+    int cache_quota;
     /* Whether http server accept range in header */
     bool accept_range;
 } BDRVCURLState;
@@ -526,6 +529,8 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
     curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running);
 
     qemu_opts_del(opts);
+    s->cache_quota = CURL_CACHE_QUOTA;
+
     return 0;
 
 out:
@@ -595,6 +600,27 @@ static void curl_readv_bh_cb(void *p)
     cache->data_len = aio_bytes + s->readahead_size;
     cache->write_pos = 0;
     cache->data = g_malloc(cache->data_len);
+    /* Try to release some cache */
+    while (s->cache_quota <= 0) {
+        CURLDataCache *p;
+        CURLDataCache *q = NULL;
+        assert(!QLIST_EMPTY(&s->cache));
+        for (p = QLIST_FIRST(&s->cache);
+             p; p = QLIST_NEXT(p, next)) {
+            if (p->use_count == 0) {
+                q = p;
+            }
+        }
+        if (!q) {
+            break;
+        }
+        QLIST_REMOVE(q, next);
+        g_free(q->data);
+        q->data = NULL;
+        g_free(q);
+        q = NULL;
+        s->cache_quota++;
+    }
 
     QLIST_INSERT_HEAD(&s->acbs, acb, next);
     snprintf(state->range, sizeof(state->range) - 1, "%zd-%zd", cache->base_pos,
@@ -605,6 +631,7 @@ static void curl_readv_bh_cb(void *p)
     QLIST_INSERT_HEAD(&s->cache, cache, next);
     state->cache = cache;
     cache->use_count++;
+    s->cache_quota--;
     curl_multi_add_handle(s->multi, state->curl);
     /* kick off curl to start the action */
     curl_multi_socket_action(s->multi, 0, CURL_SOCKET_TIMEOUT, &running);
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 10/12] curl: introduce ssl_no_cert runtime option.
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (8 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 09/12] curl: add cache quota Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 11/12] block/curl.c: Refuse to open the handle for writes Fam Zheng
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

Added an option to let curl disable ssl certificate check.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/block/curl.c b/block/curl.c
index 6e893d0..e067417 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -95,6 +95,8 @@ typedef struct BDRVCURLState {
     int cache_quota;
     /* Whether http server accept range in header */
     bool accept_range;
+    /* Whether certificated ssl only */
+    bool ssl_no_cert;
 } BDRVCURLState;
 
 static void curl_clean_state(CURLState *s);
@@ -339,6 +341,8 @@ static CURLState *curl_init_state(BDRVCURLState *s)
     curl_easy_setopt(state->curl, CURLOPT_NOSIGNAL, 1);
     curl_easy_setopt(state->curl, CURLOPT_ERRORBUFFER, state->errmsg);
     curl_easy_setopt(state->curl, CURLOPT_FAILONERROR, 1);
+    curl_easy_setopt(state->curl, CURLOPT_SSL_VERIFYPEER,
+                     s->ssl_no_cert ? 0 : 1);
 
     /* Restrict supported protocols to avoid security issues in the more
      * obscure protocols.  For example, do not allow POP3/SMTP/IMAP see
@@ -429,7 +433,12 @@ static QemuOptsList runtime_opts = {
             .type = QEMU_OPT_SIZE,
             .help = "Readahead size",
         },
-        { /* end of list */ }
+        {
+            .name = "ssl_no_cert",
+            .type = QEMU_OPT_BOOL,
+            .help = "SSL certificate check",
+        },
+        { /* End of list */ }
     },
 };
 
@@ -467,6 +476,7 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
         goto out_noclean;
     }
 
+    s->ssl_no_cert = qemu_opt_get_bool(opts, "ssl_no_cert", true);
     if (!inited) {
         curl_global_init(CURL_GLOBAL_ALL);
         inited = 1;
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 11/12] block/curl.c: Refuse to open the handle for writes.
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (9 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 10/12] curl: introduce ssl_no_cert runtime option Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 12/12] curl: set s->url to NULL after free Fam Zheng
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha

From: "Richard W.M. Jones" <rjones@redhat.com>

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/block/curl.c b/block/curl.c
index e067417..bce2e8a 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -454,6 +454,10 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags)
 
     static int inited = 0;
 
+    if (flags & BDRV_O_RDWR) {
+        return -ENOTSUP;
+    }
+
     opts = qemu_opts_create_nofail(&runtime_opts);
     qemu_opts_absorb_qdict(opts, options, &local_err);
     if (error_is_set(&local_err)) {
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* [Qemu-devel] [PATCH v6 12/12] curl: set s->url to NULL after free.
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (10 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 11/12] block/curl.c: Refuse to open the handle for writes Fam Zheng
@ 2013-05-24  5:37 ` Fam Zheng
  2013-05-24  8:07 ` [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Richard W.M. Jones
  2013-05-28 10:35 ` Richard W.M. Jones
  13 siblings, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-24  5:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Fam Zheng, rjones, stefanha


Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/curl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/curl.c b/block/curl.c
index bce2e8a..50c7188 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -741,6 +741,7 @@ static void curl_close(BlockDriverState *bs)
     }
 
     g_free(s->url);
+    s->url = NULL;
 }
 
 static int64_t curl_getlength(BlockDriverState *bs)
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (11 preceding siblings ...)
  2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 12/12] curl: set s->url to NULL after free Fam Zheng
@ 2013-05-24  8:07 ` Richard W.M. Jones
  2013-05-27  2:25   ` Fam Zheng
  2013-05-28 10:35 ` Richard W.M. Jones
  13 siblings, 1 reply; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-24  8:07 UTC (permalink / raw)
  To: Fam Zheng; +Cc: kwolf, jcody, qemu-devel, stefanha

On Fri, May 24, 2013 at 01:36:55PM +0800, Fam Zheng wrote:
> Changes from v5:
>   05: Rename bs to s for BDRVCURLState.
>   06: Use int64_t for offsets.
>       Fix printf format string.
>       Move introducing of use_count to 07.
>   07: Drop explicit cast.
>       Use int64_t for offsets.
>       Use_count moved here.
>   08: Remove duplicated.
>       Move s->url = NULL to separate patch.
>   09: Fix while(0);
>   12: Added:
>       curl: set s->url to NULL after free.

This patch is definitely not working.  The guest sees loads of
disk errors like this:

[   30.880265] sd 2:0:0:0: [sda]  
[   30.880265] Add. Sense: I/O process terminated
[   30.880265] sd 2:0:0:0: [sda] CDB: 
[   30.880265] Read(10): 28 00 00 bf b0 87 00 00 01 00
[   32.030702] sd 2:0:0:0: [sda]  
[   32.031663] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   32.031663] sd 2:0:0:0: [sda]  
[   32.031663] Sense Key : Aborted Command [current] 
[   32.031663] sd 2:0:0:0: [sda]  
[   32.031663] Add. Sense: I/O process terminated
[   32.031663] sd 2:0:0:0: [sda] CDB: 
[   32.031663] Read(10): 28 00 00 00 08 46 00 00 01 00
[   32.031663] blk_update_request: 32 callbacks suppressed
[   32.031663] end_request: I/O error, dev sda, sector 2118
[   32.031663] quiet_error: 46 callbacks suppressed
[   32.031663] Buffer I/O error on device sda1, logical block 2055
[   32.031663] sd 2:0:0:0: [sda]  
[   32.031663] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   32.031663] sd 2:0:0:0: [sda]  
[   32.031663] Sense Key : Aborted Command [current] 
[   32.031663] sd 2:0:0:0: [sda]  
[   32.031663] Add. Sense: I/O process terminated
[   32.031663] sd 2:0:0:0: [sda] CDB: 
[   32.031663] Read(10): 28 00 00 00 08 45 00 00 01 00
[   32.031663] end_request: I/O error, dev sda, sector 2117
[   32.031663] Buffer I/O error on device sda1, logical block 2054
[   32.031663] sd 2:0:0:0: [sda]  

(qemu doesn't crash)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-24  8:07 ` [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Richard W.M. Jones
@ 2013-05-27  2:25   ` Fam Zheng
  2013-05-27 11:57     ` Richard W.M. Jones
  0 siblings, 1 reply; 29+ messages in thread
From: Fam Zheng @ 2013-05-27  2:25 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: kwolf, jcody, qemu-devel, stefanha

On Fri, 05/24 09:07, Richard W.M. Jones wrote:
> On Fri, May 24, 2013 at 01:36:55PM +0800, Fam Zheng wrote:
> > Changes from v5:
> >   05: Rename bs to s for BDRVCURLState.
> >   06: Use int64_t for offsets.
> >       Fix printf format string.
> >       Move introducing of use_count to 07.
> >   07: Drop explicit cast.
> >       Use int64_t for offsets.
> >       Use_count moved here.
> >   08: Remove duplicated.
> >       Move s->url = NULL to separate patch.
> >   09: Fix while(0);
> >   12: Added:
> >       curl: set s->url to NULL after free.
> 
> This patch is definitely not working.  The guest sees loads of
> disk errors like this:
> 
> [   30.880265] sd 2:0:0:0: [sda]  
> [   30.880265] Add. Sense: I/O process terminated
> [   30.880265] sd 2:0:0:0: [sda] CDB: 
> [   30.880265] Read(10): 28 00 00 bf b0 87 00 00 01 00
> [   32.030702] sd 2:0:0:0: [sda]  
> [   32.031663] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> [   32.031663] sd 2:0:0:0: [sda]  
> [   32.031663] Sense Key : Aborted Command [current] 
> [   32.031663] sd 2:0:0:0: [sda]  
> [   32.031663] Add. Sense: I/O process terminated
> [   32.031663] sd 2:0:0:0: [sda] CDB: 
> [   32.031663] Read(10): 28 00 00 00 08 46 00 00 01 00
> [   32.031663] blk_update_request: 32 callbacks suppressed
> [   32.031663] end_request: I/O error, dev sda, sector 2118
> [   32.031663] quiet_error: 46 callbacks suppressed
> [   32.031663] Buffer I/O error on device sda1, logical block 2055
> [   32.031663] sd 2:0:0:0: [sda]  
> [   32.031663] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> [   32.031663] sd 2:0:0:0: [sda]  
> [   32.031663] Sense Key : Aborted Command [current] 
> [   32.031663] sd 2:0:0:0: [sda]  
> [   32.031663] Add. Sense: I/O process terminated
> [   32.031663] sd 2:0:0:0: [sda] CDB: 
> [   32.031663] Read(10): 28 00 00 00 08 45 00 00 01 00
> [   32.031663] end_request: I/O error, dev sda, sector 2117
> [   32.031663] Buffer I/O error on device sda1, logical block 2054
> [   32.031663] sd 2:0:0:0: [sda]  
> 

Rich, are you testing with libguestfs or qemu? Since I can't get
libguestfs run with your patch to refuse writable open.

Can you post your command?

-- 
Fam

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-27  2:25   ` Fam Zheng
@ 2013-05-27 11:57     ` Richard W.M. Jones
  2013-05-28  7:30       ` Fam Zheng
  0 siblings, 1 reply; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-27 11:57 UTC (permalink / raw)
  To: qemu-devel, stefanha, kwolf, jcody

[-- Attachment #1: Type: text/plain, Size: 2718 bytes --]

On Mon, May 27, 2013 at 10:25:21AM +0800, Fam Zheng wrote:
> On Fri, 05/24 09:07, Richard W.M. Jones wrote:
> > On Fri, May 24, 2013 at 01:36:55PM +0800, Fam Zheng wrote:
> > > Changes from v5:
> > >   05: Rename bs to s for BDRVCURLState.
> > >   06: Use int64_t for offsets.
> > >       Fix printf format string.
> > >       Move introducing of use_count to 07.
> > >   07: Drop explicit cast.
> > >       Use int64_t for offsets.
> > >       Use_count moved here.
> > >   08: Remove duplicated.
> > >       Move s->url = NULL to separate patch.
> > >   09: Fix while(0);
> > >   12: Added:
> > >       curl: set s->url to NULL after free.
> > 
> > This patch is definitely not working.  The guest sees loads of
> > disk errors like this:
> > 
> > [   30.880265] sd 2:0:0:0: [sda]  
> > [   30.880265] Add. Sense: I/O process terminated
> > [   30.880265] sd 2:0:0:0: [sda] CDB: 
> > [   30.880265] Read(10): 28 00 00 bf b0 87 00 00 01 00
> > [   32.030702] sd 2:0:0:0: [sda]  
> > [   32.031663] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> > [   32.031663] sd 2:0:0:0: [sda]  
> > [   32.031663] Sense Key : Aborted Command [current] 
> > [   32.031663] sd 2:0:0:0: [sda]  
> > [   32.031663] Add. Sense: I/O process terminated
> > [   32.031663] sd 2:0:0:0: [sda] CDB: 
> > [   32.031663] Read(10): 28 00 00 00 08 46 00 00 01 00
> > [   32.031663] blk_update_request: 32 callbacks suppressed
> > [   32.031663] end_request: I/O error, dev sda, sector 2118
> > [   32.031663] quiet_error: 46 callbacks suppressed
> > [   32.031663] Buffer I/O error on device sda1, logical block 2055
> > [   32.031663] sd 2:0:0:0: [sda]  
> > [   32.031663] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> > [   32.031663] sd 2:0:0:0: [sda]  
> > [   32.031663] Sense Key : Aborted Command [current] 
> > [   32.031663] sd 2:0:0:0: [sda]  
> > [   32.031663] Add. Sense: I/O process terminated
> > [   32.031663] sd 2:0:0:0: [sda] CDB: 
> > [   32.031663] Read(10): 28 00 00 00 08 45 00 00 01 00
> > [   32.031663] end_request: I/O error, dev sda, sector 2117
> > [   32.031663] Buffer I/O error on device sda1, logical block 2054
> > [   32.031663] sd 2:0:0:0: [sda]  
> > 
> 
> Rich, are you testing with libguestfs or qemu? Since I can't get
> libguestfs run with your patch to refuse writable open.

You need to add the --ro option and make sure LIBGUESTFS_BACKEND=direct.

> Can you post your command?

Sure, I'm using the attached test script.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)

[-- Attachment #2: test.sh --]
[-- Type: application/x-sh, Size: 771 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-27 11:57     ` Richard W.M. Jones
@ 2013-05-28  7:30       ` Fam Zheng
  2013-05-28  7:47         ` Richard W.M. Jones
  0 siblings, 1 reply; 29+ messages in thread
From: Fam Zheng @ 2013-05-28  7:30 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: kwolf, jcody, qemu-devel, stefanha

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

> 
> Sure, I'm using the attached test script.

I used your script to test, but I don't see errors as you posted,
attached the output. The only difference is that I put libguestfs in
different directory with you and I'm using a linux guest image instead
of windows xp. Do I need to get a windows image to reproduce?

-- 
Fam

[-- Attachment #2: libguestfs.log --]
[-- Type: text/plain, Size: 37396 bytes --]

libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_tmpdir "/home/fam/3rd/libguestfs/tmp"
libguestfs: trace: set_tmpdir = 0
libguestfs: trace: set_cachedir "/home/fam/3rd/libguestfs/tmp"
libguestfs: trace: set_cachedir = 0
libguestfs: trace: set_path "/home/fam/3rd/libguestfs/appliance"
libguestfs: trace: set_path = 0
libguestfs: trace: set_qemu "/home/fam/bin/qemu.wrapper"
libguestfs: trace: set_qemu = 0
libguestfs: trace: set_backend "direct"
libguestfs: trace: set_backend = 0
libguestfs: create: flags = 0, handle = 0x1154ca0, program = guestfish
libguestfs: trace: add_drive "/vm/arch.raw" "readonly:true" "format:raw" "protocol:http" "server:tcp:localhost"
libguestfs: trace: add_drive = 0
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/home/fam/3rd/libguestfs/tmp"
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/home/fam/3rd/libguestfs/tmp/libguestfsryyxc3
libguestfs: launch: umask=0022
libguestfs: launch: euid=1000
libguestfs: command: run: supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ /home/fam/3rd/libguestfs/appliance/supermin.d
libguestfs: command: run: \ x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /home/fam/3rd/libguestfs/appliance/supermin.d
checking modpath /lib/modules/3.9.2-1-ARCH is a directory
picked vmlinuz-linux because modpath /lib/modules/3.9.2-1-ARCH exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /home/fam/3rd/libguestfs/appliance/supermin.d
supermin helper [00000ms] visiting /home/fam/3rd/libguestfs/appliance/supermin.d/base.img
supermin helper [00000ms] visiting /home/fam/3rd/libguestfs/appliance/supermin.d/daemon.img
supermin helper [00000ms] visiting /home/fam/3rd/libguestfs/appliance/supermin.d/hostfiles
supermin helper [00060ms] visiting /home/fam/3rd/libguestfs/appliance/supermin.d/init.img
supermin helper [00060ms] visiting /home/fam/3rd/libguestfs/appliance/supermin.d/udev-rules.img
supermin helper [00060ms] adding kernel modules
supermin helper [00105ms] finished creating appliance
libguestfs: checksum of existing appliance: 7b304f39af320c53e919d598226561b4cfd1b96cc5dedb04a5eecd72191c246c
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/home/fam/3rd/libguestfs/tmp"
libguestfs: [00107ms] begin testing qemu features
libguestfs: command: run: /home/fam/bin/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
/home/fam/qemu/x86_64-softmmu/qemu-system-x86_64: /home/fam/3rd/curl/lib/.libs/libcurl.so.4: no version information available (required by /home/fam/qemu/x86_64-softmmu/qemu-system-x86_64)
libguestfs: command: run: /home/fam/bin/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -version
/home/fam/qemu/x86_64-softmmu/qemu-system-x86_64: /home/fam/3rd/curl/lib/.libs/libcurl.so.4: no version information available (required by /home/fam/qemu/x86_64-softmmu/qemu-system-x86_64)
libguestfs: qemu version 1.4
libguestfs: command: run: /home/fam/bin/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00147ms] finished testing qemu features
[00147ms] /home/fam/bin/qemu.wrapper \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -device virtio-scsi-pci,id=scsi \
    -drive file=http://localhost/vm/arch.raw,snapshot=on,format=raw,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/home/fam/3rd/libguestfs/tmp/.guestfs-1000/root.10296,snapshot=on,id=appliance,if=none,cache=unsafe \
    -device scsi-hd,drive=appliance \
    -machine accel=kvm:tcg \
    -m 500 \
    -no-reboot \
    -no-hpet \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/home/fam/3rd/libguestfs/tmp/libguestfsryyxc3/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -kernel /home/fam/3rd/libguestfs/tmp/.guestfs-1000/kernel.10296 \
    -initrd /home/fam/3rd/libguestfs/tmp/.guestfs-1000/initrd.10296 \
    -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color'/home/fam/qemu/x86_64-softmmu/qemu-system-x86_64: /home/fam/3rd/curl/lib/.libs/libcurl.so.4: no version information available (required by /home/fam/qemu/x86_64-softmmu/qemu-system-x86_64)
failed to initialize KVM: Device or resource busy
Back to tcg accelerator.
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 11/03/11
SGABIOS $Id$ (pbonzini@yakj.usersys.redhat.com) Thu Nov  3 13:33:51 UTC 2011
Term: 80x24
4 0
\x1b[2J
SeaBIOS (version rel-1.7.2.1-0-g88cb66e-20130228_091731-rincewind.home.kraxel.org)


Booting from ROM...


Probing EDD (edd=off to disable)... ok

\x1b[2J[    0.651774] Failed to access perfctr msr (MSR c0010004 is 0)
supermin: mounting /proc
supermin: uptime: 1.71 0.53
supermin: ext2 mini initrd starting up: 4.1.1 zlib
supermin: cmdline: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
supermin: mounting /sys
supermin: internal insmod libcrc32c.ko.gz
insmod: init_module: libcrc32c.ko.gz: Unknown symbol in module
supermin: internal insmod crc32c-intel.ko.gz
insmod: init_module: crc32c-intel.ko.gz: No such device
supermin: internal insmod crc32-pclmul.ko.gz
insmod: init_module: crc32-pclmul.ko.gz: No such device
supermin: internal insmod crc16.ko.gz
supermin: internal insmod crc-itu-t.ko.gz
supermin: internal insmod crc32c.ko.gz
supermin: internal insmod crc32.ko.gz
supermin: internal insmod crc-ccitt.ko.gz
supermin: internal insmod crc-t10dif.ko.gz
supermin: internal insmod crc7.ko.gz
supermin: internal insmod crc8.ko.gz
supermin: internal insmod mbcache.ko.gz
supermin: internal insmod scsi_mod.ko.gz
supermin: internal insmod cdrom.ko.gz
supermin: internal insmod sr_mod.ko.gz
supermin: internal insmod libata.ko.gz
supermin: internal insmod ata_piix.ko.gz
supermin: internal insmod scsi_transport_spi.ko.gz
supermin: internal insmod sym53c8xx.ko.gz
supermin: internal insmod sd_mod.ko.gz
supermin: internal insmod rfkill.ko.gz
supermin: internal insmod sparse-keymap.ko.gz
supermin: internal insmod ideapad-laptop.ko.gz
insmod: init_module: ideapad-laptop.ko.gz: No such device
supermin: internal insmod virtio.ko.gz
supermin: internal insmod virtio_ring.ko.gz
supermin: internal insmod virtio-rng.ko.gz
supermin: internal insmod virtio_console.ko.gz
supermin: internal insmod virtio_blk.ko.gz
supermin: internal insmod virtio_net.ko.gz
supermin: internal insmod virtio_mmio.ko.gz
supermin: internal insmod virtio_pci.ko.gz
supermin: internal insmod virtio_balloon.ko.gz
supermin: internal insmod virtio_scsi.ko.gz
supermin: internal insmod jbd2.ko.gz
supermin: internal insmod ext4.ko.gz
supermin: picked /sys/block/sdb/dev as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
supermin: chroot
Starting /init script ...
Cannot find device "eth0"
Cannot find device "eth0"
RTNETLINK answers: Network is unreachable
/init: line 99: mdadm: command not found
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  Reading all physical volumes.  This may take a while...
  No volume groups found
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  No volume groups found
/init: line 109: ldmtool: command not found
/init: line 112: /sys/block/vd*/queue/rotational: No such file or directory
/dev:
total 0
crw------- 1 root root  10, 235 May 28 07:22 autofs
drwxr-xr-x 2 root root      120 May 28 07:22 block
drwxr-xr-x 2 root root       80 May 28 07:22 bsg
crw------- 1 root root  10, 234 May 28 07:22 btrfs-control
drwxr-xr-x 2 root root     2100 May 28 07:22 char
crw------- 1 root root   5,   1 May 28 07:22 console
lrwxrwxrwx 1 root root       11 May 28 07:22 core -> /proc/kcore
drwxr-xr-x 2 root root       60 May 28 07:22 cpu
crw------- 1 root root  10,  62 May 28 07:22 cpu_dma_latency
drwxr-xr-x 6 root root      120 May 28 07:22 disk
lrwxrwxrwx 1 root root       13 May 28 07:22 fd -> /proc/self/fd
crw-rw-rw- 1 root root   1,   7 May 28 07:22 full
crw-rw-rw- 1 root root  10, 229 May 28 07:22 fuse
drwxr-xr-x 3 root root      160 May 28 07:22 input
crw-r--r-- 1 root root   1,  11 May 28 07:22 kmsg
crw------- 1 root root  10, 232 May 28 07:22 kvm
crw------- 1 root root  10, 237 May 28 07:22 loop-control
drwxr-xr-x 2 root root       60 May 28 07:22 mapper
crw------- 1 root root  10, 227 May 28 07:22 mcelog
crw------- 1 root root   1,   1 May 28 07:22 mem
drwxr-xr-x 2 root root       60 May 28 07:22 net
crw------- 1 root root  10,  61 May 28 07:22 network_latency
crw------- 1 root root  10,  60 May 28 07:22 network_throughput
crw-rw-rw- 1 root root   1,   3 May 28 07:22 null
crw------- 1 root root   1,   4 May 28 07:22 port
crw------- 1 root root 108,   0 May 28 07:22 ppp
crw------- 1 root root  10,   1 May 28 07:22 psaux
crw-rw-rw- 1 root root   5,   2 May 28 07:22 ptmx
crw-rw-rw- 1 root root   1,   8 May 28 07:22 random
crw------- 1 root root  10,  59 May 28 07:22 rfkill
lrwxrwxrwx 1 root root        4 May 28 07:22 rtc -> rtc0
crw------- 1 root root 254,   0 May 28 07:22 rtc0
brw------- 1 root root   8,   0 May 28 07:22 sda
brw------- 1 root root   8,   1 May 28 07:22 sda1
brw------- 1 root root   8,   2 May 28 07:22 sda2
brw------- 1 root root   8,  16 May 28 07:22 sdb
crw------- 1 root root  10, 231 May 28 07:22 snapshot
drwxr-xr-x 2 root root       80 May 28 07:22 snd
lrwxrwxrwx 1 root root       15 May 28 07:22 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root       15 May 28 07:22 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root       15 May 28 07:22 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root   5,   0 May 28 07:22 tty
crw------- 1 root root   4,   0 May 28 07:22 tty0
crw------- 1 root root   4,   1 May 28 07:22 tty1
crw------- 1 root root   4,  10 May 28 07:22 tty10
crw------- 1 root root   4,  11 May 28 07:22 tty11
crw------- 1 root root   4,  12 May 28 07:22 tty12
crw------- 1 root root   4,  13 May 28 07:22 tty13
crw------- 1 root root   4,  14 May 28 07:22 tty14
crw------- 1 root root   4,  15 May 28 07:22 tty15
crw------- 1 root root   4,  16 May 28 07:22 tty16
crw------- 1 root root   4,  17 May 28 07:22 tty17
crw------- 1 root root   4,  18 May 28 07:22 tty18
crw------- 1 root root   4,  19 May 28 07:22 tty19
crw------- 1 root root   4,   2 May 28 07:22 tty2
crw------- 1 root root   4,  20 May 28 07:22 tty20
crw------- 1 root root   4,  21 May 28 07:22 tty21
crw------- 1 root root   4,  22 May 28 07:22 tty22
crw------- 1 root root   4,  23 May 28 07:22 tty23
crw------- 1 root root   4,  24 May 28 07:22 tty24
crw------- 1 root root   4,  25 May 28 07:22 tty25
crw------- 1 root root   4,  26 May 28 07:22 tty26
crw------- 1 root root   4,  27 May 28 07:22 tty27
crw------- 1 root root   4,  28 May 28 07:22 tty28
crw------- 1 root root   4,  29 May 28 07:22 tty29
crw------- 1 root root   4,   3 May 28 07:22 tty3
crw------- 1 root root   4,  30 May 28 07:22 tty30
crw------- 1 root root   4,  31 May 28 07:22 tty31
crw------- 1 root root   4,  32 May 28 07:22 tty32
crw------- 1 root root   4,  33 May 28 07:22 tty33
crw------- 1 root root   4,  34 May 28 07:22 tty34
crw------- 1 root root   4,  35 May 28 07:22 tty35
crw------- 1 root root   4,  36 May 28 07:22 tty36
crw------- 1 root root   4,  37 May 28 07:22 tty37
crw------- 1 root root   4,  38 May 28 07:22 tty38
crw------- 1 root root   4,  39 May 28 07:22 tty39
crw------- 1 root root   4,   4 May 28 07:22 tty4
crw------- 1 root root   4,  40 May 28 07:22 tty40
crw------- 1 root root   4,  41 May 28 07:22 tty41
crw------- 1 root root   4,  42 May 28 07:22 tty42
crw------- 1 root root   4,  43 May 28 07:22 tty43
crw------- 1 root root   4,  44 May 28 07:22 tty44
crw------- 1 root root   4,  45 May 28 07:22 tty45
crw------- 1 root root   4,  46 May 28 07:22 tty46
crw------- 1 root root   4,  47 May 28 07:22 tty47
crw------- 1 root root   4,  48 May 28 07:22 tty48
crw------- 1 root root   4,  49 May 28 07:22 tty49
crw------- 1 root root   4,   5 May 28 07:22 tty5
crw------- 1 root root   4,  50 May 28 07:22 tty50
crw------- 1 root root   4,  51 May 28 07:22 tty51
crw------- 1 root root   4,  52 May 28 07:22 tty52
crw------- 1 root root   4,  53 May 28 07:22 tty53
crw------- 1 root root   4,  54 May 28 07:22 tty54
crw------- 1 root root   4,  55 May 28 07:22 tty55
crw------- 1 root root   4,  56 May 28 07:22 tty56
crw------- 1 root root   4,  57 May 28 07:22 tty57
crw------- 1 root root   4,  58 May 28 07:22 tty58
crw------- 1 root root   4,  59 May 28 07:22 tty59
crw------- 1 root root   4,   6 May 28 07:22 tty6
crw------- 1 root root   4,  60 May 28 07:22 tty60
crw------- 1 root root   4,  61 May 28 07:22 tty61
crw------- 1 root root   4,  62 May 28 07:22 tty62
crw------- 1 root root   4,  63 May 28 07:22 tty63
crw------- 1 root root   4,   7 May 28 07:22 tty7
crw------- 1 root root   4,   8 May 28 07:22 tty8
crw------- 1 root root   4,   9 May 28 07:22 tty9
crw------- 1 root root   4,  64 May 28 07:22 ttyS0
crw------- 1 root root   4,  65 May 28 07:22 ttyS1
crw------- 1 root root   4,  66 May 28 07:22 ttyS2
crw------- 1 root root   4,  67 May 28 07:22 ttyS3
crw------- 1 root root  10, 223 May 28 07:22 uinput
crw-rw-rw- 1 root root   1,   9 May 28 07:22 urandom
crw------- 1 root root   7,   0 May 28 07:22 vcs
crw------- 1 root root   7,   1 May 28 07:22 vcs1
crw------- 1 root root   7, 128 May 28 07:22 vcsa
crw------- 1 root root   7, 129 May 28 07:22 vcsa1
crw------- 1 root root  10,  63 May 28 07:22 vga_arbiter
crw------- 1 root root  10, 238 May 28 07:22 vhost-net
drwxr-xr-x 2 root root       60 May 28 07:22 virtio-ports
crw------- 1 root root 251,   1 May 28 07:22 vport1p1
crw-rw-rw- 1 root root   1,   5 May 28 07:22 zero

/dev/block:
total 0
lrwxrwxrwx 1 root root 6 May 28 07:22 8:0 -> ../sda
lrwxrwxrwx 1 root root 7 May 28 07:22 8:1 -> ../sda1
lrwxrwxrwx 1 root root 6 May 28 07:22 8:16 -> ../sdb
lrwxrwxrwx 1 root root 7 May 28 07:22 8:2 -> ../sda2

/dev/bsg:
total 0
crw------- 1 root root 252, 0 May 28 07:22 2:0:0:0
crw------- 1 root root 252, 1 May 28 07:22 2:0:1:0

/dev/char:
total 0
lrwxrwxrwx 1 root root  8 May 28 07:22 10:1 -> ../psaux
lrwxrwxrwx 1 root root  9 May 28 07:22 10:227 -> ../mcelog
lrwxrwxrwx 1 root root 11 May 28 07:22 10:231 -> ../snapshot
lrwxrwxrwx 1 root root  6 May 28 07:22 10:232 -> ../kvm
lrwxrwxrwx 1 root root  9 May 28 07:22 10:235 -> ../autofs
lrwxrwxrwx 1 root root 17 May 28 07:22 10:236 -> ../mapper/control
lrwxrwxrwx 1 root root  9 May 28 07:22 10:59 -> ../rfkill
lrwxrwxrwx 1 root root 21 May 28 07:22 10:60 -> ../network_throughput
lrwxrwxrwx 1 root root 18 May 28 07:22 10:61 -> ../network_latency
lrwxrwxrwx 1 root root 18 May 28 07:22 10:62 -> ../cpu_dma_latency
lrwxrwxrwx 1 root root 14 May 28 07:22 10:63 -> ../vga_arbiter
lrwxrwxrwx 1 root root 15 May 28 07:22 13:32 -> ../input/mouse0
lrwxrwxrwx 1 root root 13 May 28 07:22 13:63 -> ../input/mice
lrwxrwxrwx 1 root root 15 May 28 07:22 13:64 -> ../input/event0
lrwxrwxrwx 1 root root 15 May 28 07:22 13:65 -> ../input/event1
lrwxrwxrwx 1 root root 15 May 28 07:22 13:66 -> ../input/event2
lrwxrwxrwx 1 root root  6 May 28 07:22 1:1 -> ../mem
lrwxrwxrwx 1 root root  7 May 28 07:22 1:11 -> ../kmsg
lrwxrwxrwx 1 root root  7 May 28 07:22 1:3 -> ../null
lrwxrwxrwx 1 root root  7 May 28 07:22 1:4 -> ../port
lrwxrwxrwx 1 root root  7 May 28 07:22 1:5 -> ../zero
lrwxrwxrwx 1 root root  7 May 28 07:22 1:7 -> ../full
lrwxrwxrwx 1 root root  9 May 28 07:22 1:8 -> ../random
lrwxrwxrwx 1 root root 10 May 28 07:22 1:9 -> ../urandom
lrwxrwxrwx 1 root root 11 May 28 07:22 251:1 -> ../vport1p1
lrwxrwxrwx 1 root root 14 May 28 07:22 252:0 -> ../bsg/2:0:0:0
lrwxrwxrwx 1 root root 14 May 28 07:22 252:1 -> ../bsg/2:0:1:0
lrwxrwxrwx 1 root root  7 May 28 07:22 254:0 -> ../rtc0
lrwxrwxrwx 1 root root  7 May 28 07:22 4:0 -> ../tty0
lrwxrwxrwx 1 root root  7 May 28 07:22 4:1 -> ../tty1
lrwxrwxrwx 1 root root  8 May 28 07:22 4:10 -> ../tty10
lrwxrwxrwx 1 root root  8 May 28 07:22 4:11 -> ../tty11
lrwxrwxrwx 1 root root  8 May 28 07:22 4:12 -> ../tty12
lrwxrwxrwx 1 root root  8 May 28 07:22 4:13 -> ../tty13
lrwxrwxrwx 1 root root  8 May 28 07:22 4:14 -> ../tty14
lrwxrwxrwx 1 root root  8 May 28 07:22 4:15 -> ../tty15
lrwxrwxrwx 1 root root  8 May 28 07:22 4:16 -> ../tty16
lrwxrwxrwx 1 root root  8 May 28 07:22 4:17 -> ../tty17
lrwxrwxrwx 1 root root  8 May 28 07:22 4:18 -> ../tty18
lrwxrwxrwx 1 root root  8 May 28 07:22 4:19 -> ../tty19
lrwxrwxrwx 1 root root  7 May 28 07:22 4:2 -> ../tty2
lrwxrwxrwx 1 root root  8 May 28 07:22 4:20 -> ../tty20
lrwxrwxrwx 1 root root  8 May 28 07:22 4:21 -> ../tty21
lrwxrwxrwx 1 root root  8 May 28 07:22 4:22 -> ../tty22
lrwxrwxrwx 1 root root  8 May 28 07:22 4:23 -> ../tty23
lrwxrwxrwx 1 root root  8 May 28 07:22 4:24 -> ../tty24
lrwxrwxrwx 1 root root  8 May 28 07:22 4:25 -> ../tty25
lrwxrwxrwx 1 root root  8 May 28 07:22 4:26 -> ../tty26
lrwxrwxrwx 1 root root  8 May 28 07:22 4:27 -> ../tty27
lrwxrwxrwx 1 root root  8 May 28 07:22 4:28 -> ../tty28
lrwxrwxrwx 1 root root  8 May 28 07:22 4:29 -> ../tty29
lrwxrwxrwx 1 root root  7 May 28 07:22 4:3 -> ../tty3
lrwxrwxrwx 1 root root  8 May 28 07:22 4:30 -> ../tty30
lrwxrwxrwx 1 root root  8 May 28 07:22 4:31 -> ../tty31
lrwxrwxrwx 1 root root  8 May 28 07:22 4:32 -> ../tty32
lrwxrwxrwx 1 root root  8 May 28 07:22 4:33 -> ../tty33
lrwxrwxrwx 1 root root  8 May 28 07:22 4:34 -> ../tty34
lrwxrwxrwx 1 root root  8 May 28 07:22 4:35 -> ../tty35
lrwxrwxrwx 1 root root  8 May 28 07:22 4:36 -> ../tty36
lrwxrwxrwx 1 root root  8 May 28 07:22 4:37 -> ../tty37
lrwxrwxrwx 1 root root  8 May 28 07:22 4:38 -> ../tty38
lrwxrwxrwx 1 root root  8 May 28 07:22 4:39 -> ../tty39
lrwxrwxrwx 1 root root  7 May 28 07:22 4:4 -> ../tty4
lrwxrwxrwx 1 root root  8 May 28 07:22 4:40 -> ../tty40
lrwxrwxrwx 1 root root  8 May 28 07:22 4:41 -> ../tty41
lrwxrwxrwx 1 root root  8 May 28 07:22 4:42 -> ../tty42
lrwxrwxrwx 1 root root  8 May 28 07:22 4:43 -> ../tty43
lrwxrwxrwx 1 root root  8 May 28 07:22 4:44 -> ../tty44
lrwxrwxrwx 1 root root  8 May 28 07:22 4:45 -> ../tty45
lrwxrwxrwx 1 root root  8 May 28 07:22 4:46 -> ../tty46
lrwxrwxrwx 1 root root  8 May 28 07:22 4:47 -> ../tty47
lrwxrwxrwx 1 root root  8 May 28 07:22 4:48 -> ../tty48
lrwxrwxrwx 1 root root  8 May 28 07:22 4:49 -> ../tty49
lrwxrwxrwx 1 root root  7 May 28 07:22 4:5 -> ../tty5
lrwxrwxrwx 1 root root  8 May 28 07:22 4:50 -> ../tty50
lrwxrwxrwx 1 root root  8 May 28 07:22 4:51 -> ../tty51
lrwxrwxrwx 1 root root  8 May 28 07:22 4:52 -> ../tty52
lrwxrwxrwx 1 root root  8 May 28 07:22 4:53 -> ../tty53
lrwxrwxrwx 1 root root  8 May 28 07:22 4:54 -> ../tty54
lrwxrwxrwx 1 root root  8 May 28 07:22 4:55 -> ../tty55
lrwxrwxrwx 1 root root  8 May 28 07:22 4:56 -> ../tty56
lrwxrwxrwx 1 root root  8 May 28 07:22 4:57 -> ../tty57
lrwxrwxrwx 1 root root  8 May 28 07:22 4:58 -> ../tty58
lrwxrwxrwx 1 root root  8 May 28 07:22 4:59 -> ../tty59
lrwxrwxrwx 1 root root  7 May 28 07:22 4:6 -> ../tty6
lrwxrwxrwx 1 root root  8 May 28 07:22 4:60 -> ../tty60
lrwxrwxrwx 1 root root  8 May 28 07:22 4:61 -> ../tty61
lrwxrwxrwx 1 root root  8 May 28 07:22 4:62 -> ../tty62
lrwxrwxrwx 1 root root  8 May 28 07:22 4:63 -> ../tty63
lrwxrwxrwx 1 root root  8 May 28 07:22 4:64 -> ../ttyS0
lrwxrwxrwx 1 root root  8 May 28 07:22 4:65 -> ../ttyS1
lrwxrwxrwx 1 root root  8 May 28 07:22 4:66 -> ../ttyS2
lrwxrwxrwx 1 root root  8 May 28 07:22 4:67 -> ../ttyS3
lrwxrwxrwx 1 root root  7 May 28 07:22 4:7 -> ../tty7
lrwxrwxrwx 1 root root  7 May 28 07:22 4:8 -> ../tty8
lrwxrwxrwx 1 root root  7 May 28 07:22 4:9 -> ../tty9
lrwxrwxrwx 1 root root  6 May 28 07:22 5:0 -> ../tty
lrwxrwxrwx 1 root root 10 May 28 07:22 5:1 -> ../console
lrwxrwxrwx 1 root root  7 May 28 07:22 5:2 -> ../ptmx
lrwxrwxrwx 1 root root  6 May 28 07:22 7:0 -> ../vcs
lrwxrwxrwx 1 root root  7 May 28 07:22 7:1 -> ../vcs1
lrwxrwxrwx 1 root root  7 May 28 07:22 7:128 -> ../vcsa
lrwxrwxrwx 1 root root  8 May 28 07:22 7:129 -> ../vcsa1

/dev/cpu:
total 0
crw------- 1 root root 10, 184 May 28 07:22 microcode

/dev/disk:
total 0
drwxr-xr-x 2 root root 120 May 28 07:22 by-id
drwxr-xr-x 2 root root  60 May 28 07:22 by-label
drwxr-xr-x 2 root root 120 May 28 07:22 by-path
drwxr-xr-x 2 root root 100 May 28 07:22 by-uuid

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 May 28 07:22 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb
lrwxrwxrwx 1 root root  9 May 28 07:22 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda
lrwxrwxrwx 1 root root 10 May 28 07:22 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 28 07:22 scsi-0QEMU_QEMU_HARDDISK_hd0-part2 -> ../../sda2

/dev/disk/by-label:
total 0
lrwxrwxrwx 1 root root 10 May 28 07:22 ARCH -> ../../sda2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 May 28 07:22 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 May 28 07:22 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 28 07:22 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 May 28 07:22 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 May 28 07:22 1119b020-92cf-4d80-acdc-c1b0183b9762 -> ../../sda2
lrwxrwxrwx 1 root root  9 May 28 07:22 7efd61b3-c836-4023-bdc7-ac883031201b -> ../../sdb
lrwxrwxrwx 1 root root 10 May 28 07:22 95dfda42-7e7b-453e-afa5-d40c07d91867 -> ../../sda1

/dev/input:
total 0
drwxr-xr-x 2 root root    120 May 28 07:22 by-path
crw-r----- 1 root root 13, 64 May 28 07:22 event0
crw-r----- 1 root root 13, 65 May 28 07:22 event1
crw-r----- 1 root root 13, 66 May 28 07:22 event2
crw------- 1 root root 13, 63 May 28 07:22 mice
crw-r----- 1 root root 13, 32 May 28 07:22 mouse0

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 May 28 07:22 platform-i8042-serio-0-event-kbd -> ../event0
lrwxrwxrwx 1 root root 9 May 28 07:22 platform-i8042-serio-1-event-mouse -> ../event2
lrwxrwxrwx 1 root root 9 May 28 07:22 platform-i8042-serio-1-mouse -> ../mouse0
lrwxrwxrwx 1 root root 9 May 28 07:22 platform-pcspkr-event-spkr -> ../event1

/dev/mapper:
total 0
crw------- 1 root root 10, 236 May 28 07:22 control

/dev/net:
total 0
crw-rw-rw- 1 root root 10, 200 May 28 07:22 tun

/dev/snd:
total 0
crw-rw---- 1 root audio 116,  1 May 28 07:22 seq
crw-rw---- 1 root audio 116, 33 May 28 07:22 timer

/dev/virtio-ports:
total 0
lrwxrwxrwx 1 root root 11 May 28 07:22 org.libguestfs.channel.0 -> ../vport1p1
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
/dev/root / ext2 rw,noatime 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=98836k,mode=755 0 0
/dev /dev devtmpfs rw,relatime,size=244984k,nr_inodes=61246,mode=755 0 0
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  No volume groups found
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  No volume groups found
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
Module                  Size  Used by
dm_mod                 72559  0 
kvm_amd                52122  0 
kvm                   389784  1 kvm_amd
psmouse                84588  0 
evdev                   9912  0 
serio_raw               5041  0 
pcspkr                  2027  0 
i2c_piix4              10311  0 
intel_agp              10936  0 
i2c_core               22479  1 i2c_piix4
intel_gtt              12664  1 intel_agp
ext4                  486052  1 
jbd2                   85240  1 ext4
virtio_scsi             8629  1 
virtio_balloon          5405  0 
virtio_pci              7269  0 
virtio_mmio             6401  0 
virtio_net             18917  0 
virtio_blk              9914  0 
virtio_console         18576  0 
virtio_rng              2322  0 
virtio_ring             5386  8 virtio_blk,virtio_net,virtio_pci,virtio_rng,virtio_balloon,virtio_console,virtio_mmio,virtio_scsi
virtio                  3858  8 virtio_blk,virtio_net,virtio_pci,virtio_rng,virtio_balloon,virtio_console,virtio_mmio,virtio_scsi
sparse_keymap           3114  0 
rfkill                 15626  0 
sd_mod                 30826  1 
sym53c8xx              71063  0 
scsi_transport_spi     20386  1 sym53c8xx
ata_piix               24760  0 
libata                170065  1 ata_piix
sr_mod                 14930  0 
cdrom                  35104  1 sr_mod
scsi_mod              129660  6 scsi_transport_spi,libata,sym53c8xx,sd_mod,sr_mod,virtio_scsi
mbcache                 5930  1 ext4
crc8                    1154  0 
crc7                    1102  0 
crc_t10dif              1332  0 
crc_ccitt               1363  0 
crc32                   1728  0 
crc32c                  1736  0 
crc_itu_t               1363  0 
crc16                   1359  1 ext4
Tue May 28 07:22:29 UTC 2013
uptime: 12.59 1.49
verbose daemon enabled
linux commmand line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color

udevadm settle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [15697ms] appliance is up
libguestfs: trace: launch = 0
libguestfs: trace: list_partitions
guestfsd: main_loop: new request, len 0x28
libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: proc 8 (list_partitions) took 0.02 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
libguestfs: trace: vfs_type = "swap"
libguestfs: trace: vfs_type "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 0.20 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda2
libguestfs: trace: vfs_type = "ext3"
libguestfs: trace: inspect_os
libguestfs: trace: umount_all
guestfsd: main_loop: proc 198 (vfs_type) took 0.20 seconds
guestfsd: main_loop: new request, len 0x28
libguestfs: trace: umount_all = 0
libguestfs: trace: list_filesystems
libguestfs: trace: list_devices
guestfsd: main_loop: proc 47 (umount_all) took 0.01 seconds
guestfsd: main_loop: new request, len 0x28
libguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: list_partitions
guestfsd: main_loop: proc 7 (list_devices) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
libguestfs: trace: list_md_devices
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
libguestfs: trace: list_md_devices = []
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_dev "/dev/sda2"
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_partnum "/dev/sda1"
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_partnum = 1
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 1
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
udevadm settle
sfdisk --print-id /dev/sda 1
udevadm settle
libguestfs: trace: part_get_mbr_id = 130
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.63 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
libguestfs: trace: vfs_type = "swap"
libguestfs: trace: part_to_partnum "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 0.21 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_partnum = 2
libguestfs: trace: part_to_dev "/dev/sda2"
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 2
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
udevadm settle
sfdisk --print-id /dev/sda 2
udevadm settle
libguestfs: trace: part_get_mbr_id = 131
libguestfs: trace: vfs_type "/dev/sda2"
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.55 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda2
libguestfs: trace: vfs_type = "ext3"
libguestfs: trace: feature_available "lvm2"
guestfsd: main_loop: proc 198 (vfs_type) took 0.19 seconds
guestfsd: main_loop: new request, len 0x34
libguestfs: trace: feature_available = 1
libguestfs: trace: lvs
guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
lvm lvs -o vg_name,lv_name --noheadings --separator /
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
  No volume groups found
libguestfs: trace: lvs = []
libguestfs: trace: feature_available "ldm"
guestfsd: main_loop: proc 11 (lvs) took 0.27 seconds
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds
libguestfs: trace: feature_available = 0
libguestfs: trace: list_filesystems = ["/dev/sda1", "swap", "/dev/sda2", "ext3"]
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
libguestfs: trace: vfs_type = "swap"
libguestfs: check_for_filesystem_on: /dev/sda1 (swap)
libguestfs: trace: vfs_type "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 0.22 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda2
libguestfs: trace: vfs_type = "ext3"
libguestfs: check_for_filesystem_on: /dev/sda2 (ext3)
libguestfs: trace: internal_parse_mountable "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 0.19 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *>
libguestfs: trace: is_whole_device "/dev/sda2"
guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: is_whole_device = 0
libguestfs: trace: mount_ro "/dev/sda2" "/"
guestfsd: main_loop: proc 395 (is_whole_device) took 0.00 seconds
guestfsd: main_loop: new request, len 0x40
mount -o ro /dev/sda2 /sysroot/
libguestfs: trace: mount_ro = 0
libguestfs: trace: part_to_partnum "/dev/sda2"
guestfsd: main_loop: proc 73 (mount_ro) took 0.26 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_partnum = 2
libguestfs: trace: is_dir "/etc"
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
guestfsd: main_loop: new request, len 0x30
libguestfs: trace: is_dir = 1
libguestfs: trace: is_dir "/bin"
guestfsd: main_loop: proc 38 (is_dir) took 0.02 seconds
guestfsd: main_loop: new request, len 0x30
libguestfs: trace: is_dir = 1
libguestfs: trace: is_dir "/share"
guestfsd: main_loop: proc 38 (is_dir) took 0.03 seconds
guestfsd: main_loop: new request, len 0x34
libguestfs: trace: is_dir = 0
libguestfs: trace: is_file "/grub/menu.lst"
guestfsd: main_loop: proc 38 (is_dir) took 0.00 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/grub/grub.conf"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/grub2/grub.cfg"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/etc/freebsd-update.conf"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x44
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/etc/fstab"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: is_file = 1
libguestfs: trace: is_file "/etc/release"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/hurd/console"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/etc/fstab"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: is_file = 1
libguestfs: trace: exists "/etc/lsb-release"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: exists = 0
libguestfs: trace: exists "/etc/redhat-release"
guestfsd: main_loop: proc 36 (exists) took 0.00 seconds
guestfsd: main_loop: new request, len 0x40
libguestfs: trace: exists = 0
libguestfs: trace: exists "/etc/debian_version"
guestfsd: main_loop: proc 36 (exists) took 0.00 seconds
guestfsd: main_loop: new request, len 0x40
libguestfs: trace: exists = 0
libguestfs: trace: exists "/etc/pardus-release"
guestfsd: main_loop: proc 36 (exists) took 0.00 seconds
guestfsd: main_loop: new request, len 0x40
libguestfs: trace: exists = 0
libguestfs: trace: exists "/etc/arch-release"
guestfsd: main_loop: proc 36 (exists) took 0.00 seconds
guestfsd: main_loop: new request, len 0x40
libguestfs: trace: exists = 1
libguestfs: trace: is_file "/bin/bash"
guestfsd: main_loop: proc 36 (exists) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/bin/ls"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/bin/echo"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/bin/rm"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
libguestfs: trace: is_file = 0
libguestfs: trace: is_file "/bin/sh"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
libguestfs: trace: is_file = 0
libguestfs: trace: exists "/etc/fstab"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: exists = 1
libguestfs: trace: filesize "/etc/fstab"
guestfsd: main_loop: proc 36 (exists) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: filesize = 231
libguestfs: trace: exists "/etc/mdadm.conf"
guestfsd: main_loop: proc 218 (filesize) took 0.00 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: exists = 1
libguestfs: trace: filesize "/etc/mdadm.conf"
guestfsd: main_loop: proc 36 (exists) took 0.00 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: filesize = 2366
libguestfs: trace: aug_init "/" 48
guestfsd: main_loop: proc 218 (filesize) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
guestfsd: error: feature 'augeas' is not available in this
build of libguestfs.  Read 'AVAILABILITY' in the guestfs(3) man page for
how to check for the availability of features.
libguestfs: trace: aug_init = -1 (error)
libguestfs: error: aug_init: feature 'augeas' is not available in this
build of libguestfs.  Read 'AVAILABILITY' in the guestfs(3) man page for
how to check for the availability of features.
libguestfs: trace: umount_all
guestfsd: main_loop: proc 16 (aug_init) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
umount /sysroot
libguestfs: trace: umount_all = 0
libguestfs: trace: inspect_os = NULL (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x1154ca0 (state 2)
libguestfs: trace: internal_autosync
guestfsd: main_loop: proc 47 (umount_all) took 0.18 seconds
guestfsd: main_loop: new request, len 0x28
fsync /dev/sda
libguestfs: trace: internal_autosync = 0
libguestfs: sending SIGTERM to process 10361
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /home/fam/3rd/libguestfs/tmp/libguestfsryyxc3

[-- Attachment #3: test.sh --]
[-- Type: application/x-sh, Size: 786 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28  7:30       ` Fam Zheng
@ 2013-05-28  7:47         ` Richard W.M. Jones
  2013-05-28  8:46           ` Richard W.M. Jones
  0 siblings, 1 reply; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-28  7:47 UTC (permalink / raw)
  To: qemu-devel, stefanha, kwolf, jcody

On Tue, May 28, 2013 at 03:30:49PM +0800, Fam Zheng wrote:
> > 
> > Sure, I'm using the attached test script.
> 
> I used your script to test, but I don't see errors as you posted,
> attached the output. The only difference is that I put libguestfs in
> different directory with you and I'm using a linux guest image instead
> of windows xp. Do I need to get a windows image to reproduce?

There's actually an error in the output of libguestfs.  As a result
the test didn't fully run.  The error is hidden in all the extra
debugging information we're printing, but here it is:

> guestfsd: error: feature 'augeas' is not available in this
> build of libguestfs.  Read 'AVAILABILITY' in the guestfs(3) man page for
> how to check for the availability of features.
> libguestfs: trace: aug_init = -1 (error)
> libguestfs: error: aug_init: feature 'augeas' is not available in this
> build of libguestfs.  Read 'AVAILABILITY' in the guestfs(3) man page for
> how to check for the availability of features.
> libguestfs: trace: umount_all

You need to install the Augeas development package (augeas-devel on
Fedora, libaugeas-dev on Debian) and recompile libguestfs.  It's a
good idea to make sure you have every dependency installed by doing:

  yum-builddep libguestfs

or

  apt-get build-dep libguestfs

(this is covered in the libguestfs README).

- - -

I'm not sure if a Windows guest is somehow necessary to show the
errors.  I'll retest with a Linux guest and get back to you about
that.

Also I'm testing against a remote Apache2 server over a very slow Wifi
connection.  Whereas your test was against localhost.  Again, I will
test this scenario to see if that makes a difference and get back to
you.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28  7:47         ` Richard W.M. Jones
@ 2013-05-28  8:46           ` Richard W.M. Jones
  2013-05-28  8:52             ` Fam Zheng
  2013-05-28  8:53             ` Richard W.M. Jones
  0 siblings, 2 replies; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-28  8:46 UTC (permalink / raw)
  To: qemu-devel, stefanha, kwolf, jcody

On Tue, May 28, 2013 at 08:47:59AM +0100, Richard W.M. Jones wrote:
> I'm not sure if a Windows guest is somehow necessary to show the
> errors.  I'll retest with a Linux guest and get back to you about
> that.

Reproducible with Linux guest (remotely over slow Wifi).

> Also I'm testing against a remote Apache2 server over a very slow Wifi
> connection.  Whereas your test was against localhost.  Again, I will
> test this scenario to see if that makes a difference and get back to
> you.

NOT reproducible with Windows XP guest over localhost, Apache2 server.

So it seems to have something to do with the long latency and/or low
bandwidth of the slow wifi connection here.

I will add: This bug is not 100% reproducible on every run.  However
it does occur very frequently, probably in 9 out of 10 runs for me.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28  8:46           ` Richard W.M. Jones
@ 2013-05-28  8:52             ` Fam Zheng
  2013-05-28  8:53             ` Richard W.M. Jones
  1 sibling, 0 replies; 29+ messages in thread
From: Fam Zheng @ 2013-05-28  8:52 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: kwolf, jcody, qemu-devel, stefanha

On Tue, 05/28 09:46, Richard W.M. Jones wrote:
> On Tue, May 28, 2013 at 08:47:59AM +0100, Richard W.M. Jones wrote:
> > I'm not sure if a Windows guest is somehow necessary to show the
> > errors.  I'll retest with a Linux guest and get back to you about
> > that.
> 
> Reproducible with Linux guest (remotely over slow Wifi).
> 
> > Also I'm testing against a remote Apache2 server over a very slow Wifi
> > connection.  Whereas your test was against localhost.  Again, I will
> > test this scenario to see if that makes a difference and get back to
> > you.
> 
> NOT reproducible with Windows XP guest over localhost, Apache2 server.
> 
> So it seems to have something to do with the long latency and/or low
> bandwidth of the slow wifi connection here.
> 
> I will add: This bug is not 100% reproducible on every run.  However
> it does occur very frequently, probably in 9 out of 10 runs for me.
> 
> Rich.
> 

OK, I'll try a remote image then.

-- 
Fam

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28  8:46           ` Richard W.M. Jones
  2013-05-28  8:52             ` Fam Zheng
@ 2013-05-28  8:53             ` Richard W.M. Jones
  1 sibling, 0 replies; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-28  8:53 UTC (permalink / raw)
  To: qemu-devel, stefanha, kwolf, jcody

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

On Tue, May 28, 2013 at 09:46:14AM +0100, Richard W.M. Jones wrote:
> Reproducible with Linux guest (remotely over slow Wifi).

FWIW attached are a couple of runs with the Linux guest, remote.

I killed them both because there were so many errors and they weren't
making much progress.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)

[-- Attachment #2: with-f15x32-guest.log --]
[-- Type: text/plain, Size: 98367 bytes --]

libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_tmpdir "/home/rjones/d/libguestfs/tmp"
libguestfs: trace: set_tmpdir = 0
libguestfs: trace: set_cachedir "/home/rjones/d/libguestfs/tmp"
libguestfs: trace: set_cachedir = 0
libguestfs: trace: set_path "/home/rjones/d/libguestfs/appliance"
libguestfs: trace: set_path = 0
libguestfs: trace: set_qemu "/home/rjones/d/qemu/qemu.wrapper"
libguestfs: trace: set_qemu = 0
libguestfs: trace: set_backend "direct"
libguestfs: trace: set_backend = 0
libguestfs: create: flags = 0, handle = 0x225a5b0, program = guestfish
libguestfs: trace: add_drive "/scratch/f15x32.img" "readonly:true" "format:raw" "protocol:http" "server:tcp:192.168.0.249"
libguestfs: trace: add_drive = 0
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/home/rjones/d/libguestfs/tmp"
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/home/rjones/d/libguestfs/tmp/libguestfsHCWUvB
libguestfs: launch: umask=0002
libguestfs: launch: euid=1000
libguestfs: command: run: supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ /home/rjones/d/libguestfs/appliance/supermin.d
libguestfs: command: run: \ x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /home/rjones/d/libguestfs/appliance/supermin.d
checking modpath /lib/modules/3.8.4-202.fc18.x86_64 is a directory
picked vmlinuz-3.8.4-202.fc18.x86_64 because modpath /lib/modules/3.8.4-202.fc18.x86_64 exists
checking modpath /lib/modules/3.9.2-200.fc18.x86_64 is a directory
picked vmlinuz-3.9.2-200.fc18.x86_64 because modpath /lib/modules/3.9.2-200.fc18.x86_64 exists
checking modpath /lib/modules/3.8.11-200.fc18.x86_64 is a directory
picked vmlinuz-3.8.11-200.fc18.x86_64 because modpath /lib/modules/3.8.11-200.fc18.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/base.img
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/daemon.img
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/hostfiles
supermin helper [00034ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/init.img
supermin helper [00034ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/udev-rules.img
supermin helper [00035ms] adding kernel modules
supermin helper [00064ms] finished creating appliance
libguestfs: checksum of existing appliance: 5c381131263eed720e649356153b7d653d58f9c3132e9379c07d9e27b4bb53a9
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/home/rjones/d/libguestfs/tmp"
libguestfs: [00068ms] begin testing qemu features
libguestfs: command: run: /home/rjones/d/qemu/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
libguestfs: command: run: /home/rjones/d/qemu/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -version
libguestfs: qemu version 1.5
libguestfs: command: run: /home/rjones/d/qemu/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00155ms] finished testing qemu features
[00156ms] /home/rjones/d/qemu/qemu.wrapper \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -device virtio-scsi-pci,id=scsi \
    -drive file=http://192.168.0.249/scratch/f15x32.img,snapshot=on,format=raw,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/home/rjones/d/libguestfs/tmp/.guestfs-1000/root.30394,snapshot=on,id=appliance,if=none,cache=unsafe \
    -device scsi-hd,drive=appliance \
    -machine accel=kvm:tcg \
    -m 500 \
    -no-reboot \
    -no-hpet \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/home/rjones/d/libguestfs/tmp/libguestfsHCWUvB/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -kernel /home/rjones/d/libguestfs/tmp/.guestfs-1000/kernel.30394 \
    -initrd /home/rjones/d/libguestfs/tmp/.guestfs-1000/initrd.30394 \
    -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color'\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 11/03/11
SGABIOS $Id$ (pbonzini@yakj.usersys.redhat.com) Thu Nov  3 13:33:51 UTC 2011
Term: 80x24
4 0
\x1b[2J
SeaBIOS (version rel-1.7.2.1-0-g88cb66e-20130228_091731-rincewind.home.kraxel.org)


Booting from ROM...


Probing EDD (edd=off to disable)... ok

\x1b[2J[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.9.2-200.fc18.x86_64 (mockbuild@bkernel02) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Mon May 13 13:59:47 UTC 2013
[    0.000000] Command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001f3fdfff] usable
[    0.000000] BIOS-e820: [mem 0x000000001f3fe000-0x000000001f3fffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.4 present.
[    0.000000] Hypervisor detected: KVM
[    0.000000] No AGP bridge found
[    0.000000] e820: last_pfn = 0x1f3fe max_arch_pfn = 0x400000000
[    0.000000] PAT not supported by CPU.
[    0.000000] found SMP MP-table at [mem 0x000fdb00-0x000fdb0f] mapped at [ffff8800000fdb00]
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000] init_memory_mapping: [mem 0x1f000000-0x1f1fffff]
[    0.000000] init_memory_mapping: [mem 0x1c000000-0x1effffff]
[    0.000000] init_memory_mapping: [mem 0x00100000-0x1bffffff]
[    0.000000] init_memory_mapping: [mem 0x1f200000-0x1f3fdfff]
[    0.000000] RAMDISK: [mem 0x1f2ba000-0x1f3effff]
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000001f3fdfff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x1f3fdfff]
[    0.000000]   NODE_DATA [mem 0x1f2a6000-0x1f2b9fff]
[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[    0.000000] kvm-clock: cpu 0, msr 0:1f3fc001, boot clock
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
[    0.000000]   DMA32    [mem 0x01000000-0xffffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00001000-0x0009efff]
[    0.000000]   node   0: [mem 0x00100000-0x1f3fdfff]
[    0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[    0.000000] Intel MultiProcessor Specification v1.4
[    0.000000] MPTABLE: OEM ID: BOCHSCPU
[    0.000000] MPTABLE: Product ID: 0.1         
[    0.000000] MPTABLE: APIC at: 0xFEE00000
[    0.000000] Processor #0 (Bootup-CPU)
[    0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[    0.000000] Processors: 1
[    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[    0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[    0.000000] e820: [mem 0x1f400000-0xfeffbfff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on KVM
[    0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88001f000000 s85248 r8192 d21248 u2097152
[    0.000000] kvm-clock: cpu 0, msr 0:1f3fc001, primary cpu clock
[    0.000000] KVM setup async PF for cpu 0
[    0.000000] kvm-stealtime: cpu 0, msr 1f00dec0
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 125879
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
[    0.000000] Disabling memory control group subsystem
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Memory: 485668k/511992k available (6582k kernel code, 392k absent, 25932k reserved, 6652k data, 1356k init)
[    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] \tRCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:8448 nr_irqs:256 16
[    0.000000] Console: colour *CGA 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] tsc: Detected 2893.430 MHz processor
[    0.002000] Calibrating delay loop (skipped) preset value.. 5786.86 BogoMIPS (lpj=2893430)
[    0.002004] pid_max: default: 32768 minimum: 301
[    0.002410] Security Framework initialized
[    0.002754] SELinux:  Disabled at boot.
[    0.003060] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.003739] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.004047] Mount-cache hash table entries: 256
[    0.005017] Initializing cgroup subsys cpuacct
[    0.005380] Initializing cgroup subsys memory
[    0.005744] Initializing cgroup subsys devices
[    0.006004] Initializing cgroup subsys freezer
[    0.006370] Initializing cgroup subsys net_cls
[    0.006731] Initializing cgroup subsys blkio
[    0.007004] Initializing cgroup subsys perf_event
[    0.007442] mce: CPU supports 10 MCE banks
[    0.008031] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.008031] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.008031] tlb_flushall_shift: 6
[    0.022211] Freeing SMP alternatives: 24k freed
[    0.025220] ftrace: allocating 24496 entries in 96 pages
[    0.032350] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.032875] smpboot: CPU0: Intel QEMU Virtual CPU version 1.5.50 (fam: 06, model: 02, stepping: 03)
[    0.135050] Performance Events: unsupported p6 CPU model 2 no PMU driver, software events only.
[    0.136578] Brought up 1 CPUs
[    0.136843] smpboot: Total of 1 processors activated (5786.86 BogoMIPS)
[    0.137194] NMI watchdog: disabled (cpu0): hardware events not enabled
[    0.138072] devtmpfs: initialized
[    0.139019] atomic64 test passed for x86-64 platform with CX8 and with SSE
[    0.139612] RTC time:  8:48:52, date: 05/28/13
[    0.139974] NET: Registered protocol family 16
[    0.140209] PCI: Using configuration type 1 for base access
[    0.141469] bio: create slab <bio-0> at 0
[    0.141849] ACPI: Interpreter disabled.
[    0.142036] vgaarb: loaded
[    0.142300] SCSI subsystem initialized
[    0.142653] usbcore: registered new interface driver usbfs
[    0.143008] usbcore: registered new interface driver hub
[    0.143439] usbcore: registered new device driver usb
[    0.144035] PCI: Probing PCI hardware
[    0.144344] PCI host bridge to bus 0000:00
[    0.144667] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.145003] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffff]
[    0.145529] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.150123] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
[    0.150715] pci 0000:00:01.3: quirk: [io  0xb100-0xb10f] claimed by PIIX4 SMB
[    0.162078] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[    0.162696] NetLabel: Initializing
[    0.162976] NetLabel:  domain hash size = 128
[    0.163002] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.163412] NetLabel:  unlabeled traffic allowed by default
[    0.164045] Switching to clocksource kvm-clock
[    0.174657] pnp: PnP ACPI: disabled
[    0.175865] NET: Registered protocol family 2
[    0.176366] TCP established hash table entries: 4096 (order: 4, 65536 bytes)
[    0.176924] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[    0.177479] TCP: Hash tables configured (established 4096 bind 4096)
[    0.177976] TCP: reno registered
[    0.178291] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.178736] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.179299] NET: Registered protocol family 1
[    0.179650] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.180113] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.180606] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.181176] Unpacking initramfs...
[    0.188981] Freeing initrd memory: 1240k freed
[    0.189574] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.190438] Initialise module verification
[    0.190812] audit: initializing netlink socket (disabled)
[    0.191289] type=2000 audit(1369730932.191:1): initialized
[    0.207617] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.208954] VFS: Disk quotas dquot_6.5.2
[    0.209330] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.210160] msgmni has been set to 951
[    0.210709] alg: No test for stdrng (krng)
[    0.211075] NET: Registered protocol family 38
[    0.211494] Key type asymmetric registered
[    0.211827] Asymmetric key parser 'x509' registered
[    0.212255] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.212926] io scheduler noop registered
[    0.213261] io scheduler deadline registered
[    0.213672] io scheduler cfq registered (default)
[    0.214120] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.214591] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.215168] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.215872] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 34
[    0.217813] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 35
[    0.218892] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.240659] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.276384] Non-volatile memory driver v1.3
[    0.276762] Linux agpgart interface v0.103
[    0.277549] loop: module loaded
[    0.278695] scsi0 : ata_piix
[    0.278995] scsi1 : ata_piix
[    0.279250] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
[    0.279764] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
[    0.280400] libphy: Fixed MDIO Bus: probed
[    0.280746] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.281288] ehci-pci: EHCI PCI platform driver
[    0.281633] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.282137] uhci_hcd: USB Universal Host Controller Interface driver
[    0.282650] usbcore: registered new interface driver usbserial
[    0.283126] usbcore: registered new interface driver usbserial_generic
[    0.283634] usbserial: USB Serial support registered for generic
[    0.284103] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    0.285126] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.285527] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.285985] mousedev: PS/2 mouse device common for all mice
[    0.286629] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    0.288707] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.289305] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[    0.289891] device-mapper: uevent: version 1.0.3
[    0.290332] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[    0.291063] cpuidle: using governor ladder
[    0.291393] cpuidle: using governor menu
[    0.291739] EFI Variables Facility v0.08 2004-May-17
[    0.292198] hidraw: raw HID events driver (C) Jiri Kosina
[    0.292668] usbcore: registered new interface driver usbhid
[    0.293124] usbhid: USB HID core driver
[    0.293487] drop_monitor: Initializing network drop monitor service
[    0.294041] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.294526] TCP: cubic registered
[    0.294781] Initializing XFRM netlink socket
[    0.295202] NET: Registered protocol family 10
[    0.295691] mip6: Mobile IPv6
[    0.295951] NET: Registered protocol family 17
[    0.296416] Loading module verification certificates
[    0.297436] MODSIGN: Loaded cert 'Fedora kernel signing key: 1968afea379aa6a6ae888ee5c96a89632abff2ad'
[    0.298226] registered taskstats version 1
[    0.299032]   Magic number: 13:731:827
[    0.451687] Freeing unused kernel memory: 1356k freed
[    0.453771] Write protecting the kernel read-only data: 12288k
[    0.461108] Freeing unused kernel memory: 1600k freed
[    0.463451] Freeing unused kernel memory: 1328k freed
supermin: mounting /proc
supermin: uptime: 0.46 0.15
supermin: ext2 mini initrd starting up: 4.1.1 zlib
supermin: cmdline: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
supermin: mounting /sys
supermin: internal insmod libcrc32c.ko
supermin: internal insmod crc32c-intel.ko
insmod: init_module: crc32c-intel.ko: No such device
supermin: internal insmod crc32-pclmul.ko
[    0.469306] PCLMULQDQ-NI instructions are not detected.
insmod: init_module: crc32-pclmul.ko: No such device
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc32.ko
[    0.471815] alg: No test for crc32 (crc32-table)
supermin: internal insmod crc-ccitt.ko
supermin: internal insmod crc8.ko
supermin: internal insmod scsi_transport_spi.ko
supermin: internal insmod sym53c8xx.ko
supermin: internal insmod rfkill.ko
supermin: internal insmod sparse-keymap.ko
supermin: internal insmod ideapad-laptop.ko
insmod: init_module: ideapad-laptop.ko: No such device
supermin: internal insmod virtio_mmio.ko
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio-rng.ko
supermin: internal insmod virtio_blk.ko
supermin: internal insmod virtio_scsi.ko
[    0.492613] scsi2 : Virtio SCSI HBA
[    0.494712] scsi 2:0:0:0: Direct-Access     QEMU     QEMU HARDDISK    1.5. PQ: 0 ANSI: 5
[    0.495713] scsi 2:0:1:0: Direct-Access     QEMU     QEMU HARDDISK    1.5. PQ: 0 ANSI: 5
[    0.548169] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    0.549592] sd 2:0:0:0: [sda] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
[    0.552553] sd 2:0:0:0: [sda] Write Protect is off
[    0.553847] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    0.555762] sd 2:0:1:0: Attached scsi generic sg1 type 0
[    0.557165] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.559763] sd 2:0:1:0: [sdb] Write Protect is off
[    0.561075] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.563574]  sda: sda1 sda2
[    0.563973]  sdb: unknown partition table
[    0.564812] sd 2:0:1:0: [sdb] Attached SCSI disk
[    0.565665] sd 2:0:0:0: [sda] Attached SCSI disk
supermin: internal insmod virtio_net.ko
supermin: picked /sys/block/sdb/dev as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[    0.568603] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
[    0.586242] EXT4-fs (sdb): mounted filesystem without journal. Opts: 
supermin: chroot
Starting /init script ...
[    0.708689] systemd-udevd[58]: starting version 201
[    0.799644] ACPI Exception: AE_BAD_PARAMETER, Thread 493158400 could not acquire Mutex [0x1] (20130117/utmutex-278)
[    0.800511] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
[    0.813657] microcode: CPU0 sig=0x623, pf=0x0, revision=0x1
[    0.814899] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[    1.125671] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input1
Cannot find device "eth0"
Cannot find device "eth0"
RTNETLINK answers: Network is unreachable
mdadm: No arrays found in config file or automatically
  Reading all physical volumes.  This may take a while...
  Found volume group "vg_f15x32" using metadata type lvm2
[   16.644957] bio: create slab <bio-1> at 1
  2 logical volume(s) in volume group "vg_f15x32" now active
[
]
/init: line 112: /sys/block/vd*/queue/rotational: No such file or directory
/dev:
total 0
crw------- 1 root root  10, 235 May 28 09:48 autofs
drwxr-xr-x 2 root root      320 May 28 09:49 block
drwxr-xr-x 2 root root       80 May 28 09:48 bsg
crw------- 1 root root  10, 234 May 28 09:48 btrfs-control
drwxr-xr-x 2 root root     2240 May 28 09:48 char
crw------- 1 root root   5,   1 May 28 09:48 console
lrwxrwxrwx 1 root root       11 May 28 09:48 core -> /proc/kcore
drwxr-xr-x 3 root root       80 May 28 09:48 cpu
crw------- 1 root root  10,  62 May 28 09:48 cpu_dma_latency
drwxr-xr-x 5 root root      100 May 28 09:48 disk
brw-rw---- 1 root disk 253,   0 May 28 09:49 dm-0
brw-rw---- 1 root disk 253,   1 May 28 09:49 dm-1
lrwxrwxrwx 1 root root       13 May 28 09:48 fd -> /proc/self/fd
crw-rw-rw- 1 root root   1,   7 May 28 09:48 full
crw-rw-rw- 1 root root  10, 229 May 28 09:48 fuse
drwxr-xr-x 3 root root      140 May 28 09:48 input
crw-r--r-- 1 root root   1,  11 May 28 09:48 kmsg
crw------- 1 root root  10, 237 May 28 09:48 loop-control
brw------- 1 root root   7,   0 May 28 09:48 loop0
brw------- 1 root root   7,   1 May 28 09:48 loop1
brw------- 1 root root   7,   2 May 28 09:48 loop2
brw------- 1 root root   7,   3 May 28 09:48 loop3
brw------- 1 root root   7,   4 May 28 09:48 loop4
brw------- 1 root root   7,   5 May 28 09:48 loop5
brw------- 1 root root   7,   6 May 28 09:48 loop6
brw------- 1 root root   7,   7 May 28 09:48 loop7
drwxr-xr-x 2 root root      100 May 28 09:49 mapper
crw------- 1 root root  10, 227 May 28 09:48 mcelog
crw------- 1 root root   1,   1 May 28 09:48 mem
drwxr-xr-x 2 root root       60 May 28 09:48 net
crw------- 1 root root  10,  61 May 28 09:48 network_latency
crw------- 1 root root  10,  60 May 28 09:48 network_throughput
crw-rw-rw- 1 root root   1,   3 May 28 09:48 null
crw------- 1 root root  10, 144 May 28 09:48 nvram
crw------- 1 root root   1,  12 May 28 09:48 oldmem
crw------- 1 root root   1,   4 May 28 09:48 port
crw------- 1 root root 108,   0 May 28 09:48 ppp
crw-rw-rw- 1 root root   5,   2 May 28 09:48 ptmx
crw-rw-rw- 1 root root   1,   8 May 28 09:48 random
drwxr-xr-x 2 root root       60 May 28 09:48 raw
crw------- 1 root root  10,  59 May 28 09:48 rfkill
crw------- 1 root root 254,   0 May 28 09:48 rtc0
brw------- 1 root root   8,   0 May 28 09:48 sda
brw------- 1 root root   8,   1 May 28 09:49 sda1
brw------- 1 root root   8,   2 May 28 09:49 sda2
brw------- 1 root root   8,  16 May 28 09:48 sdb
crw------- 1 root root  21,   0 May 28 09:48 sg0
crw------- 1 root root  21,   1 May 28 09:48 sg1
crw------- 1 root root  10, 231 May 28 09:48 snapshot
drwxr-xr-x 2 root root       80 May 28 09:48 snd
lrwxrwxrwx 1 root root       15 May 28 09:48 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root       15 May 28 09:48 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root       15 May 28 09:48 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root   5,   0 May 28 09:48 tty
crw------- 1 root root   4,   0 May 28 09:48 tty0
crw------- 1 root root   4,   1 May 28 09:48 tty1
crw------- 1 root root   4,  10 May 28 09:48 tty10
crw------- 1 root root   4,  11 May 28 09:48 tty11
crw------- 1 root root   4,  12 May 28 09:48 tty12
crw------- 1 root root   4,  13 May 28 09:48 tty13
crw------- 1 root root   4,  14 May 28 09:48 tty14
crw------- 1 root root   4,  15 May 28 09:48 tty15
crw------- 1 root root   4,  16 May 28 09:48 tty16
crw------- 1 root root   4,  17 May 28 09:48 tty17
crw------- 1 root root   4,  18 May 28 09:48 tty18
crw------- 1 root root   4,  19 May 28 09:48 tty19
crw------- 1 root root   4,   2 May 28 09:48 tty2
crw------- 1 root root   4,  20 May 28 09:48 tty20
crw------- 1 root root   4,  21 May 28 09:48 tty21
crw------- 1 root root   4,  22 May 28 09:48 tty22
crw------- 1 root root   4,  23 May 28 09:48 tty23
crw------- 1 root root   4,  24 May 28 09:48 tty24
crw------- 1 root root   4,  25 May 28 09:48 tty25
crw------- 1 root root   4,  26 May 28 09:48 tty26
crw------- 1 root root   4,  27 May 28 09:48 tty27
crw------- 1 root root   4,  28 May 28 09:48 tty28
crw------- 1 root root   4,  29 May 28 09:48 tty29
crw------- 1 root root   4,   3 May 28 09:48 tty3
crw------- 1 root root   4,  30 May 28 09:48 tty30
crw------- 1 root root   4,  31 May 28 09:48 tty31
crw------- 1 root root   4,  32 May 28 09:48 tty32
crw------- 1 root root   4,  33 May 28 09:48 tty33
crw------- 1 root root   4,  34 May 28 09:48 tty34
crw------- 1 root root   4,  35 May 28 09:48 tty35
crw------- 1 root root   4,  36 May 28 09:48 tty36
crw------- 1 root root   4,  37 May 28 09:48 tty37
crw------- 1 root root   4,  38 May 28 09:48 tty38
crw------- 1 root root   4,  39 May 28 09:48 tty39
crw------- 1 root root   4,   4 May 28 09:48 tty4
crw------- 1 root root   4,  40 May 28 09:48 tty40
crw------- 1 root root   4,  41 May 28 09:48 tty41
crw------- 1 root root   4,  42 May 28 09:48 tty42
crw------- 1 root root   4,  43 May 28 09:48 tty43
crw------- 1 root root   4,  44 May 28 09:48 tty44
crw------- 1 root root   4,  45 May 28 09:48 tty45
crw------- 1 root root   4,  46 May 28 09:48 tty46
crw------- 1 root root   4,  47 May 28 09:48 tty47
crw------- 1 root root   4,  48 May 28 09:48 tty48
crw------- 1 root root   4,  49 May 28 09:48 tty49
crw------- 1 root root   4,   5 May 28 09:48 tty5
crw------- 1 root root   4,  50 May 28 09:48 tty50
crw------- 1 root root   4,  51 May 28 09:48 tty51
crw------- 1 root root   4,  52 May 28 09:48 tty52
crw------- 1 root root   4,  53 May 28 09:48 tty53
crw------- 1 root root   4,  54 May 28 09:48 tty54
crw------- 1 root root   4,  55 May 28 09:48 tty55
crw------- 1 root root   4,  56 May 28 09:48 tty56
crw------- 1 root root   4,  57 May 28 09:48 tty57
crw------- 1 root root   4,  58 May 28 09:48 tty58
crw------- 1 root root   4,  59 May 28 09:48 tty59
crw------- 1 root root   4,   6 May 28 09:48 tty6
crw------- 1 root root   4,  60 May 28 09:48 tty60
crw------- 1 root root   4,  61 May 28 09:48 tty61
crw------- 1 root root   4,  62 May 28 09:48 tty62
crw------- 1 root root   4,  63 May 28 09:48 tty63
crw------- 1 root root   4,   7 May 28 09:48 tty7
crw------- 1 root root   4,   8 May 28 09:48 tty8
crw------- 1 root root   4,   9 May 28 09:48 tty9
crw------- 1 root root   4,  64 May 28 09:48 ttyS0
crw------- 1 root root   4,  65 May 28 09:48 ttyS1
crw------- 1 root root   4,  66 May 28 09:48 ttyS2
crw------- 1 root root   4,  67 May 28 09:48 ttyS3
crw------- 1 root root  10, 223 May 28 09:48 uinput
crw-rw-rw- 1 root root   1,   9 May 28 09:48 urandom
crw------- 1 root root 250,   0 May 28 09:48 usbmon0
crw------- 1 root root   7,   0 May 28 09:48 vcs
crw------- 1 root root   7,   1 May 28 09:48 vcs1
crw------- 1 root root   7, 128 May 28 09:48 vcsa
crw------- 1 root root   7, 129 May 28 09:48 vcsa1
drwxr-xr-x 2 root root       80 May 28 09:49 vg_f15x32
crw------- 1 root root  10,  63 May 28 09:48 vga_arbiter
crw------- 1 root root  10, 238 May 28 09:48 vhost-net
drwxr-xr-x 2 root root       60 May 28 09:48 virtio-ports
crw------- 1 root root 251,   1 May 28 09:48 vport1p1
crw-rw-rw- 1 root root   1,   5 May 28 09:48 zero

/dev/block:
total 0
lrwxrwxrwx 1 root root 7 May 28 09:49 253:0 -> ../dm-0
lrwxrwxrwx 1 root root 7 May 28 09:49 253:1 -> ../dm-1
lrwxrwxrwx 1 root root 8 May 28 09:48 7:0 -> ../loop0
lrwxrwxrwx 1 root root 8 May 28 09:48 7:1 -> ../loop1
lrwxrwxrwx 1 root root 8 May 28 09:48 7:2 -> ../loop2
lrwxrwxrwx 1 root root 8 May 28 09:48 7:3 -> ../loop3
lrwxrwxrwx 1 root root 8 May 28 09:48 7:4 -> ../loop4
lrwxrwxrwx 1 root root 8 May 28 09:48 7:5 -> ../loop5
lrwxrwxrwx 1 root root 8 May 28 09:48 7:6 -> ../loop6
lrwxrwxrwx 1 root root 8 May 28 09:48 7:7 -> ../loop7
lrwxrwxrwx 1 root root 6 May 28 09:48 8:0 -> ../sda
lrwxrwxrwx 1 root root 7 May 28 09:49 8:1 -> ../sda1
lrwxrwxrwx 1 root root 6 May 28 09:48 8:16 -> ../sdb
lrwxrwxrwx 1 root root 7 May 28 09:49 8:2 -> ../sda2

/dev/bsg:
total 0
crw------- 1 root root 252, 0 May 28 09:48 2:0:0:0
crw------- 1 root root 252, 1 May 28 09:48 2:0:1:0

/dev/char:
total 0
lrwxrwxrwx 1 root root  8 May 28 09:48 10:144 -> ../nvram
lrwxrwxrwx 1 root root 16 May 28 09:48 10:184 -> ../cpu/microcode
lrwxrwxrwx 1 root root  9 May 28 09:48 10:227 -> ../mcelog
lrwxrwxrwx 1 root root 11 May 28 09:48 10:231 -> ../snapshot
lrwxrwxrwx 1 root root  9 May 28 09:48 10:235 -> ../autofs
lrwxrwxrwx 1 root root 17 May 28 09:48 10:236 -> ../mapper/control
lrwxrwxrwx 1 root root 15 May 28 09:48 10:237 -> ../loop-control
lrwxrwxrwx 1 root root  9 May 28 09:48 10:59 -> ../rfkill
lrwxrwxrwx 1 root root 21 May 28 09:48 10:60 -> ../network_throughput
lrwxrwxrwx 1 root root 18 May 28 09:48 10:61 -> ../network_latency
lrwxrwxrwx 1 root root 18 May 28 09:48 10:62 -> ../cpu_dma_latency
lrwxrwxrwx 1 root root 14 May 28 09:48 10:63 -> ../vga_arbiter
lrwxrwxrwx 1 root root 15 May 28 09:48 13:32 -> ../input/mouse0
lrwxrwxrwx 1 root root 13 May 28 09:48 13:63 -> ../input/mice
lrwxrwxrwx 1 root root 15 May 28 09:48 13:64 -> ../input/event0
lrwxrwxrwx 1 root root 15 May 28 09:48 13:65 -> ../input/event1
lrwxrwxrwx 1 root root 13 May 28 09:48 162:0 -> ../raw/rawctl
lrwxrwxrwx 1 root root  6 May 28 09:48 1:1 -> ../mem
lrwxrwxrwx 1 root root  7 May 28 09:48 1:11 -> ../kmsg
lrwxrwxrwx 1 root root  9 May 28 09:48 1:12 -> ../oldmem
lrwxrwxrwx 1 root root  7 May 28 09:48 1:3 -> ../null
lrwxrwxrwx 1 root root  7 May 28 09:48 1:4 -> ../port
lrwxrwxrwx 1 root root  7 May 28 09:48 1:5 -> ../zero
lrwxrwxrwx 1 root root  7 May 28 09:48 1:7 -> ../full
lrwxrwxrwx 1 root root  9 May 28 09:48 1:8 -> ../random
lrwxrwxrwx 1 root root 10 May 28 09:48 1:9 -> ../urandom
lrwxrwxrwx 1 root root 12 May 28 09:48 202:0 -> ../cpu/0/msr
lrwxrwxrwx 1 root root 14 May 28 09:48 203:0 -> ../cpu/0/cpuid
lrwxrwxrwx 1 root root  6 May 28 09:48 21:0 -> ../sg0
lrwxrwxrwx 1 root root  6 May 28 09:48 21:1 -> ../sg1
lrwxrwxrwx 1 root root 10 May 28 09:48 250:0 -> ../usbmon0
lrwxrwxrwx 1 root root 11 May 28 09:48 251:1 -> ../vport1p1
lrwxrwxrwx 1 root root 14 May 28 09:48 252:0 -> ../bsg/2:0:0:0
lrwxrwxrwx 1 root root 14 May 28 09:48 252:1 -> ../bsg/2:0:1:0
lrwxrwxrwx 1 root root  7 May 28 09:48 254:0 -> ../rtc0
lrwxrwxrwx 1 root root  7 May 28 09:48 4:0 -> ../tty0
lrwxrwxrwx 1 root root  7 May 28 09:48 4:1 -> ../tty1
lrwxrwxrwx 1 root root  8 May 28 09:48 4:10 -> ../tty10
lrwxrwxrwx 1 root root  8 May 28 09:48 4:11 -> ../tty11
lrwxrwxrwx 1 root root  8 May 28 09:48 4:12 -> ../tty12
lrwxrwxrwx 1 root root  8 May 28 09:48 4:13 -> ../tty13
lrwxrwxrwx 1 root root  8 May 28 09:48 4:14 -> ../tty14
lrwxrwxrwx 1 root root  8 May 28 09:48 4:15 -> ../tty15
lrwxrwxrwx 1 root root  8 May 28 09:48 4:16 -> ../tty16
lrwxrwxrwx 1 root root  8 May 28 09:48 4:17 -> ../tty17
lrwxrwxrwx 1 root root  8 May 28 09:48 4:18 -> ../tty18
lrwxrwxrwx 1 root root  8 May 28 09:48 4:19 -> ../tty19
lrwxrwxrwx 1 root root  7 May 28 09:48 4:2 -> ../tty2
lrwxrwxrwx 1 root root  8 May 28 09:48 4:20 -> ../tty20
lrwxrwxrwx 1 root root  8 May 28 09:48 4:21 -> ../tty21
lrwxrwxrwx 1 root root  8 May 28 09:48 4:22 -> ../tty22
lrwxrwxrwx 1 root root  8 May 28 09:48 4:23 -> ../tty23
lrwxrwxrwx 1 root root  8 May 28 09:48 4:24 -> ../tty24
lrwxrwxrwx 1 root root  8 May 28 09:48 4:25 -> ../tty25
lrwxrwxrwx 1 root root  8 May 28 09:48 4:26 -> ../tty26
lrwxrwxrwx 1 root root  8 May 28 09:48 4:27 -> ../tty27
lrwxrwxrwx 1 root root  8 May 28 09:48 4:28 -> ../tty28
lrwxrwxrwx 1 root root  8 May 28 09:48 4:29 -> ../tty29
lrwxrwxrwx 1 root root  7 May 28 09:48 4:3 -> ../tty3
lrwxrwxrwx 1 root root  8 May 28 09:48 4:30 -> ../tty30
lrwxrwxrwx 1 root root  8 May 28 09:48 4:31 -> ../tty31
lrwxrwxrwx 1 root root  8 May 28 09:48 4:32 -> ../tty32
lrwxrwxrwx 1 root root  8 May 28 09:48 4:33 -> ../tty33
lrwxrwxrwx 1 root root  8 May 28 09:48 4:34 -> ../tty34
lrwxrwxrwx 1 root root  8 May 28 09:48 4:35 -> ../tty35
lrwxrwxrwx 1 root root  8 May 28 09:48 4:36 -> ../tty36
lrwxrwxrwx 1 root root  8 May 28 09:48 4:37 -> ../tty37
lrwxrwxrwx 1 root root  8 May 28 09:48 4:38 -> ../tty38
lrwxrwxrwx 1 root root  8 May 28 09:48 4:39 -> ../tty39
lrwxrwxrwx 1 root root  7 May 28 09:48 4:4 -> ../tty4
lrwxrwxrwx 1 root root  8 May 28 09:48 4:40 -> ../tty40
lrwxrwxrwx 1 root root  8 May 28 09:48 4:41 -> ../tty41
lrwxrwxrwx 1 root root  8 May 28 09:48 4:42 -> ../tty42
lrwxrwxrwx 1 root root  8 May 28 09:48 4:43 -> ../tty43
lrwxrwxrwx 1 root root  8 May 28 09:48 4:44 -> ../tty44
lrwxrwxrwx 1 root root  8 May 28 09:48 4:45 -> ../tty45
lrwxrwxrwx 1 root root  8 May 28 09:48 4:46 -> ../tty46
lrwxrwxrwx 1 root root  8 May 28 09:48 4:47 -> ../tty47
lrwxrwxrwx 1 root root  8 May 28 09:48 4:48 -> ../tty48
lrwxrwxrwx 1 root root  8 May 28 09:48 4:49 -> ../tty49
lrwxrwxrwx 1 root root  7 May 28 09:48 4:5 -> ../tty5
lrwxrwxrwx 1 root root  8 May 28 09:48 4:50 -> ../tty50
lrwxrwxrwx 1 root root  8 May 28 09:48 4:51 -> ../tty51
lrwxrwxrwx 1 root root  8 May 28 09:48 4:52 -> ../tty52
lrwxrwxrwx 1 root root  8 May 28 09:48 4:53 -> ../tty53
lrwxrwxrwx 1 root root  8 May 28 09:48 4:54 -> ../tty54
lrwxrwxrwx 1 root root  8 May 28 09:48 4:55 -> ../tty55
lrwxrwxrwx 1 root root  8 May 28 09:48 4:56 -> ../tty56
lrwxrwxrwx 1 root root  8 May 28 09:48 4:57 -> ../tty57
lrwxrwxrwx 1 root root  8 May 28 09:48 4:58 -> ../tty58
lrwxrwxrwx 1 root root  8 May 28 09:48 4:59 -> ../tty59
lrwxrwxrwx 1 root root  7 May 28 09:48 4:6 -> ../tty6
lrwxrwxrwx 1 root root  8 May 28 09:48 4:60 -> ../tty60
lrwxrwxrwx 1 root root  8 May 28 09:48 4:61 -> ../tty61
lrwxrwxrwx 1 root root  8 May 28 09:48 4:62 -> ../tty62
lrwxrwxrwx 1 root root  8 May 28 09:48 4:63 -> ../tty63
lrwxrwxrwx 1 root root  8 May 28 09:48 4:64 -> ../ttyS0
lrwxrwxrwx 1 root root  8 May 28 09:48 4:65 -> ../ttyS1
lrwxrwxrwx 1 root root  8 May 28 09:48 4:66 -> ../ttyS2
lrwxrwxrwx 1 root root  8 May 28 09:48 4:67 -> ../ttyS3
lrwxrwxrwx 1 root root  7 May 28 09:48 4:7 -> ../tty7
lrwxrwxrwx 1 root root  7 May 28 09:48 4:8 -> ../tty8
lrwxrwxrwx 1 root root  7 May 28 09:48 4:9 -> ../tty9
lrwxrwxrwx 1 root root  6 May 28 09:48 5:0 -> ../tty
lrwxrwxrwx 1 root root 10 May 28 09:48 5:1 -> ../console
lrwxrwxrwx 1 root root  7 May 28 09:48 5:2 -> ../ptmx
lrwxrwxrwx 1 root root  6 May 28 09:48 7:0 -> ../vcs
lrwxrwxrwx 1 root root  7 May 28 09:48 7:1 -> ../vcs1
lrwxrwxrwx 1 root root  7 May 28 09:48 7:128 -> ../vcsa
lrwxrwxrwx 1 root root  8 May 28 09:48 7:129 -> ../vcsa1

/dev/cpu:
total 0
drwxr-xr-x 2 root root      80 May 28 09:48 0
crw------- 1 root root 10, 184 May 28 09:48 microcode

/dev/cpu/0:
total 0
crw------- 1 root root 203, 0 May 28 09:48 cpuid
crw------- 1 root root 202, 0 May 28 09:48 msr

/dev/disk:
total 0
drwxr-xr-x 2 root root 200 May 28 09:49 by-id
drwxr-xr-x 2 root root 120 May 28 09:49 by-path
drwxr-xr-x 2 root root 120 May 28 09:49 by-uuid

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 10 May 28 09:49 dm-name-vg_f15x32-lv_root -> ../../dm-1
lrwxrwxrwx 1 root root 10 May 28 09:49 dm-name-vg_f15x32-lv_swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 28 09:49 dm-uuid-LVM-ST2iMsY0NXQBVWACLd8JxNxTzx0RjGICJMhbP4lPQVWdedaqK4qbXmfMVYiTT5dv -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 28 09:49 dm-uuid-LVM-ST2iMsY0NXQBVWACLd8JxNxTzx0RjGICqXJJLP5pB7RvEgw88as4Mq7z6ejCYheh -> ../../dm-1
lrwxrwxrwx 1 root root  9 May 28 09:48 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb
lrwxrwxrwx 1 root root  9 May 28 09:48 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda
lrwxrwxrwx 1 root root 10 May 28 09:49 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 28 09:49 scsi-0QEMU_QEMU_HARDDISK_hd0-part2 -> ../../sda2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 May 28 09:48 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 May 28 09:49 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 28 09:49 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 May 28 09:48 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 May 28 09:49 32b5f839-1c85-47f4-9d12-f3e8884a1f6a -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 28 09:49 9293385f-3200-4694-8f4b-e20bb8d73c37 -> ../../dm-1
lrwxrwxrwx 1 root root  9 May 28 09:48 b009e5a2-2da0-4f35-9fa2-3aba4571df43 -> ../../sdb
lrwxrwxrwx 1 root root 10 May 28 09:49 d2cd4319-f515-4be2-9a5c-fc8b57b53723 -> ../../sda1

/dev/input:
total 0
drwxr-xr-x 2 root root    100 May 28 09:48 by-path
crw------- 1 root root 13, 64 May 28 09:48 event0
crw-r----- 1 root root 13, 65 May 28 09:48 event1
crw------- 1 root root 13, 63 May 28 09:48 mice
crw-r----- 1 root root 13, 32 May 28 09:48 mouse0

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 May 28 09:48 platform-i8042-serio-0-event-kbd -> ../event0
lrwxrwxrwx 1 root root 9 May 28 09:48 platform-i8042-serio-1-event-mouse -> ../event1
lrwxrwxrwx 1 root root 9 May 28 09:48 platform-i8042-serio-1-mouse -> ../mouse0

/dev/mapper:
total 0
crw------- 1 root root 10, 236 May 28 09:48 control
lrwxrwxrwx 1 root root       7 May 28 09:49 vg_f15x32-lv_root -> ../dm-1
lrwxrwxrwx 1 root root       7 May 28 09:49 vg_f15x32-lv_swap -> ../dm-0

/dev/net:
total 0
crw-rw-rw- 1 root root 10, 200 May 28 09:48 tun

/dev/raw:
total 0
crw------- 1 root root 162, 0 May 28 09:48 rawctl

/dev/snd:
total 0
crw-rw---- 1 root audio 116,  1 May 28 09:48 seq
crw-rw---- 1 root audio 116, 33 May 28 09:48 timer

/dev/vg_f15x32:
total 0
lrwxrwxrwx 1 root root 7 May 28 09:49 lv_root -> ../dm-1
lrwxrwxrwx 1 root root 7 May 28 09:49 lv_swap -> ../dm-0

/dev/virtio-ports:
total 0
lrwxrwxrwx 1 root root 11 May 28 09:48 org.libguestfs.channel.0 -> ../vport1p1
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
/dev/root / ext2 rw,noatime 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=98244k,mode=755 0 0
/dev /dev devtmpfs rw,relatime,size=242844k,nr_inodes=60711,mode=755 0 0
  PV         VG        Fmt  Attr PSize PFree
  /dev/sda2  vg_f15x32 lvm2 a--  7.50g    0 
  VG        #PV #LV #SN Attr   VSize VFree
  vg_f15x32   1   2   0 wz--n- 7.50g    0 
  LV      VG        Attr      LSize Pool Origin Data%  Move Log Copy%  Convert
  lv_root vg_f15x32 -wi-a---- 5.56g                                           
  lv_swap vg_f15x32 -wi-a---- 1.94g                                           
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
Module                  Size  Used by
microcode              23448  0 
i2c_piix4              22106  0 
i2c_core               34096  1 i2c_piix4
virtio_net             27910  0 
virtio_scsi            18006  2 
virtio_blk             18325  0 
virtio_rng             13135  0 
virtio_balloon         13530  0 
virtio_mmio            13157  0 
sparse_keymap          13526  0 
rfkill                 21729  0 
sym53c8xx              76601  0 
scsi_transport_spi     30237  1 sym53c8xx
crc8                   12750  0 
crc_ccitt              12613  0 
crc32                  12714  0 
crc_itu_t              12613  0 
libcrc32c              12603  0 
Tue May 28 09:49:19 BST 2013
uptime: 27.72 0.45
verbose daemon enabled
linux commmand line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color

udevadm settle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [29568ms] appliance is up
libguestfs: trace: launch = 0
libguestfs: trace: list_partitions
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds
libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
libguestfs: trace: vfs_type = "ext4"
libguestfs: trace: vfs_type "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 6.07 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda2
libguestfs: trace: vfs_type = "LVM2_member"
libguestfs: trace: inspect_os
libguestfs: trace: umount_all
guestfsd: main_loop: proc 198 (vfs_type) took 1.53 seconds
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 47 (umount_all) took 0.00 seconds
libguestfs: trace: umount_all = 0
libguestfs: trace: list_filesystems
libguestfs: trace: list_devices
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 7 (list_devices) took 0.00 seconds
libguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: list_partitions
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds
libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
libguestfs: trace: list_md_devices
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds
libguestfs: trace: list_md_devices = []
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_dev "/dev/sda2"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_partnum "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
libguestfs: trace: part_to_partnum = 1
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 1
guestfsd: main_loop: new request, len 0x38
udevadm settle
sfdisk --print-id /dev/sda 1
udevadm settle
[   36.442111] sd 2:0:0:0: [sda]  
[   36.442696] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   36.443087] sd 2:0:0:0: [sda]  
[   36.443087] Sense Key : Aborted Command [current] 
[   36.443087] sd 2:0:0:0: [sda]  
[   36.443087] Add. Sense: I/O process terminated
[   36.443087] sd 2:0:0:0: [sda] CDB: 
[   36.443087] Read(10): 28 00 00 00 00 20 00 00 40 00
[   36.443087] end_request: I/O error, dev sda, sector 32
[   36.443087] Buffer I/O error on device sda, logical block 4
[   36.443087] Buffer I/O error on device sda, logical block 5
[   36.443087] Buffer I/O error on device sda, logical block 6
[   36.443087] Buffer I/O error on device sda, logical block 7
[   36.443087] Buffer I/O error on device sda, logical block 8
[   36.443087] Buffer I/O error on device sda, logical block 9
[   36.443087] Buffer I/O error on device sda, logical block 10
[   36.443087] Buffer I/O error on device sda, logical block 11
[   41.466333] sd 2:0:0:0: [sda]  
[   41.467292] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   41.467292] sd 2:0:0:0: [sda]  
[   41.467292] Sense Key : Aborted Command [current] 
[   41.467292] sd 2:0:0:0: [sda]  
[   41.467292] Add. Sense: I/O process terminated
[   41.467292] sd 2:0:0:0: [sda] CDB: 
[   41.467292] Read(10): 28 00 00 02 00 00 00 00 08 00
[   41.467292] end_request: I/O error, dev sda, sector 131072
[   41.467292] Buffer I/O error on device sda, logical block 16384
[   42.218433] sd 2:0:0:0: [sda]  
[   42.219391] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   42.219391] sd 2:0:0:0: [sda]  
[   42.219391] Sense Key : Aborted Command [current] 
[   42.219391] sd 2:0:0:0: [sda]  
[   42.219391] Add. Sense: I/O process terminated
[   42.219391] sd 2:0:0:0: [sda] CDB: 
[   42.219391] Read(10): 28 00 00 00 10 00 00 00 08 00
[   42.219391] end_request: I/O error, dev sda, sector 4096
[   42.219391] Buffer I/O error on device sda, logical block 512
libguestfs: trace: part_get_mbr_id = 131
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 6.81 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
[   42.780585] sd 2:0:0:0: [sda]  
[   42.781538] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   42.781538] sd 2:0:0:0: [sda]  
[   42.781538] Sense Key : Aborted Command [current] 
[   42.781538] sd 2:0:0:0: [sda]  
[   42.781538] Add. Sense: I/O process terminated
[   42.781538] sd 2:0:0:0: [sda] CDB: 
[   42.781538] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   42.781538] end_request: I/O error, dev sda, sector 1025920
[   42.781538] Buffer I/O error on device sda1, logical block 127984
[   47.810717] sd 2:0:0:0: [sda]  
[   47.811670] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   47.811670] sd 2:0:0:0: [sda]  
[   47.811670] Sense Key : Aborted Command [current] 
[   47.811670] sd 2:0:0:0: [sda]  
[   47.811670] Add. Sense: I/O process terminated
[   47.811670] sd 2:0:0:0: [sda] CDB: 
[   47.811670] Read(10): 28 00 00 00 0b 00 00 00 08 00
[   47.811670] end_request: I/O error, dev sda, sector 2816
[   47.811670] Buffer I/O error on device sda1, logical block 96
[   49.669308] sd 2:0:0:0: [sda]  
[   49.670255] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   49.670255] sd 2:0:0:0: [sda]  
[   49.670255] Sense Key : Aborted Command [current] 
[   49.670255] sd 2:0:0:0: [sda]  
[   49.670255] Add. Sense: I/O process terminated
[   49.670255] sd 2:0:0:0: [sda] CDB: 
[   49.670255] Read(10): 28 00 00 00 0b 70 00 00 08 00
[   49.670255] end_request: I/O error, dev sda, sector 2928
[   49.670255] Buffer I/O error on device sda1, logical block 110
[   51.441204] sd 2:0:0:0: [sda]  
[   51.442171] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   51.442171] sd 2:0:0:0: [sda]  
[   51.442171] Sense Key : Aborted Command [current] 
[   51.442171] sd 2:0:0:0: [sda]  
[   51.442171] Add. Sense: I/O process terminated
[   51.442171] sd 2:0:0:0: [sda] CDB: 
[   51.442171] Read(10): 28 00 00 00 0b f8 00 00 08 00
[   51.442171] end_request: I/O error, dev sda, sector 3064
[   51.442171] Buffer I/O error on device sda1, logical block 127
[   51.902626] sd 2:0:0:0: [sda]  
[   51.903579] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   51.903579] sd 2:0:0:0: [sda]  
[   51.903579] Sense Key : Aborted Command [current] 
[   51.903579] sd 2:0:0:0: [sda]  
[   51.903579] Add. Sense: I/O process terminated
[   51.903579] sd 2:0:0:0: [sda] CDB: 
[   51.903579] Read(10): 28 00 00 00 08 20 00 00 08 00
[   51.903579] end_request: I/O error, dev sda, sector 2080
[   51.903579] Buffer I/O error on device sda1, logical block 4
[   52.166482] sd 2:0:0:0: [sda]  
[   52.167439] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   52.167439] sd 2:0:0:0: [sda]  
[   52.167439] Sense Key : Aborted Command [current] 
[   52.167439] sd 2:0:0:0: [sda]  
[   52.167439] Add. Sense: I/O process terminated
[   52.167439] sd 2:0:0:0: [sda] CDB: 
[   52.167439] Read(10): 28 00 00 00 08 20 00 00 08 00
[   52.167439] end_request: I/O error, dev sda, sector 2080
[   52.167439] Buffer I/O error on device sda1, logical block 4
[   52.730013] sd 2:0:0:0: [sda]  
[   52.730967] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   52.730967] sd 2:0:0:0: [sda]  
[   52.730967] Sense Key : Aborted Command [current] 
[   52.730967] sd 2:0:0:0: [sda]  
[   52.730967] Add. Sense: I/O process terminated
[   52.730967] sd 2:0:0:0: [sda] CDB: 
[   52.730967] Read(10): 28 00 00 02 08 00 00 00 08 00
[   52.730967] end_request: I/O error, dev sda, sector 133120
[   52.730967] Buffer I/O error on device sda1, logical block 16384
[   53.496405] sd 2:0:0:0: [sda]  
[   53.497345] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   53.497345] sd 2:0:0:0: [sda]  
[   53.497345] Sense Key : Aborted Command [current] 
[   53.497345] sd 2:0:0:0: [sda]  
[   53.497345] Add. Sense: I/O process terminated
[   53.497345] sd 2:0:0:0: [sda] CDB: 
[   53.497345] Read(10): 28 00 00 00 18 00 00 00 08 00
[   53.497345] end_request: I/O error, dev sda, sector 6144
[   53.497345] Buffer I/O error on device sda1, logical block 512
libguestfs: trace: vfs_type = "ext4"
libguestfs: trace: part_to_partnum "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 11.70 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_partnum = 2
libguestfs: trace: part_to_dev "/dev/sda2"
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 2
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
udevadm settle
sfdisk --print-id /dev/sda 2
udevadm settle
libguestfs: trace: part_get_mbr_id = 142
libguestfs: trace: vfs_type "/dev/sda2"
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda2
libguestfs: trace: vfs_type = "LVM2_member"
libguestfs: trace: feature_available "lvm2"
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds
libguestfs: trace: feature_available = 1
libguestfs: trace: lvs
guestfsd: main_loop: new request, len 0x28
lvm lvs -o vg_name,lv_name --noheadings --separator /
[   54.543160] sd 2:0:0:0: [sda]  
[   54.544114] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   54.544114] sd 2:0:0:0: [sda]  
[   54.544114] Sense Key : Aborted Command [current] 
[   54.544114] sd 2:0:0:0: [sda]  
[   54.544114] Add. Sense: I/O process terminated
[   54.544114] sd 2:0:0:0: [sda] CDB: 
[   54.544114] Read(10): 28 00 00 00 00 00 00 00 08 00
[   54.544114] end_request: I/O error, dev sda, sector 0
  /dev/sda: read failed after 0 of 4096 at 0: Input/output error
[   54.888973] sd 2:0:0:0: [sda]  
[   54.889940] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   54.889940] sd 2:0:0:0: [sda]  
[   54.889940] Sense Key : Aborted Command [current] 
[   54.889940] sd 2:0:0:0: [sda]  
[   54.889940] Add. Sense: I/O process terminated
[   54.889940] sd 2:0:0:0: [sda] CDB: 
[   54.889940] Read(10): 28 00 00 ff ff 80 00 00 08 00
[   54.889940] end_request: I/O error, dev sda, sector 16777088
  /dev/sda: read failed after 0 of 4096 at 8589869056: Input/output error
[   55.284854] sd 2:0:0:0: [sda]  
[   55.285776] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   55.285776] sd 2:0:0:0: [sda]  
[   55.285776] Sense Key : Aborted Command [current] 
[   55.285776] sd 2:0:0:0: [sda]  
[   55.285776] Add. Sense: I/O process terminated
[   55.285776] sd 2:0:0:0: [sda] CDB: 
[   55.285776] Read(10): 28 00 00 ff ff f0 00 00 08 00
[   55.285776] end_request: I/O error, dev sda, sector 16777200
  /dev/sda: read failed after 0 of 4096 at 8589926400: Input/output error
[   55.558230] sd 2:0:0:0: [sda]  
[   55.559189] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   55.559189] sd 2:0:0:0: [sda]  
[   55.559189] Sense Key : Aborted Command [current] 
[   55.559189] sd 2:0:0:0: [sda]  
[   55.559189] Add. Sense: I/O process terminated
[   55.559189] sd 2:0:0:0: [sda] CDB: 
[   55.559189] Read(10): 28 00 00 4d af 80 00 00 08 00
[   55.559189] end_request: I/O error, dev sda, sector 5091200
  /dev/vg_f15x32/lv_swap: read failed after 0 of 4096 at 2080309248: Input/output error
[   55.824206] sd 2:0:0:0: [sda]  
[   55.825160] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   55.825160] sd 2:0:0:0: [sda]  
[   55.825160] Sense Key : Aborted Command [current] 
[   55.825160] sd 2:0:0:0: [sda]  
[   55.825160] Add. Sense: I/O process terminated
[   55.825160] sd 2:0:0:0: [sda] CDB: 
[   55.825160] Read(10): 28 00 00 4d af f0 00 00 08 00
[   55.825160] end_request: I/O error, dev sda, sector 5091312
  /dev/vg_f15x32/lv_swap: read failed after 0 of 4096 at 2080366592: Input/output error
[   56.106664] sd 2:0:0:0: [sda]  
[   56.107634] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   56.107634] sd 2:0:0:0: [sda]  
[   56.107634] Sense Key : Aborted Command [current] 
[   56.107634] sd 2:0:0:0: [sda]  
[   56.107634] Add. Sense: I/O process terminated
[   56.107634] sd 2:0:0:0: [sda] CDB: 
[   56.107634] Read(10): 28 00 00 0f b0 00 00 00 08 00
[   56.107634] end_request: I/O error, dev sda, sector 1028096
  /dev/vg_f15x32/lv_swap: read failed after 0 of 4096 at 0: Input/output error
[   56.386355] sd 2:0:0:0: [sda]  
[   56.387312] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   56.387312] sd 2:0:0:0: [sda]  
[   56.387312] Sense Key : Aborted Command [current] 
[   56.387312] sd 2:0:0:0: [sda]  
[   56.387312] Add. Sense: I/O process terminated
[   56.387312] sd 2:0:0:0: [sda] CDB: 
[   56.387312] Read(10): 28 00 00 0f b0 08 00 00 08 00
[   56.387312] end_request: I/O error, dev sda, sector 1028104
  /dev/vg_f15x32/lv_swap: read failed after 0 of 4096 at 4096: Input/output error
[   56.981556] sd 2:0:0:0: [sda]  
[   56.982527] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   56.982527] sd 2:0:0:0: [sda]  
[   56.982527] Sense Key : Aborted Command [current] 
[   56.982527] sd 2:0:0:0: [sda]  
[   56.982527] Add. Sense: I/O process terminated
[   56.982527] sd 2:0:0:0: [sda] CDB: 
[   56.982527] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   56.982527] end_request: I/O error, dev sda, sector 1025920
  /dev/sda1: read failed after 0 of 4096 at 524222464: Input/output error
[   57.200624] sd 2:0:0:0: [sda]  
[   57.201581] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   57.201581] sd 2:0:0:0: [sda]  
[   57.201581] Sense Key : Aborted Command [current] 
[   57.201581] sd 2:0:0:0: [sda]  
[   57.201581] Add. Sense: I/O process terminated
[   57.201581] sd 2:0:0:0: [sda] CDB: 
[   57.201581] Read(10): 28 00 00 0f a7 f0 00 00 08 00
[   57.201581] end_request: I/O error, dev sda, sector 1026032
  /dev/sda1: read failed after 0 of 4096 at 524279808: Input/output error
[   57.757272] sd 2:0:0:0: [sda]  
[   57.758225] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   57.758225] sd 2:0:0:0: [sda]  
[   57.758225] Sense Key : Aborted Command [current] 
[   57.758225] sd 2:0:0:0: [sda]  
[   57.758225] Add. Sense: I/O process terminated
[   57.758225] sd 2:0:0:0: [sda] CDB: 
[   57.758225] Read(10): 28 00 00 00 08 00 00 00 08 00
[   57.758225] end_request: I/O error, dev sda, sector 2048
  /dev/sda1: read failed after 0 of 4096 at 0: Input/output error
[   58.465900] sd 2:0:0:0: [sda]  
[   58.466858] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   58.466858] sd 2:0:0:0: [sda]  
[   58.466858] Sense Key : Aborted Command [current] 
[   58.466858] sd 2:0:0:0: [sda]  
[   58.466858] Add. Sense: I/O process terminated
[   58.466858] sd 2:0:0:0: [sda] CDB: 
[   58.466858] Read(10): 28 00 00 ff af 80 00 00 08 00
[   58.466858] end_request: I/O error, dev sda, sector 16756608
  /dev/vg_f15x32/lv_root: read failed after 0 of 4096 at 5972623360: Input/output error
[   59.083976] sd 2:0:0:0: [sda]  
[   59.084930] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   59.084930] sd 2:0:0:0: [sda]  
[   59.084930] Sense Key : Aborted Command [current] 
[   59.084930] sd 2:0:0:0: [sda]  
[   59.084930] Add. Sense: I/O process terminated
[   59.084930] sd 2:0:0:0: [sda] CDB: 
[   59.084930] Read(10): 28 00 00 ff af f0 00 00 08 00
  /dev/vg_f15x32/lv_root: read failed after 0 of 4096 at 5972680704: Input/output error
libguestfs: trace: lvs = ["/dev/vg_f15x32/lv_root", "/dev/vg_f15x32/lv_swap"]
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_root"
guestfsd: main_loop: proc 11 (lvs) took 6.33 seconds
guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_root
[   60.632218] sd 2:0:0:0: [sda]  
[   60.633178] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   60.633178] sd 2:0:0:0: [sda]  
[   60.633178] Sense Key : Aborted Command [current] 
[   60.633178] sd 2:0:0:0: [sda]  
[   60.633178] Add. Sense: I/O process terminated
[   60.633178] sd 2:0:0:0: [sda] CDB: 
[   60.633178] Read(10): 28 00 00 ff ae f8 00 00 08 00
[   60.633178] blk_update_request: 1 callbacks suppressed
[   60.633178] end_request: I/O error, dev sda, sector 16756472
[   60.633178] Buffer I/O error on device dm-1, logical block 1458143
[   60.944936] sd 2:0:0:0: [sda]  
[   60.945895] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   60.945895] sd 2:0:0:0: [sda]  
[   60.945895] Sense Key : Aborted Command [current] 
[   60.945895] sd 2:0:0:0: [sda]  
[   60.945895] Add. Sense: I/O process terminated
[   60.945895] sd 2:0:0:0: [sda] CDB: 
[   60.945895] Read(10): 28 00 00 ff ae f8 00 00 08 00
[   60.945895] end_request: I/O error, dev sda, sector 16756472
[   60.945895] Buffer I/O error on device dm-1, logical block 1458143
[   61.272680] sd 2:0:0:0: [sda]  
[   61.273643] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   61.273643] sd 2:0:0:0: [sda]  
[   61.273643] Sense Key : Aborted Command [current] 
[   61.273643] sd 2:0:0:0: [sda]  
[   61.273643] Add. Sense: I/O process terminated
[   61.273643] sd 2:0:0:0: [sda] CDB: 
[   61.273643] Read(10): 28 00 00 ff ae 70 00 00 08 00
[   61.273643] end_request: I/O error, dev sda, sector 16756336
[   61.273643] Buffer I/O error on device dm-1, logical block 1458126
[   61.854872] sd 2:0:0:0: [sda]  
[   61.855816] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   61.855816] sd 2:0:0:0: [sda]  
[   61.855816] Sense Key : Aborted Command [current] 
[   61.855816] sd 2:0:0:0: [sda]  
[   61.855816] Add. Sense: I/O process terminated
[   61.855816] sd 2:0:0:0: [sda] CDB: 
[   61.855816] Read(10): 28 00 00 4d b8 00 00 00 08 00
[   61.855816] end_request: I/O error, dev sda, sector 5093376
[   61.855816] Buffer I/O error on device dm-1, logical block 256
[   62.113617] sd 2:0:0:0: [sda]  
[   62.114584] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   62.114584] sd 2:0:0:0: [sda]  
[   62.114584] Sense Key : Aborted Command [current] 
[   62.114584] sd 2:0:0:0: [sda]  
[   62.114584] Add. Sense: I/O process terminated
[   62.114584] sd 2:0:0:0: [sda] CDB: 
[   62.114584] Read(10): 28 00 00 4d b8 00 00 00 08 00
[   62.114584] end_request: I/O error, dev sda, sector 5093376
[   62.114584] Buffer I/O error on device dm-1, logical block 256
[   63.298838] sd 2:0:0:0: [sda]  
[   63.299760] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   63.299760] sd 2:0:0:0: [sda]  
[   63.299760] Sense Key : Aborted Command [current] 
[   63.299760] sd 2:0:0:0: [sda]  
[   63.299760] Add. Sense: I/O process terminated
[   63.299760] sd 2:0:0:0: [sda] CDB: 
[   63.299760] Read(10): 28 00 00 4d b0 78 00 00 08 00
[   63.299760] end_request: I/O error, dev sda, sector 5091448
[   63.299760] Buffer I/O error on device dm-1, logical block 15
[   67.025485] sd 2:0:0:0: [sda]  
[   67.026443] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   67.026443] sd 2:0:0:0: [sda]  
[   67.026443] Sense Key : Aborted Command [current] 
[   67.026443] sd 2:0:0:0: [sda]  
[   67.026443] Add. Sense: I/O process terminated
[   67.026443] sd 2:0:0:0: [sda] CDB: 
[   67.026443] Read(10): 28 00 00 4d b3 00 00 00 08 00
[   67.026443] end_request: I/O error, dev sda, sector 5092096
[   67.026443] Buffer I/O error on device dm-1, logical block 96
[   67.361991] sd 2:0:0:0: [sda]  
[   67.362949] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   67.362949] sd 2:0:0:0: [sda]  
[   67.362949] Sense Key : Aborted Command [current] 
[   67.362949] sd 2:0:0:0: [sda]  
[   67.362949] Add. Sense: I/O process terminated
[   67.362949] sd 2:0:0:0: [sda] CDB: 
[   67.362949] Read(10): 28 00 00 4d b3 00 00 00 08 00
[   67.362949] end_request: I/O error, dev sda, sector 5092096
[   67.362949] Buffer I/O error on device dm-1, logical block 96
[   67.792167] sd 2:0:0:0: [sda]  
[   67.793117] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   67.793117] sd 2:0:0:0: [sda]  
[   67.793117] Sense Key : Aborted Command [current] 
[   67.793117] sd 2:0:0:0: [sda]  
[   67.793117] Add. Sense: I/O process terminated
[   67.793117] sd 2:0:0:0: [sda] CDB: 
[   67.793117] Read(10): 28 00 00 4f b0 00 00 00 08 00
[   67.793117] end_request: I/O error, dev sda, sector 5222400
[   67.793117] Buffer I/O error on device dm-1, logical block 16384
[   68.106731] sd 2:0:0:0: [sda]  
[   68.107707] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   68.107707] sd 2:0:0:0: [sda]  
[   68.107707] Sense Key : Aborted Command [current] 
[   68.107707] sd 2:0:0:0: [sda]  
[   68.107707] Add. Sense: I/O process terminated
[   68.107707] sd 2:0:0:0: [sda] CDB: 
[   68.107707] Read(10): 28 00 00 4d c0 00 00 00 08 00
[   68.107707] end_request: I/O error, dev sda, sector 5095424
[   68.107707] Buffer I/O error on device dm-1, logical block 512
libguestfs: trace: vfs_type = "ext4"
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_swap"
guestfsd: main_loop: proc 198 (vfs_type) took 7.72 seconds
guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_swap
[   68.475085] sd 2:0:0:0: [sda]  
[   68.476044] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   68.476044] sd 2:0:0:0: [sda]  
[   68.476044] Sense Key : Aborted Command [current] 
[   68.476044] sd 2:0:0:0: [sda]  
[   68.476044] Add. Sense: I/O process terminated
[   68.476044] sd 2:0:0:0: [sda] CDB: 
[   68.476044] Read(10): 28 00 00 4d af 80 00 00 08 00
[   68.476044] end_request: I/O error, dev sda, sector 5091200
[   68.476044] Buffer I/O error on device dm-0, logical block 507888
[   70.410596] sd 2:0:0:0: [sda]  
[   70.411558] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   70.411558] sd 2:0:0:0: [sda]  
[   70.411558] Sense Key : Aborted Command [current] 
[   70.411558] sd 2:0:0:0: [sda]  
[   70.411558] Add. Sense: I/O process terminated
[   70.411558] sd 2:0:0:0: [sda] CDB: 
[   70.411558] Read(10): 28 00 00 4d ae f8 00 00 08 00
[   70.411558] end_request: I/O error, dev sda, sector 5091064
[   70.411558] Buffer I/O error on device dm-0, logical block 507871
[   70.885988] sd 2:0:0:0: [sda]  
[   70.886948] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   70.886948] sd 2:0:0:0: [sda]  
[   70.886948] Sense Key : Aborted Command [current] 
[   70.886948] sd 2:0:0:0: [sda]  
[   70.886948] Add. Sense: I/O process terminated
[   70.886948] sd 2:0:0:0: [sda] CDB: 
[   70.886948] Read(10): 28 00 00 4d ae 70 00 00 08 00
[   70.886948] end_request: I/O error, dev sda, sector 5090928
[   70.886948] Buffer I/O error on device dm-0, logical block 507854
[   71.050881] sd 2:0:0:0: [sda]  
[   71.051841] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   71.051841] sd 2:0:0:0: [sda]  
[   71.051841] Sense Key : Aborted Command [current] 
[   71.051841] sd 2:0:0:0: [sda]  
[   71.051841] Add. Sense: I/O process terminated
[   71.051841] sd 2:0:0:0: [sda] CDB: 
[   71.051841] Read(10): 28 00 00 4d ae 70 00 00 08 00
[   71.051841] end_request: I/O error, dev sda, sector 5090928
[   71.051841] Buffer I/O error on device dm-0, logical block 507854
[   71.360204] sd 2:0:0:0: [sda]  
[   71.361162] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   71.361162] sd 2:0:0:0: [sda]  
[   71.361162] Sense Key : Aborted Command [current] 
[   71.361162] sd 2:0:0:0: [sda]  
[   71.361162] Add. Sense: I/O process terminated
[   71.361162] sd 2:0:0:0: [sda] CDB: 
[   71.361162] Read(10): 28 00 00 0f b8 00 00 00 08 00
[   71.361162] end_request: I/O error, dev sda, sector 1030144
[   71.361162] Buffer I/O error on device dm-0, logical block 256
[   71.669165] sd 2:0:0:0: [sda]  
[   71.670129] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   71.670129] sd 2:0:0:0: [sda]  
[   71.670129] Sense Key : Aborted Command [current] 
[   71.670129] sd 2:0:0:0: [sda]  
[   71.670129] Add. Sense: I/O process terminated
[   71.670129] sd 2:0:0:0: [sda] CDB: 
[   71.670129] Read(10): 28 00 00 0f b8 00 00 00 08 00
[   71.670129] end_request: I/O error, dev sda, sector 1030144
[   71.670129] Buffer I/O error on device dm-0, logical block 256
[   72.113065] sd 2:0:0:0: [sda]  
[   72.114019] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   72.114019] sd 2:0:0:0: [sda]  
[   72.114019] Sense Key : Aborted Command [current] 
[   72.114019] sd 2:0:0:0: [sda]  
[   72.114019] Add. Sense: I/O process terminated
[   72.114019] sd 2:0:0:0: [sda] CDB: 
[   72.114019] Read(10): 28 00 00 0f b1 00 00 00 08 00
[   72.774592] sd 2:0:0:0: [sda]  
[   72.775549] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   72.775549] sd 2:0:0:0: [sda]  
[   72.775549] Sense Key : Aborted Command [current] 
[   72.775549] sd 2:0:0:0: [sda]  
[   72.775549] Add. Sense: I/O process terminated
[   72.775549] sd 2:0:0:0: [sda] CDB: 
[   72.775549] Read(10): 28 00 00 0f b1 18 00 00 08 00
[   72.775549] blk_update_request: 1 callbacks suppressed
[   72.775549] end_request: I/O error, dev sda, sector 1028376
[   72.775549] quiet_error: 1 callbacks suppressed
[   72.775549] Buffer I/O error on device dm-0, logical block 35
[   73.104887] sd 2:0:0:0: [sda]  
[   73.105846] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   73.105846] sd 2:0:0:0: [sda]  
[   73.105846] Sense Key : Aborted Command [current] 
[   73.105846] sd 2:0:0:0: [sda]  
[   73.105846] Add. Sense: I/O process terminated
[   73.105846] sd 2:0:0:0: [sda] CDB: 
[   73.105846] Read(10): 28 00 00 0f b1 30 00 00 08 00
[   73.105846] end_request: I/O error, dev sda, sector 1028400
[   73.105846] Buffer I/O error on device dm-0, logical block 38
[   75.642757] sd 2:0:0:0: [sda]  
[   75.643723] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   75.643723] sd 2:0:0:0: [sda]  
[   75.643723] Sense Key : Aborted Command [current] 
[   75.643723] sd 2:0:0:0: [sda]  
[   75.643723] Add. Sense: I/O process terminated
[   75.643723] sd 2:0:0:0: [sda] CDB: 
[   75.643723] Read(10): 28 00 00 0f b3 00 00 00 08 00
[   75.643723] end_request: I/O error, dev sda, sector 1028864
[   75.643723] Buffer I/O error on device dm-0, logical block 96
[   75.882818] sd 2:0:0:0: [sda]  
[   75.883759] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   75.883759] sd 2:0:0:0: [sda]  
[   75.883759] Sense Key : Aborted Command [current] 
[   75.883759] sd 2:0:0:0: [sda]  
[   75.883759] Add. Sense: I/O process terminated
[   75.883759] sd 2:0:0:0: [sda] CDB: 
[   75.883759] Read(10): 28 00 00 0f b3 00 00 00 08 00
[   75.883759] end_request: I/O error, dev sda, sector 1028864
[   75.883759] Buffer I/O error on device dm-0, logical block 96
[   76.192131] sd 2:0:0:0: [sda]  
[   76.193416] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   76.195335] sd 2:0:0:0: [sda]  
[   76.196101] Sense Key : Aborted Command [current] 
[   76.198088] sd 2:0:0:0: [sda]  
[   76.199508] Add. Sense: I/O process terminated
[   76.201579] sd 2:0:0:0: [sda] CDB: 
[   76.202479] Read(10): 28 00 00 0f b0 20 00 00 08 00
[   76.206198] end_request: I/O error, dev sda, sector 1028128
[   76.211324] Buffer I/O error on device dm-0, logical block 4
[   76.434296] sd 2:0:0:0: [sda]  
[   76.435249] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   76.435249] sd 2:0:0:0: [sda]  
[   76.435249] Sense Key : Aborted Command [current] 
[   76.435249] sd 2:0:0:0: [sda]  
[   76.435249] Add. Sense: I/O process terminated
[   76.435249] sd 2:0:0:0: [sda] CDB: 
[   76.435249] Read(10): 28 00 00 11 b0 00 00 00 08 00
[   76.435249] end_request: I/O error, dev sda, sector 1159168
[   76.435249] Buffer I/O error on device dm-0, logical block 16384
[   76.719145] sd 2:0:0:0: [sda]  
[   76.720098] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   76.720098] sd 2:0:0:0: [sda]  
[   76.720098] Sense Key : Aborted Command [current] 
[   76.720098] sd 2:0:0:0: [sda]  
[   76.720098] Add. Sense: I/O process terminated
[   76.720098] sd 2:0:0:0: [sda] CDB: 
[   76.720098] Read(10): 28 00 00 0f c0 00 00 00 08 00
[   76.720098] end_request: I/O error, dev sda, sector 1032192
[   76.720098] Buffer I/O error on device dm-0, logical block 512
libguestfs: trace: vfs_type = "swap"
libguestfs: trace: feature_available "ldm"
guestfsd: main_loop: proc 198 (vfs_type) took 8.59 seconds
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds
libguestfs: trace: feature_available = 1
libguestfs: trace: list_ldm_volumes
guestfsd: main_loop: new request, len 0x28
libguestfs: trace: list_ldm_volumes = []
libguestfs: trace: list_ldm_partitions
guestfsd: main_loop: proc 380 (list_ldm_volumes) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
guestfsd: main_llibguestfs: trace: list_ldm_partitions = []
libguestfs: trace: list_filesystems = ["/dev/sda1", "ext4", "/dev/vg_f15x32/lv_root", "ext4", "/dev/vg_f15x32/lv_swap", "swap"]
libguestfs: trace: vfs_type "/dev/sda1"
oop: proc 381 (list_ldm_partitions) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
[   77.024916] sd 2:0:0:0: [sda]  
[   77.025874] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   77.025874] sd 2:0:0:0: [sda]  
[   77.025874] Sense Key : Aborted Command [current] 
[   77.025874] sd 2:0:0:0: [sda]  
[   77.025874] Add. Sense: I/O process terminated
[   77.025874] sd 2:0:0:0: [sda] CDB: 
[   77.025874] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   77.025874] end_request: I/O error, dev sda, sector 1025920
[   77.025874] Buffer I/O error on device sda1, logical block 127984
[   77.480223] sd 2:0:0:0: [sda]  
[   77.481176] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   77.481176] sd 2:0:0:0: [sda]  
[   77.481176] Sense Key : Aborted Command [current] 
[   77.481176] sd 2:0:0:0: [sda]  
[   77.481176] Add. Sense: I/O process terminated
[   77.481176] sd 2:0:0:0: [sda] CDB: 
[   77.481176] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   77.481176] end_request: I/O error, dev sda, sector 1025920
[   77.481176] Buffer I/O error on device sda1, logical block 127984
[   77.781220] sd 2:0:0:0: [sda]  
[   77.782112] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   77.782190] sd 2:0:0:0: [sda]  
[   77.782190] Sense Key : Aborted Command [current] 
[   77.782190] sd 2:0:0:0: [sda]  
[   77.782190] Add. Sense: I/O process terminated
[   77.782190] sd 2:0:0:0: [sda] CDB: 
[   77.782190] Read(10): 28 00 00 0f a7 f0 00 00 08 00
[   77.782190] end_request: I/O error, dev sda, sector 1026032
[   77.782190] Buffer I/O error on device sda1, logical block 127998
[   78.092947] sd 2:0:0:0: [sda]  
[   78.093906] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   78.093906] sd 2:0:0:0: [sda]  
[   78.093906] Sense Key : Aborted Command [current] 
[   78.093906] sd 2:0:0:0: [sda]  
[   78.093906] Add. Sense: I/O process terminated
[   78.093906] sd 2:0:0:0: [sda] CDB: 
[   78.093906] Read(10): 28 00 00 0f a7 f0 00 00 08 00
[   78.425721] sd 2:0:0:0: [sda]  
[   78.426671] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   78.426671] sd 2:0:0:0: [sda]  
[   78.426671] Sense Key : Aborted Command [current] 
[   78.426671] sd 2:0:0:0: [sda]  
[   78.426671] Add. Sense: I/O process terminated
[   78.426671] sd 2:0:0:0: [sda] CDB: 
[   78.426671] Read(10): 28 00 00 00 08 00 00 00 08 00
[   78.426671] blk_update_request: 1 callbacks suppressed
[   78.426671] end_request: I/O error, dev sda, sector 2048
[   78.426671] quiet_error: 1 callbacks suppressed
[   78.426671] Buffer I/O error on device sda1, logical block 0
[   78.788890] sd 2:0:0:0: [sda]  
[   78.789841] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   78.789841] sd 2:0:0:0: [sda]  
[   78.789841] Sense Key : Aborted Command [current] 
[   78.789841] sd 2:0:0:0: [sda]  
[   78.789841] Add. Sense: I/O process terminated
[   78.789841] sd 2:0:0:0: [sda] CDB: 
[   78.789841] Read(10): 28 00 00 00 08 00 00 00 08 00
[   78.789841] end_request: I/O error, dev sda, sector 2048
[   78.789841] Buffer I/O error on device sda1, logical block 0
[   79.414974] sd 2:0:0:0: [sda]  
[   79.415927] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   79.415927] sd 2:0:0:0: [sda]  
[   79.415927] Sense Key : Aborted Command [current] 
[   79.415927] sd 2:0:0:0: [sda]  
[   79.415927] Add. Sense: I/O process terminated
[   79.415927] sd 2:0:0:0: [sda] CDB: 
[   79.415927] Read(10): 28 00 00 0f a6 f8 00 00 08 00
[   79.415927] end_request: I/O error, dev sda, sector 1025784
[   79.415927] Buffer I/O error on device sda1, logical block 127967
[   80.085785] sd 2:0:0:0: [sda]  
[   80.086738] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.086738] sd 2:0:0:0: [sda]  
[   80.086738] Sense Key : Aborted Command [current] 
[   80.086738] sd 2:0:0:0: [sda]  
[   80.086738] Add. Sense: I/O process terminated
[   80.086738] sd 2:0:0:0: [sda] CDB: 
[   80.086738] Read(10): 28 00 00 00 10 00 00 00 08 00
[   80.086738] end_request: I/O error, dev sda, sector 4096
[   80.086738] Buffer I/O error on device sda1, logical block 256
[   80.357169] sd 2:0:0:0: [sda]  
[   80.358139] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.358139] sd 2:0:0:0: [sda]  
[   80.358139] Sense Key : Aborted Command [current] 
[   80.358139] sd 2:0:0:0: [sda]  
[   80.358139] Add. Sense: I/O process terminated
[   80.358139] sd 2:0:0:0: [sda] CDB: 
[   80.358139] Read(10): 28 00 00 00 08 80 00 00 08 00
[   80.358139] end_request: I/O error, dev sda, sector 2176
[   80.358139] Buffer I/O error on device sda1, logical block 16
[   80.582258] sd 2:0:0:0: [sda]  
[   80.583232] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.583232] sd 2:0:0:0: [sda]  
[   80.583232] Sense Key : Aborted Command [current] 
[   80.583232] sd 2:0:0:0: [sda]  
[   80.583232] Add. Sense: I/O process terminated
[   80.583232] sd 2:0:0:0: [sda] CDB: 
[   80.583232] Read(10): 28 00 00 00 09 00 00 00 08 00
[   80.583232] end_request: I/O error, dev sda, sector 2304
[   80.583232] Buffer I/O error on device sda1, logical block 32
[   80.776188] sd 2:0:0:0: [sda]  
[   80.777139] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.777139] sd 2:0:0:0: [sda]  
[   80.777139] Sense Key : Aborted Command [current] 
[   80.777139] sd 2:0:0:0: [sda]  
[   80.777139] Add. Sense: I/O process terminated
[   80.777139] sd 2:0:0:0: [sda] CDB: 
[   80.777139] Read(10): 28 00 00 00 0a 00 00 00 08 00
[   80.777139] end_request: I/O error, dev sda, sector 2560
[   80.777139] Buffer I/O error on device sda1, logical block 64
[   81.004332] sd 2:0:0:0: [sda]  
[   81.005290] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   81.005290] sd 2:0:0:0: [sda]  
[   81.005290] Sense Key : Aborted Command [current] 
[   81.005290] sd 2:0:0:0: [sda]  
[   81.005290] Add. Sense: I/O process terminated
[   81.005290] sd 2:0:0:0: [sda] CDB: 
[   81.005290] Read(10): 28 00 00 02 08 00 00 00 08 00
[   81.005290] end_request: I/O error, dev sda, sector 133120
[   81.005290] Buffer I/O error on device sda1, logical block 16384
[   81.372473] sd 2:0:0:0: [sda]  
[   81.373428] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   81.373428] sd 2:0:0:0: [sda]  
[   81.373428] Sense Key : Aborted Command [current] 
[   81.373428] sd 2:0:0:0: [sda]  
[   81.373428] Add. Sense: I/O process terminated
[   81.373428] sd 2:0:0:0: [sda] CDB: 
[   81.373428] Read(10): 28 00 00 00 18 00 00 00 08 00
[   81.373428] end_request: I/O error, dev sda, sector 6144
[   81.373428] Buffer I/O error on device sda1, logical block 512
libguestfs: trace: vfs_type = "ext4"
libguestfs: check_for_filesystem_on: /dev/sda1 (ext4)
libguestfs: trace: internal_parse_mountable "/dev/sda1"
guestfsd: main_loop: proc 198 (vfs_type) took 4.62 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *>
libguestfs: trace: is_whole_device "/dev/sda1"
guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
libguestfs: trace: is_whole_device = 0
libguestfs: trace: mount_ro "/dev/sda1" "/"
guestfsd: main_loop: proc 395 (is_whole_device) took 0.00 seconds
guestfsd: main_loop: new request, len 0x40
mount -o ro /dev/sda1 /sysroot/
[   81.737680] sd 2:0:0:0: [sda]  
[   81.738643] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   81.738643] sd 2:0:0:0: [sda]  
[   81.738643] Sense Key : Aborted Command [current] 
[   81.738643] sd 2:0:0:0: [sda]  
[   81.738643] Add. Sense: I/O process terminated
[   81.738643] sd 2:0:0:0: [sda] CDB: 
[   81.738643] Read(10): 28 00 00 00 09 18 00 00 08 00
[   81.738643] end_request: I/O error, dev sda, sector 2328
[   81.738643] Buffer I/O error on device sda1, logical block 35
[   82.192207] sd 2:0:0:0: [sda]  
[   82.193171] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   82.193171] sd 2:0:0:0: [sda]  
[   82.193171] Sense Key : Aborted Command [current] 
[   82.193171] sd 2:0:0:0: [sda]  
[   82.193171] Add. Sense: I/O process terminated
[   82.193171] sd 2:0:0:0: [sda] CDB: 
[   82.193171] Read(10): 28 00 00 00 09 48 00 00 08 00
[   82.721011] sd 2:0:0:0: [sda]  
[   82.721969] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   82.721969] sd 2:0:0:0: [sda]  
[   82.721969] Sense Key : Aborted Command [current] 
[   82.721969] sd 2:0:0:0: [sda]  
[   82.721969] Add. Sense: I/O process terminated
[   82.721969] sd 2:0:0:0: [sda] CDB: 
[   82.721969] Read(10): 28 00 00 00 09 90 00 00 08 00
[   83.285561] sd 2:0:0:0: [sda]  
[   83.286519] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   83.286519] sd 2:0:0:0: [sda]  
[   83.286519] Sense Key : Aborted Command [current] 
[   83.286519] sd 2:0:0:0: [sda]  
[   83.286519] Add. Sense: I/O process terminated
[   83.286519] sd 2:0:0:0: [sda] CDB: 
[   83.286519] Read(10): 28 00 00 00 09 d8 00 00 08 00
[   83.887996] sd 2:0:0:0: [sda]  
[   83.888954] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   83.888954] sd 2:0:0:0: [sda]  
[   83.888954] Sense Key : Aborted Command [current] 
[   83.888954] sd 2:0:0:0: [sda]  
[   83.888954] Add. Sense: I/O process terminated
[   83.888954] sd 2:0:0:0: [sda] CDB: 
[   83.888954] Read(10): 28 00 00 00 0b 00 00 00 08 00
[   83.888954] blk_update_request: 3 callbacks suppressed
[   83.888954] end_request: I/O error, dev sda, sector 2816
[   83.888954] quiet_error: 3 callbacks suppressed
[   83.888954] Buffer I/O error on device sda1, logical block 96
[   84.329930] sd 2:0:0:0: [sda]  
[   84.330885] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   84.330885] sd 2:0:0:0: [sda]  
[   84.330885] Sense Key : Aborted Command [current] 
[   84.330885] sd 2:0:0:0: [sda]  
[   84.330885] Add. Sense: I/O process terminated
[   84.330885] sd 2:0:0:0: [sda] CDB: 
[   84.330885] Read(10): 28 00 00 00 0b 00 00 00 08 00
[   84.330885] end_request: I/O error, dev sda, sector 2816
[   84.330885] Buffer I/O error on device sda1, logical block 96
[   84.883405] sd 2:0:0:0: [sda]  
[   84.884358] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   84.884358] sd 2:0:0:0: [sda]  
[   84.884358] Sense Key : Aborted Command [current] 
[   84.884358] sd 2:0:0:0: [sda]  
[   84.884358] Add. Sense: I/O process terminated
[   84.884358] sd 2:0:0:0: [sda] CDB: 
[   84.884358] Read(10): 28 00 00 00 08 20 00 00 08 00
[   84.884358] end_request: I/O error, dev sda, sector 2080
[   84.884358] Buffer I/O error on device sda1, logical block 4
[   85.248295] sd 2:0:0:0: [sda]  
[   85.249253] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   85.249253] sd 2:0:0:0: [sda]  
[   85.249253] Sense Key : Aborted Command [current] 
[   85.249253] sd 2:0:0:0: [sda]  
[   85.249253] Add. Sense: I/O process terminated
[   85.249253] sd 2:0:0:0: [sda] CDB: 
[   85.249253] Read(10): 28 00 00 00 08 20 00 00 08 00
[   85.249253] end_request: I/O error, dev sda, sector 2080
[   85.249253] Buffer I/O error on device sda1, logical block 4
[   85.416664] sd 2:0:0:0: [sda]  
[   85.417624] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   85.417624] sd 2:0:0:0: [sda]  
[   85.417624] Sense Key : Aborted Command [current] 
[   85.417624] sd 2:0:0:0: [sda]  
[   85.417624] Add. Sense: I/O process terminated
[   85.417624] sd 2:0:0:0: [sda] CDB: 
[   85.417624] Read(10): 28 00 00 00 08 02 00 00 02 00
[   85.417624] end_request: I/O error, dev sda, sector 2050
[   85.417624] EXT4-fs (sda1): unable to read superblock
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
guestfsd: error: /dev/sda1 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
guestfsd: main_llibguestfs: trace: mount_ro = -1 (error)
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_root"
oop: proc 73 (mount_ro) took 4.00 seconds
guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_root
[   85.672935] sd 2:0:0:0: [sda]  
[   85.673893] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   85.673893] sd 2:0:0:0: [sda]  
[   85.673893] Sense Key : Aborted Command [current] 
[   85.673893] sd 2:0:0:0: [sda]  
[   85.673893] Add. Sense: I/O process terminated
[   85.673893] sd 2:0:0:0: [sda] CDB: 
[   85.673893] Read(10): 28 00 00 ff af 80 00 00 08 00
[   85.673893] end_request: I/O error, dev sda, sector 16756608
[   85.693188] Buffer I/O error on device dm-1, logical block 1458160
[   85.941950] sd 2:0:0:0: [sda]  
[   85.942915] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   85.942915] sd 2:0:0:0: [sda]  
[   85.942915] Sense Key : Aborted Command [current] 
[   85.942915] sd 2:0:0:0: [sda]  
[   85.942915] Add. Sense: I/O process terminated
[   85.942915] sd 2:0:0:0: [sda] CDB: 
[   85.942915] Read(10): 28 00 00 ff af 80 00 00 08 00
[   85.942915] end_request: I/O error, dev sda, sector 16756608
[   85.942915] Buffer I/O error on device dm-1, logical block 1458160
[   86.275760] sd 2:0:0:0: [sda]  
[   86.276314] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   86.276735] sd 2:0:0:0: [sda]  
[   86.276735] Sense Key : Aborted Command [current] 
[   86.276735] sd 2:0:0:0: [sda]  
[   86.276735] Add. Sense: I/O process terminated
[   86.276735] sd 2:0:0:0: [sda] CDB: 
[   86.276735] Read(10): 28 00 00 ff af f0 00 00 08 00
[   86.276735] end_request: I/O error, dev sda, sector 16756720
[   86.276735] Buffer I/O error on device dm-1, logical block 1458174
[   86.611420] sd 2:0:0:0: [sda]  
[   86.612378] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   86.612378] sd 2:0:0:0: [sda]  
[   86.612378] Sense Key : Aborted Command [current] 
[   86.612378] sd 2:0:0:0: [sda]  
[   86.612378] Add. Sense: I/O process terminated
[   86.612378] sd 2:0:0:0: [sda] CDB: 
[   86.612378] Read(10): 28 00 00 ff af f0 00 00 08 00
[   86.612378] end_request: I/O error, dev sda, sector 16756720
[   86.612378] Buffer I/O error on device dm-1, logical block 1458174
[   86.912128] sd 2:0:0:0: [sda]  
[   86.912911] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   86.913086] sd 2:0:0:0: [sda]  
[   86.913086] Sense Key : Aborted Command [current] 
[   86.913086] sd 2:0:0:0: [sda]  
[   86.913086] Add. Sense: I/O process terminated
[   86.913086] sd 2:0:0:0: [sda] CDB: 
[   86.913086] Read(10): 28 00 00 4d b0 00 00 00 08 00
[   86.913086] end_request: I/O error, dev sda, sector 5091328
[   86.913086] Buffer I/O error on device dm-1, logical block 0
[   87.256612] sd 2:0:0:0: [sda]  
[   87.257572] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   87.257572] sd 2:0:0:0: [sda]  
[   87.257572] Sense Key : Aborted Command [current] 
[   87.257572] sd 2:0:0:0: [sda]  
[   87.257572] Add. Sense: I/O process terminated
[   87.257572] sd 2:0:0:0: [sda] CDB: 
[   87.257572] Read(10): 28 00 00 4d b0 00 00 00 08 00
[   87.257572] Buffer I/O error on device dm-1, logical block 0
[   87.500171] sd 2:0:0:0: [sda]  
[   87.501130] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   87.501130] sd 2:0:0:0: [sda]  
[   87.501130] Sense Key : Aborted Command [current] 
[   87.501130] sd 2:0:0:0: [sda]  
[   87.501130] Add. Sense: I/O process terminated
[   87.501130] sd 2:0:0:0: [sda] CDB: 
[   87.501130] Read(10): 28 00 00 4d b0 08 00 00 08 00
[   87.767893] sd 2:0:0:0: [sda]  
[   87.768846] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   87.768846] sd 2:0:0:0: [sda]  
[   87.768846] Sense Key : Aborted Command [current] 
[   87.768846] sd 2:0:0:0: [sda]  
[   87.768846] Add. Sense: I/O process terminated
[   87.768846] sd 2:0:0:0: [sda] CDB: 
[   87.768846] Read(10): 28 00 00 ff ae f8 00 00 08 00
[   87.941979] sd 2:0:0:0: [sda]  
[   87.942932] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   87.942932] sd 2:0:0:0: [sda]  
[   87.942932] Sense Key : Aborted Command [current] 
[   87.942932] sd 2:0:0:0: [sda]  
[   87.942932] Add. Sense: I/O process terminated
[   87.942932] sd 2:0:0:0: [sda] CDB: 
[   87.942932] Read(10): 28 00 00 ff af 00 00 00 08 00
[   88.283602] sd 2:0:0:0: [sda]  
[   88.284555] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   88.284555] sd 2:0:0:0: [sda]  
[   88.284555] Sense Key : Aborted Command [current] 
[   88.284555] sd 2:0:0:0: [sda]  
[   88.284555] Add. Sense: I/O process terminated
[   88.284555] sd 2:0:0:0: [sda] CDB: 
[   88.284555] Read(10): 28 00 00 4d b8 00 00 00 08 00
[   88.740695] sd 2:0:0:0: [sda]  
[   88.741644] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   88.741644] sd 2:0:0:0: [sda]  
[   88.741644] Sense Key : Aborted Command [current] 
[   88.741644] sd 2:0:0:0: [sda]  
[   88.741644] Add. Sense: I/O process terminated
[   88.741644] sd 2:0:0:0: [sda] CDB: 
[   88.741644] Read(10): 28 00 00 4d b0 78 00 00 08 00
[   89.074575] sd 2:0:0:0: [sda]  
[   89.075546] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   89.075546] sd 2:0:0:0: [sda]  
[   89.075546] Sense Key : Aborted Command [current] 
[   89.075546] sd 2:0:0:0: [sda]  
[   89.075546] Add. Sense: I/O process terminated
[   89.075546] sd 2:0:0:0: [sda] CDB: 
[   89.075546] Read(10): 28 00 00 4d b0 78 00 00 08 00
[   90.037728] sd 2:0:0:0: [sda]  
[   90.038682] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   90.038682] sd 2:0:0:0: [sda]  
[   90.038682] Sense Key : Aborted Command [current] 
[   90.038682] sd 2:0:0:0: [sda]  
[   90.038682] Add. Sense: I/O process terminated
[   90.038682] sd 2:0:0:0: [sda] CDB: 
[   90.038682] Read(10): 28 00 00 4d b1 00 00 00 08 00
[   90.038682] blk_update_request: 7 callbacks suppressed
[   90.038682] end_request: I/O error, dev sda, sector 5091584
[   90.038682] quiet_error: 6 callbacks suppressed
[   90.038682] Buffer I/O error on device dm-1, logical block 32
[   90.312726] sd 2:0:0:0: [sda]  
[   90.313695] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   90.313695] sd 2:0:0:0: [sda]  
[   90.313695] Sense Key : Aborted Command [current] 
[   90.313695] sd 2:0:0:0: [sda]  
[   90.313695] Add. Sense: I/O process terminated
[   90.313695] sd 2:0:0:0: [sda] CDB: 
[   90.313695] Read(10): 28 00 00 4d b2 00 00 00 08 00
[   90.313695] end_request: I/O error, dev sda, sector 5091840
[   90.313695] Buffer I/O error on device dm-1, logical block 64
[   90.540970] sd 2:0:0:0: [sda]  
[   90.541926] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   90.541926] sd 2:0:0:0: [sda]  
[   90.541926] Sense Key : Aborted Command [current] 
[   90.541926] sd 2:0:0:0: [sda]  
[   90.541926] Add. Sense: I/O process terminated
[   90.541926] sd 2:0:0:0: [sda] CDB: 
[   90.541926] Read(10): 28 00 00 4f b0 00 00 00 08 00
[   90.541926] end_request: I/O error, dev sda, sector 5222400
[   90.541926] Buffer I/O error on device dm-1, logical block 16384
[   90.807315] sd 2:0:0:0: [sda]  
[   90.808267] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   90.808267] sd 2:0:0:0: [sda]  
[   90.808267] Sense Key : Aborted Command [current] 
[   90.808267] sd 2:0:0:0: [sda]  
[   90.808267] Add. Sense: I/O process terminated
[   90.808267] sd 2:0:0:0: [sda] CDB: 
[   90.808267] Read(10): 28 00 00 4d c0 00 00 00 08 00
[   90.808267] end_request: I/O error, dev sda, sector 5095424
[   90.808267] Buffer I/O error on device dm-1, logical block 512
libguestfs: trace: vfs_type = "ext4"
libguestfs: check_for_filesystem_on: /dev/vg_f15x32/lv_root (ext4)
libguestfs: trace: internal_parse_mountable "/dev/vg_f15x32/lv_root"
guestfsd: main_loop: proc 198 (vfs_type) took 5.40 seconds
guestfsd: main_loop: new request, len 0x44
guestfsd: main_loop: proc 396 (internalibguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *>
libguestfs: trace: is_whole_device "/dev/vg_f15x32/lv_root"
l_parse_mountable) took 0.00 seconds
guestfsd: main_loop: new request, len 0x44
guestfsd: main_lolibguestfs: trace: is_whole_device = 0
libguestfs: trace: mount_ro "/dev/vg_f15x32/lv_root" "/"
op: proc 395 (is_whole_device) took 0.00 seconds
guestfsd: main_loop: new request, len 0x4c
mount -o ro /dev/vg_f15x32/lv_root /sysroot/
[   91.166183] sd 2:0:0:0: [sda]  
[   91.167142] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   91.167142] sd 2:0:0:0: [sda]  
[   91.167142] Sense Key : Aborted Command [current] 
[   91.167142] sd 2:0:0:0: [sda]  
[   91.167142] Add. Sense: I/O process terminated
[   91.167142] sd 2:0:0:0: [sda] CDB: 
[   91.167142] Read(10): 28 00 00 ff ae 70 00 00 08 00
[   91.167142] end_request: I/O error, dev sda, sector 16756336
[   91.167142] Buffer I/O error on device dm-1, logical block 1458126
[   91.457524] sd 2:0:0:0: [sda]  
[   91.458481] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   91.458481] sd 2:0:0:0: [sda]  
[   91.458481] Sense Key : Aborted Command [current] 
[   91.458481] sd 2:0:0:0: [sda]  
[   91.458481] Add. Sense: I/O process terminated
[   91.458481] sd 2:0:0:0: [sda] CDB: 
[   91.458481] Read(10): 28 00 00 ff ae 70 00 00 08 00
[   91.458481] end_request: I/O error, dev sda, sector 16756336
[   91.458481] Buffer I/O error on device dm-1, logical block 1458126
[   91.895679] sd 2:0:0:0: [sda]  
[   91.896645] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   91.896645] sd 2:0:0:0: [sda]  
[   91.896645] Sense Key : Aborted Command [current] 
[   91.896645] sd 2:0:0:0: [sda]  
[   91.896645] Add. Sense: I/O process terminated
[   91.896645] sd 2:0:0:0: [sda] CDB: 
[   91.896645] Read(10): 28 00 00 4d b1 68 00 00 08 00
[   91.896645] end_request: I/O error, dev sda, sector 5091688
[   91.896645] Buffer I/O error on device dm-1, logical block 45
[   92.385680] sd 2:0:0:0: [sda]  
[   92.386314] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   92.386657] sd 2:0:0:0: [sda]  
[   92.386657] Sense Key : Aborted Command [current] 
[   92.386657] sd 2:0:0:0: [sda]  
[   92.386657] Add. Sense: I/O process terminated
[   92.386657] sd 2:0:0:0: [sda] CDB: 
[   92.386657] Read(10): 28 00 00 4d b1 88 00 00 08 00
[   92.386657] end_request: I/O error, dev sda, sector 5091720
[   92.386657] Buffer I/O error on device dm-1, logical block 49
[   92.876984] sd 2:0:0:0: [sda]  
[   92.877947] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   92.877947] sd 2:0:0:0: [sda]  
[   92.877947] Sense Key : Aborted Command [current] 
[   92.877947] sd 2:0:0:0: [sda]  
[   92.877947] Add. Sense: I/O process terminated
[   92.877947] sd 2:0:0:0: [sda] CDB: 
[   92.877947] Read(10): 28 00 00 4d b1 c8 00 00 08 00
[   92.877947] end_request: I/O error, dev sda, sector 5091784
[   92.877947] Buffer I/O error on device dm-1, logical block 57
[   93.474397] sd 2:0:0:0: [sda]  
[   93.475358] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   93.475358] sd 2:0:0:0: [sda]  
[   93.475358] Sense Key : Aborted Command [current] 
[   93.475358] sd 2:0:0:0: [sda]  
[   93.475358] Add. Sense: I/O process terminated
[   93.475358] sd 2:0:0:0: [sda] CDB: 
[   93.475358] Read(10): 28 00 00 4d b1 f8 00 00 08 00
[   93.475358] end_request: I/O error, dev sda, sector 5091832
[   93.475358] Buffer I/O error on device dm-1, logical block 63
[   93.732916] sd 2:0:0:0: [sda]  
[   93.733856] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   93.733856] sd 2:0:0:0: [sda]  
[   93.733856] Sense Key : Aborted Command [current] 
[   93.733856] sd 2:0:0:0: [sda]  
[   93.733856] Add. Sense: I/O process terminated
[   93.733856] sd 2:0:0:0: [sda] CDB: 
[   93.733856] Read(10): 28 00 00 4d b1 f8 00 00 08 00
[   94.079219] sd 2:0:0:0: [sda]  
[   94.080172] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   94.080172] sd 2:0:0:0: [sda]  
[   94.080172] Sense Key : Aborted Command [current] 
[   94.080172] sd 2:0:0:0: [sda]  
[   94.080172] Add. Sense: I/O process terminated
[   94.080172] sd 2:0:0:0: [sda] CDB: 
[   94.080172] Read(10): 28 00 00 4d b0 20 00 00 08 00
[   94.657522] sd 2:0:0:0: [sda]  
[   94.658478] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   94.658478] sd 2:0:0:0: [sda]  
[   94.658478] Sense Key : Aborted Command [current] 
[   94.658478] sd 2:0:0:0: [sda]  
[   94.658478] Add. Sense: I/O process terminated
[   94.658478] sd 2:0:0:0: [sda] CDB: 
[   94.658478] Read(10): 28 00 00 4d b0 20 00 00 08 00
[   95.098511] sd 2:0:0:0: [sda]  
[   95.099477] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   95.099477] sd 2:0:0:0: [sda]  
[   95.099477] Sense Key : Aborted Command [current] 
[   95.099477] sd 2:0:0:0: [sda]  
[   95.099477] Add. Sense: I/O process terminated
[   95.099477] sd 2:0:0:0: [sda] CDB: 
[   95.099477] Read(10): 28 00 00 4d b0 02 00 00 02 00
[   95.099477] EXT4-fs (dm-1): unable to read superblock
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_f15x32-lv_root,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
guestfsd: error: /dev/vg_f15x32/lv_root on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_f15x32-lv_root,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
libguestfs: trace: mount_ro = -1 (error)
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_swap"
guestfsd: main_loop: proc 73 (mount_ro) took 4.27 seconds
guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_swap
[   95.340184] sd 2:0:0:0: [sda]  
[   95.341144] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   95.341144] sd 2:0:0:0: [sda]  
[   95.341144] Sense Key : Aborted Command [current] 
[   95.341144] sd 2:0:0:0: [sda]  
[   95.341144] Add. Sense: I/O process terminated
[   95.341144] sd 2:0:0:0: [sda] CDB: 
[   95.341144] Read(10): 28 00 00 4d af 80 00 00 08 00
[   95.341144] blk_update_request: 4 callbacks suppressed
[   95.341144] end_request: I/O error, dev sda, sector 5091200
[   95.341144] quiet_error: 3 callbacks suppressed
[   95.341144] Buffer I/O error on device dm-0, logical block 507888
[   95.577395] sd 2:0:0:0: [sda]  
[   95.578354] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   95.578354] sd 2:0:0:0: [sda]  
[   95.578354] Sense Key : Aborted Command [current] 
[   95.578354] sd 2:0:0:0: [sda]  
[   95.578354] Add. Sense: I/O process terminated
[   95.578354] sd 2:0:0:0: [sda] CDB: 
[   95.578354] Read(10): 28 00 00 4d af 80 00 00 08 00
[   95.578354] end_request: I/O error, dev sda, sector 5091200
[   95.578354] Buffer I/O error on device dm-0, logical block 507888
[   95.868336] sd 2:0:0:0: [sda]  
[   95.869294] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   95.869294] sd 2:0:0:0: [sda]  
[   95.869294] Sense Key : Aborted Command [current] 
[   95.869294] sd 2:0:0:0: [sda]  
[   95.869294] Add. Sense: I/O process terminated
[   95.869294] sd 2:0:0:0: [sda] CDB: 
[   95.869294] Read(10): 28 00 00 4d af f0 00 00 08 00
[   95.869294] end_request: I/O error, dev sda, sector 5091312
[   95.869294] Buffer I/O error on device dm-0, logical block 507902
[   96.216866] sd 2:0:0:0: [sda]  
[   96.217789] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   96.217789] sd 2:0:0:0: [sda]  
[   96.217789] Sense Key : Aborted Command [current] 
[   96.217789] sd 2:0:0:0: [sda]  
[   96.217789] Add. Sense: I/O process terminated
[   96.217789] sd 2:0:0:0: [sda] CDB: 
[   96.217789] Read(10): 28 00 00 4d af f0 00 00 08 00
[   96.217789] end_request: I/O error, dev sda, sector 5091312
[   96.217789] Buffer I/O error on device dm-0, logical block 507902
[   96.565618] sd 2:0:0:0: [sda]  
[   96.566571] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   96.566571] sd 2:0:0:0: [sda]  
[   96.566571] Sense Key : Aborted Command [current] 
[   96.566571] sd 2:0:0:0: [sda]  
[   96.566571] Add. Sense: I/O process terminated
[   96.566571] sd 2:0:0:0: [sda] CDB: 
[   96.566571] Read(10): 28 00 00 0f b0 00 00 00 08 00
[   96.566571] end_request: I/O error, dev sda, sector 1028096
[   96.566571] Buffer I/O error on device dm-0, logical block 0
[   96.853095] sd 2:0:0:0: [sda]  
[   96.854048] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   96.854048] sd 2:0:0:0: [sda]  
[   96.854048] Sense Key : Aborted Command [current] 
[   96.854048] sd 2:0:0:0: [sda]  
[   96.854048] Add. Sense: I/O process terminated
[   96.854048] sd 2:0:0:0: [sda] CDB: 
[   96.854048] Read(10): 28 00 00 0f b0 00 00 00 08 00
[   96.854048] end_request: I/O error, dev sda, sector 1028096
[   96.854048] Buffer I/O error on device dm-0, logical block 0
[   97.108045] sd 2:0:0:0: [sda]  
[   97.10

[-- Attachment #3: with-f15x32-guest.log-2 --]
[-- Type: text/plain, Size: 89056 bytes --]

libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_tmpdir "/home/rjones/d/libguestfs/tmp"
libguestfs: trace: set_tmpdir = 0
libguestfs: trace: set_cachedir "/home/rjones/d/libguestfs/tmp"
libguestfs: trace: set_cachedir = 0
libguestfs: trace: set_path "/home/rjones/d/libguestfs/appliance"
libguestfs: trace: set_path = 0
libguestfs: trace: set_qemu "/home/rjones/d/qemu/qemu.wrapper"
libguestfs: trace: set_qemu = 0
libguestfs: trace: set_backend "direct"
libguestfs: trace: set_backend = 0
libguestfs: create: flags = 0, handle = 0x19545b0, program = guestfish
libguestfs: trace: add_drive "/scratch/f15x32.img" "readonly:true" "format:raw" "protocol:http" "server:tcp:192.168.0.249"
libguestfs: trace: add_drive = 0
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/home/rjones/d/libguestfs/tmp"
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/home/rjones/d/libguestfs/tmp/libguestfs0qoIDL
libguestfs: launch: umask=0002
libguestfs: launch: euid=1000
libguestfs: command: run: supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ /home/rjones/d/libguestfs/appliance/supermin.d
libguestfs: command: run: \ x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /home/rjones/d/libguestfs/appliance/supermin.d
checking modpath /lib/modules/3.8.4-202.fc18.x86_64 is a directory
picked vmlinuz-3.8.4-202.fc18.x86_64 because modpath /lib/modules/3.8.4-202.fc18.x86_64 exists
checking modpath /lib/modules/3.9.2-200.fc18.x86_64 is a directory
picked vmlinuz-3.9.2-200.fc18.x86_64 because modpath /lib/modules/3.9.2-200.fc18.x86_64 exists
checking modpath /lib/modules/3.8.11-200.fc18.x86_64 is a directory
picked vmlinuz-3.8.11-200.fc18.x86_64 because modpath /lib/modules/3.8.11-200.fc18.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/base.img
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/daemon.img
supermin helper [00000ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/hostfiles
supermin helper [00032ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/init.img
supermin helper [00032ms] visiting /home/rjones/d/libguestfs/appliance/supermin.d/udev-rules.img
supermin helper [00032ms] adding kernel modules
supermin helper [00057ms] finished creating appliance
libguestfs: checksum of existing appliance: 5c381131263eed720e649356153b7d653d58f9c3132e9379c07d9e27b4bb53a9
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/home/rjones/d/libguestfs/tmp"
libguestfs: [00061ms] begin testing qemu features
libguestfs: command: run: /home/rjones/d/qemu/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
libguestfs: command: run: /home/rjones/d/qemu/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -version
libguestfs: qemu version 1.5
libguestfs: command: run: /home/rjones/d/qemu/qemu.wrapper
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00164ms] finished testing qemu features
[00165ms] /home/rjones/d/qemu/qemu.wrapper \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -device virtio-scsi-pci,id=scsi \
    -drive file=http://192.168.0.249/scratch/f15x32.img,snapshot=on,format=raw,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/home/rjones/d/libguestfs/tmp/.guestfs-1000/root.30517,snapshot=on,id=appliance,if=none,cache=unsafe \
    -device scsi-hd,drive=appliance \
    -machine accel=kvm:tcg \
    -m 500 \
    -no-reboot \
    -no-hpet \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/home/rjones/d/libguestfs/tmp/libguestfs0qoIDL/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -kernel /home/rjones/d/libguestfs/tmp/.guestfs-1000/kernel.30517 \
    -initrd /home/rjones/d/libguestfs/tmp/.guestfs-1000/initrd.30517 \
    -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color'\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 11/03/11
SGABIOS $Id$ (pbonzini@yakj.usersys.redhat.com) Thu Nov  3 13:33:51 UTC 2011
Term: 80x24
4 0
\x1b[2J
SeaBIOS (version rel-1.7.2.1-0-g88cb66e-20130228_091731-rincewind.home.kraxel.org)


Booting from ROM...


Probing EDD (edd=off to disable)... ok

\x1b[2J[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.9.2-200.fc18.x86_64 (mockbuild@bkernel02) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Mon May 13 13:59:47 UTC 2013
[    0.000000] Command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001f3fdfff] usable
[    0.000000] BIOS-e820: [mem 0x000000001f3fe000-0x000000001f3fffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.4 present.
[    0.000000] Hypervisor detected: KVM
[    0.000000] No AGP bridge found
[    0.000000] e820: last_pfn = 0x1f3fe max_arch_pfn = 0x400000000
[    0.000000] PAT not supported by CPU.
[    0.000000] found SMP MP-table at [mem 0x000fdb00-0x000fdb0f] mapped at [ffff8800000fdb00]
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000] init_memory_mapping: [mem 0x1f000000-0x1f1fffff]
[    0.000000] init_memory_mapping: [mem 0x1c000000-0x1effffff]
[    0.000000] init_memory_mapping: [mem 0x00100000-0x1bffffff]
[    0.000000] init_memory_mapping: [mem 0x1f200000-0x1f3fdfff]
[    0.000000] RAMDISK: [mem 0x1f2ba000-0x1f3effff]
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000001f3fdfff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x1f3fdfff]
[    0.000000]   NODE_DATA [mem 0x1f2a6000-0x1f2b9fff]
[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[    0.000000] kvm-clock: cpu 0, msr 0:1f3fc001, boot clock
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
[    0.000000]   DMA32    [mem 0x01000000-0xffffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00001000-0x0009efff]
[    0.000000]   node   0: [mem 0x00100000-0x1f3fdfff]
[    0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[    0.000000] Intel MultiProcessor Specification v1.4
[    0.000000] MPTABLE: OEM ID: BOCHSCPU
[    0.000000] MPTABLE: Product ID: 0.1         
[    0.000000] MPTABLE: APIC at: 0xFEE00000
[    0.000000] Processor #0 (Bootup-CPU)
[    0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[    0.000000] Processors: 1
[    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[    0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[    0.000000] e820: [mem 0x1f400000-0xfeffbfff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on KVM
[    0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88001f000000 s85248 r8192 d21248 u2097152
[    0.000000] kvm-clock: cpu 0, msr 0:1f3fc001, primary cpu clock
[    0.000000] KVM setup async PF for cpu 0
[    0.000000] kvm-stealtime: cpu 0, msr 1f00dec0
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 125879
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
[    0.000000] Disabling memory control group subsystem
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Memory: 485668k/511992k available (6582k kernel code, 392k absent, 25932k reserved, 6652k data, 1356k init)
[    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] \tRCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:8448 nr_irqs:256 16
[    0.000000] Console: colour *CGA 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] tsc: Detected 2893.430 MHz processor
[    0.002000] Calibrating delay loop (skipped) preset value.. 5786.86 BogoMIPS (lpj=2893430)
[    0.002003] pid_max: default: 32768 minimum: 301
[    0.002376] Security Framework initialized
[    0.002695] SELinux:  Disabled at boot.
[    0.003054] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.003675] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.004043] Mount-cache hash table entries: 256
[    0.004502] Initializing cgroup subsys cpuacct
[    0.005003] Initializing cgroup subsys memory
[    0.005341] Initializing cgroup subsys devices
[    0.006003] Initializing cgroup subsys freezer
[    0.006396] Initializing cgroup subsys net_cls
[    0.006731] Initializing cgroup subsys blkio
[    0.007003] Initializing cgroup subsys perf_event
[    0.007473] mce: CPU supports 10 MCE banks
[    0.008033] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.008033] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.008033] tlb_flushall_shift: 6
[    0.018481] Freeing SMP alternatives: 24k freed
[    0.021398] ftrace: allocating 24496 entries in 96 pages
[    0.028788] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.029002] smpboot: CPU0: Intel QEMU Virtual CPU version 1.5.50 (fam: 06, model: 02, stepping: 03)
[    0.132071] Performance Events: unsupported p6 CPU model 2 no PMU driver, software events only.
[    0.133525] Brought up 1 CPUs
[    0.133789] smpboot: Total of 1 processors activated (5786.86 BogoMIPS)
[    0.134183] NMI watchdog: disabled (cpu0): hardware events not enabled
[    0.135064] devtmpfs: initialized
[    0.136040] atomic64 test passed for x86-64 platform with CX8 and with SSE
[    0.136635] RTC time:  8:50:43, date: 05/28/13
[    0.137005] NET: Registered protocol family 16
[    0.137542] PCI: Using configuration type 1 for base access
[    0.138440] bio: create slab <bio-0> at 0
[    0.138826] ACPI: Interpreter disabled.
[    0.139031] vgaarb: loaded
[    0.139292] SCSI subsystem initialized
[    0.139644] usbcore: registered new interface driver usbfs
[    0.140007] usbcore: registered new interface driver hub
[    0.140406] usbcore: registered new device driver usb
[    0.141032] PCI: Probing PCI hardware
[    0.141326] PCI host bridge to bus 0000:00
[    0.141631] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.142002] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffff]
[    0.142518] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.147117] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
[    0.147712] pci 0000:00:01.3: quirk: [io  0xb100-0xb10f] claimed by PIIX4 SMB
[    0.159315] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[    0.160142] NetLabel: Initializing
[    0.160420] NetLabel:  domain hash size = 128
[    0.160810] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.161014] NetLabel:  unlabeled traffic allowed by default
[    0.162050] Switching to clocksource kvm-clock
[    0.164702] pnp: PnP ACPI: disabled
[    0.165824] NET: Registered protocol family 2
[    0.166334] TCP established hash table entries: 4096 (order: 4, 65536 bytes)
[    0.166862] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[    0.167418] TCP: Hash tables configured (established 4096 bind 4096)
[    0.167892] TCP: reno registered
[    0.168232] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.168661] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.169234] NET: Registered protocol family 1
[    0.169591] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.170086] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.170604] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.171140] Unpacking initramfs...
[    0.195306] Freeing initrd memory: 1240k freed
[    0.195856] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.196703] Initialise module verification
[    0.197099] audit: initializing netlink socket (disabled)
[    0.197528] type=2000 audit(1369731043.197:1): initialized
[    0.213579] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.214835] VFS: Disk quotas dquot_6.5.2
[    0.215251] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.215982] msgmni has been set to 951
[    0.216514] alg: No test for stdrng (krng)
[    0.216829] NET: Registered protocol family 38
[    0.217299] Key type asymmetric registered
[    0.217605] Asymmetric key parser 'x509' registered
[    0.217984] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.218667] io scheduler noop registered
[    0.218961] io scheduler deadline registered
[    0.219381] io scheduler cfq registered (default)
[    0.219808] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.220304] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.220868] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.221589] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 34
[    0.224213] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 35
[    0.225869] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.247703] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.306147] Non-volatile memory driver v1.3
[    0.306521] Linux agpgart interface v0.103
[    0.307347] loop: module loaded
[    0.308636] scsi0 : ata_piix
[    0.308962] scsi1 : ata_piix
[    0.309249] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
[    0.309814] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
[    0.310464] libphy: Fixed MDIO Bus: probed
[    0.310812] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.311407] ehci-pci: EHCI PCI platform driver
[    0.311751] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.312304] uhci_hcd: USB Universal Host Controller Interface driver
[    0.312858] usbcore: registered new interface driver usbserial
[    0.313422] usbcore: registered new interface driver usbserial_generic
[    0.313916] usbserial: USB Serial support registered for generic
[    0.314493] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    0.315575] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.315984] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.316447] mousedev: PS/2 mouse device common for all mice
[    0.317142] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.317703] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[    0.318557] device-mapper: uevent: version 1.0.3
[    0.319346] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
[    0.320209] cpuidle: using governor ladder
[    0.320539] cpuidle: using governor menu
[    0.320882] EFI Variables Facility v0.08 2004-May-17
[    0.321386] hidraw: raw HID events driver (C) Jiri Kosina
[    0.321839] usbcore: registered new interface driver usbhid
[    0.322347] usbhid: USB HID core driver
[    0.322700] drop_monitor: Initializing network drop monitor service
[    0.323262] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.323771] TCP: cubic registered
[    0.324070] Initializing XFRM netlink socket
[    0.324462] NET: Registered protocol family 10
[    0.325031] mip6: Mobile IPv6
[    0.325278] NET: Registered protocol family 17
[    0.325805] Loading module verification certificates
[    0.326951] MODSIGN: Loaded cert 'Fedora kernel signing key: 1968afea379aa6a6ae888ee5c96a89632abff2ad'
[    0.327718] registered taskstats version 1
[    0.328585]   Magic number: 13:731:827
[    0.329852] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    0.480458] Freeing unused kernel memory: 1356k freed
[    0.481011] Write protecting the kernel read-only data: 12288k
[    0.483908] Freeing unused kernel memory: 1600k freed
[    0.486362] Freeing unused kernel memory: 1328k freed
supermin: mounting /proc
supermin: uptime: 0.48 0.12
supermin: ext2 mini initrd starting up: 4.1.1 zlib
supermin: cmdline: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
supermin: mounting /sys
supermin: internal insmod libcrc32c.ko
supermin: internal insmod crc32c-intel.ko
insmod: init_module: crc32c-intel.ko: No such device
supermin: internal insmod crc32-pclmul.ko
[    0.492175] PCLMULQDQ-NI instructions are not detected.
insmod: init_module: crc32-pclmul.ko: No such device
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc32.ko
[    0.495136] alg: No test for crc32 (crc32-table)
supermin: internal insmod crc-ccitt.ko
supermin: internal insmod crc8.ko
supermin: internal insmod scsi_transport_spi.ko
supermin: internal insmod sym53c8xx.ko
supermin: internal insmod rfkill.ko
supermin: internal insmod sparse-keymap.ko
supermin: internal insmod ideapad-laptop.ko
insmod: init_module: ideapad-laptop.ko: No such device
supermin: internal insmod virtio_mmio.ko
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio-rng.ko
supermin: internal insmod virtio_blk.ko
supermin: internal insmod virtio_scsi.ko
[    0.510558] scsi2 : Virtio SCSI HBA
[    0.513071] scsi 2:0:0:0: Direct-Access     QEMU     QEMU HARDDISK    1.5. PQ: 0 ANSI: 5
[    0.514146] scsi 2:0:1:0: Direct-Access     QEMU     QEMU HARDDISK    1.5. PQ: 0 ANSI: 5
[    0.536911] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    0.537425] sd 2:0:0:0: [sda] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
[    0.538336] sd 2:0:0:0: [sda] Write Protect is off
[    0.538757] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    0.539594] sd 2:0:1:0: Attached scsi generic sg1 type 0
[    0.540392] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.541599] sd 2:0:1:0: [sdb] Write Protect is off
[    0.542382] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.544491]  sda: sda1 sda2
[    0.545082]  sdb: unknown partition table
[    0.545888] sd 2:0:0:0: [sda] Attached SCSI disk
[    0.546830] sd 2:0:1:0: [sdb] Attached SCSI disk
supermin: internal insmod virtio_net.ko
supermin: picked /sys/block/sdb/dev as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[    0.550901] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
[    0.568970] EXT4-fs (sdb): mounted filesystem without journal. Opts: 
supermin: chroot
Starting /init script ...
[    0.652482] systemd-udevd[58]: starting version 201
[    0.709623] ACPI Exception: AE_BAD_PARAMETER, Thread 493289472 could not acquire Mutex [0x1] (20130117/utmutex-278)
[    0.710547] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
[    0.781887] microcode: CPU0 sig=0x623, pf=0x0, revision=0x1
[    0.782974] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[    1.164110] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input1
Cannot find device "eth0"
Cannot find device "eth0"
RTNETLINK answers: Network is unreachable
mdadm: No arrays found in config file or automatically
  Reading all physical volumes.  This may take a while...
  Found volume group "vg_f15x32" using metadata type lvm2
[   13.798050] bio: create slab <bio-1> at 1
  2 logical volume(s) in volume group "vg_f15x32" now active
[
]
/init: line 112: /sys/block/vd*/queue/rotational: No such file or directory
/dev:
total 0
crw------- 1 root root  10, 235 May 28 09:50 autofs
drwxr-xr-x 2 root root      320 May 28 09:50 block
drwxr-xr-x 2 root root       80 May 28 09:50 bsg
crw------- 1 root root  10, 234 May 28 09:50 btrfs-control
drwxr-xr-x 2 root root     2240 May 28 09:50 char
crw------- 1 root root   5,   1 May 28 09:50 console
lrwxrwxrwx 1 root root       11 May 28 09:50 core -> /proc/kcore
drwxr-xr-x 3 root root       80 May 28 09:50 cpu
crw------- 1 root root  10,  62 May 28 09:50 cpu_dma_latency
drwxr-xr-x 5 root root      100 May 28 09:50 disk
brw-rw---- 1 root disk 253,   0 May 28 09:51 dm-0
brw-rw---- 1 root disk 253,   1 May 28 09:51 dm-1
lrwxrwxrwx 1 root root       13 May 28 09:50 fd -> /proc/self/fd
crw-rw-rw- 1 root root   1,   7 May 28 09:50 full
crw-rw-rw- 1 root root  10, 229 May 28 09:50 fuse
drwxr-xr-x 3 root root      140 May 28 09:50 input
crw-r--r-- 1 root root   1,  11 May 28 09:50 kmsg
crw------- 1 root root  10, 237 May 28 09:50 loop-control
brw------- 1 root root   7,   0 May 28 09:50 loop0
brw------- 1 root root   7,   1 May 28 09:50 loop1
brw------- 1 root root   7,   2 May 28 09:50 loop2
brw------- 1 root root   7,   3 May 28 09:50 loop3
brw------- 1 root root   7,   4 May 28 09:50 loop4
brw------- 1 root root   7,   5 May 28 09:50 loop5
brw------- 1 root root   7,   6 May 28 09:50 loop6
brw------- 1 root root   7,   7 May 28 09:50 loop7
drwxr-xr-x 2 root root      100 May 28 09:51 mapper
crw------- 1 root root  10, 227 May 28 09:50 mcelog
crw------- 1 root root   1,   1 May 28 09:50 mem
drwxr-xr-x 2 root root       60 May 28 09:50 net
crw------- 1 root root  10,  61 May 28 09:50 network_latency
crw------- 1 root root  10,  60 May 28 09:50 network_throughput
crw-rw-rw- 1 root root   1,   3 May 28 09:50 null
crw------- 1 root root  10, 144 May 28 09:50 nvram
crw------- 1 root root   1,  12 May 28 09:50 oldmem
crw------- 1 root root   1,   4 May 28 09:50 port
crw------- 1 root root 108,   0 May 28 09:50 ppp
crw-rw-rw- 1 root root   5,   2 May 28 09:50 ptmx
crw-rw-rw- 1 root root   1,   8 May 28 09:50 random
drwxr-xr-x 2 root root       60 May 28 09:50 raw
crw------- 1 root root  10,  59 May 28 09:50 rfkill
crw------- 1 root root 254,   0 May 28 09:50 rtc0
brw------- 1 root root   8,   0 May 28 09:50 sda
brw------- 1 root root   8,   1 May 28 09:50 sda1
brw------- 1 root root   8,   2 May 28 09:50 sda2
brw------- 1 root root   8,  16 May 28 09:50 sdb
crw------- 1 root root  21,   0 May 28 09:50 sg0
crw------- 1 root root  21,   1 May 28 09:50 sg1
crw------- 1 root root  10, 231 May 28 09:50 snapshot
drwxr-xr-x 2 root root       80 May 28 09:50 snd
lrwxrwxrwx 1 root root       15 May 28 09:50 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root       15 May 28 09:50 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root       15 May 28 09:50 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root   5,   0 May 28 09:50 tty
crw------- 1 root root   4,   0 May 28 09:50 tty0
crw------- 1 root root   4,   1 May 28 09:50 tty1
crw------- 1 root root   4,  10 May 28 09:50 tty10
crw------- 1 root root   4,  11 May 28 09:50 tty11
crw------- 1 root root   4,  12 May 28 09:50 tty12
crw------- 1 root root   4,  13 May 28 09:50 tty13
crw------- 1 root root   4,  14 May 28 09:50 tty14
crw------- 1 root root   4,  15 May 28 09:50 tty15
crw------- 1 root root   4,  16 May 28 09:50 tty16
crw------- 1 root root   4,  17 May 28 09:50 tty17
crw------- 1 root root   4,  18 May 28 09:50 tty18
crw------- 1 root root   4,  19 May 28 09:50 tty19
crw------- 1 root root   4,   2 May 28 09:50 tty2
crw------- 1 root root   4,  20 May 28 09:50 tty20
crw------- 1 root root   4,  21 May 28 09:50 tty21
crw------- 1 root root   4,  22 May 28 09:50 tty22
crw------- 1 root root   4,  23 May 28 09:50 tty23
crw------- 1 root root   4,  24 May 28 09:50 tty24
crw------- 1 root root   4,  25 May 28 09:50 tty25
crw------- 1 root root   4,  26 May 28 09:50 tty26
crw------- 1 root root   4,  27 May 28 09:50 tty27
crw------- 1 root root   4,  28 May 28 09:50 tty28
crw------- 1 root root   4,  29 May 28 09:50 tty29
crw------- 1 root root   4,   3 May 28 09:50 tty3
crw------- 1 root root   4,  30 May 28 09:50 tty30
crw------- 1 root root   4,  31 May 28 09:50 tty31
crw------- 1 root root   4,  32 May 28 09:50 tty32
crw------- 1 root root   4,  33 May 28 09:50 tty33
crw------- 1 root root   4,  34 May 28 09:50 tty34
crw------- 1 root root   4,  35 May 28 09:50 tty35
crw------- 1 root root   4,  36 May 28 09:50 tty36
crw------- 1 root root   4,  37 May 28 09:50 tty37
crw------- 1 root root   4,  38 May 28 09:50 tty38
crw------- 1 root root   4,  39 May 28 09:50 tty39
crw------- 1 root root   4,   4 May 28 09:50 tty4
crw------- 1 root root   4,  40 May 28 09:50 tty40
crw------- 1 root root   4,  41 May 28 09:50 tty41
crw------- 1 root root   4,  42 May 28 09:50 tty42
crw------- 1 root root   4,  43 May 28 09:50 tty43
crw------- 1 root root   4,  44 May 28 09:50 tty44
crw------- 1 root root   4,  45 May 28 09:50 tty45
crw------- 1 root root   4,  46 May 28 09:50 tty46
crw------- 1 root root   4,  47 May 28 09:50 tty47
crw------- 1 root root   4,  48 May 28 09:50 tty48
crw------- 1 root root   4,  49 May 28 09:50 tty49
crw------- 1 root root   4,   5 May 28 09:50 tty5
crw------- 1 root root   4,  50 May 28 09:50 tty50
crw------- 1 root root   4,  51 May 28 09:50 tty51
crw------- 1 root root   4,  52 May 28 09:50 tty52
crw------- 1 root root   4,  53 May 28 09:50 tty53
crw------- 1 root root   4,  54 May 28 09:50 tty54
crw------- 1 root root   4,  55 May 28 09:50 tty55
crw------- 1 root root   4,  56 May 28 09:50 tty56
crw------- 1 root root   4,  57 May 28 09:50 tty57
crw------- 1 root root   4,  58 May 28 09:50 tty58
crw------- 1 root root   4,  59 May 28 09:50 tty59
crw------- 1 root root   4,   6 May 28 09:50 tty6
crw------- 1 root root   4,  60 May 28 09:50 tty60
crw------- 1 root root   4,  61 May 28 09:50 tty61
crw------- 1 root root   4,  62 May 28 09:50 tty62
crw------- 1 root root   4,  63 May 28 09:50 tty63
crw------- 1 root root   4,   7 May 28 09:50 tty7
crw------- 1 root root   4,   8 May 28 09:50 tty8
crw------- 1 root root   4,   9 May 28 09:50 tty9
crw------- 1 root root   4,  64 May 28 09:50 ttyS0
crw------- 1 root root   4,  65 May 28 09:50 ttyS1
crw------- 1 root root   4,  66 May 28 09:50 ttyS2
crw------- 1 root root   4,  67 May 28 09:50 ttyS3
crw------- 1 root root  10, 223 May 28 09:50 uinput
crw-rw-rw- 1 root root   1,   9 May 28 09:50 urandom
crw------- 1 root root 250,   0 May 28 09:50 usbmon0
crw------- 1 root root   7,   0 May 28 09:50 vcs
crw------- 1 root root   7,   1 May 28 09:50 vcs1
crw------- 1 root root   7, 128 May 28 09:50 vcsa
crw------- 1 root root   7, 129 May 28 09:50 vcsa1
drwxr-xr-x 2 root root       80 May 28 09:51 vg_f15x32
crw------- 1 root root  10,  63 May 28 09:50 vga_arbiter
crw------- 1 root root  10, 238 May 28 09:50 vhost-net
drwxr-xr-x 2 root root       60 May 28 09:50 virtio-ports
crw------- 1 root root 251,   1 May 28 09:50 vport1p1
crw-rw-rw- 1 root root   1,   5 May 28 09:50 zero

/dev/block:
total 0
lrwxrwxrwx 1 root root 7 May 28 09:51 253:0 -> ../dm-0
lrwxrwxrwx 1 root root 7 May 28 09:51 253:1 -> ../dm-1
lrwxrwxrwx 1 root root 8 May 28 09:50 7:0 -> ../loop0
lrwxrwxrwx 1 root root 8 May 28 09:50 7:1 -> ../loop1
lrwxrwxrwx 1 root root 8 May 28 09:50 7:2 -> ../loop2
lrwxrwxrwx 1 root root 8 May 28 09:50 7:3 -> ../loop3
lrwxrwxrwx 1 root root 8 May 28 09:50 7:4 -> ../loop4
lrwxrwxrwx 1 root root 8 May 28 09:50 7:5 -> ../loop5
lrwxrwxrwx 1 root root 8 May 28 09:50 7:6 -> ../loop6
lrwxrwxrwx 1 root root 8 May 28 09:50 7:7 -> ../loop7
lrwxrwxrwx 1 root root 6 May 28 09:50 8:0 -> ../sda
lrwxrwxrwx 1 root root 7 May 28 09:50 8:1 -> ../sda1
lrwxrwxrwx 1 root root 6 May 28 09:50 8:16 -> ../sdb
lrwxrwxrwx 1 root root 7 May 28 09:50 8:2 -> ../sda2

/dev/bsg:
total 0
crw------- 1 root root 252, 0 May 28 09:50 2:0:0:0
crw------- 1 root root 252, 1 May 28 09:50 2:0:1:0

/dev/char:
total 0
lrwxrwxrwx 1 root root  8 May 28 09:50 10:144 -> ../nvram
lrwxrwxrwx 1 root root 16 May 28 09:50 10:184 -> ../cpu/microcode
lrwxrwxrwx 1 root root  9 May 28 09:50 10:227 -> ../mcelog
lrwxrwxrwx 1 root root 11 May 28 09:50 10:231 -> ../snapshot
lrwxrwxrwx 1 root root  9 May 28 09:50 10:235 -> ../autofs
lrwxrwxrwx 1 root root 17 May 28 09:50 10:236 -> ../mapper/control
lrwxrwxrwx 1 root root 15 May 28 09:50 10:237 -> ../loop-control
lrwxrwxrwx 1 root root  9 May 28 09:50 10:59 -> ../rfkill
lrwxrwxrwx 1 root root 21 May 28 09:50 10:60 -> ../network_throughput
lrwxrwxrwx 1 root root 18 May 28 09:50 10:61 -> ../network_latency
lrwxrwxrwx 1 root root 18 May 28 09:50 10:62 -> ../cpu_dma_latency
lrwxrwxrwx 1 root root 14 May 28 09:50 10:63 -> ../vga_arbiter
lrwxrwxrwx 1 root root 15 May 28 09:50 13:32 -> ../input/mouse0
lrwxrwxrwx 1 root root 13 May 28 09:50 13:63 -> ../input/mice
lrwxrwxrwx 1 root root 15 May 28 09:50 13:64 -> ../input/event0
lrwxrwxrwx 1 root root 15 May 28 09:50 13:65 -> ../input/event1
lrwxrwxrwx 1 root root 13 May 28 09:50 162:0 -> ../raw/rawctl
lrwxrwxrwx 1 root root  6 May 28 09:50 1:1 -> ../mem
lrwxrwxrwx 1 root root  7 May 28 09:50 1:11 -> ../kmsg
lrwxrwxrwx 1 root root  9 May 28 09:50 1:12 -> ../oldmem
lrwxrwxrwx 1 root root  7 May 28 09:50 1:3 -> ../null
lrwxrwxrwx 1 root root  7 May 28 09:50 1:4 -> ../port
lrwxrwxrwx 1 root root  7 May 28 09:50 1:5 -> ../zero
lrwxrwxrwx 1 root root  7 May 28 09:50 1:7 -> ../full
lrwxrwxrwx 1 root root  9 May 28 09:50 1:8 -> ../random
lrwxrwxrwx 1 root root 10 May 28 09:50 1:9 -> ../urandom
lrwxrwxrwx 1 root root 12 May 28 09:50 202:0 -> ../cpu/0/msr
lrwxrwxrwx 1 root root 14 May 28 09:50 203:0 -> ../cpu/0/cpuid
lrwxrwxrwx 1 root root  6 May 28 09:50 21:0 -> ../sg0
lrwxrwxrwx 1 root root  6 May 28 09:50 21:1 -> ../sg1
lrwxrwxrwx 1 root root 10 May 28 09:50 250:0 -> ../usbmon0
lrwxrwxrwx 1 root root 11 May 28 09:50 251:1 -> ../vport1p1
lrwxrwxrwx 1 root root 14 May 28 09:50 252:0 -> ../bsg/2:0:0:0
lrwxrwxrwx 1 root root 14 May 28 09:50 252:1 -> ../bsg/2:0:1:0
lrwxrwxrwx 1 root root  7 May 28 09:50 254:0 -> ../rtc0
lrwxrwxrwx 1 root root  7 May 28 09:50 4:0 -> ../tty0
lrwxrwxrwx 1 root root  7 May 28 09:50 4:1 -> ../tty1
lrwxrwxrwx 1 root root  8 May 28 09:50 4:10 -> ../tty10
lrwxrwxrwx 1 root root  8 May 28 09:50 4:11 -> ../tty11
lrwxrwxrwx 1 root root  8 May 28 09:50 4:12 -> ../tty12
lrwxrwxrwx 1 root root  8 May 28 09:50 4:13 -> ../tty13
lrwxrwxrwx 1 root root  8 May 28 09:50 4:14 -> ../tty14
lrwxrwxrwx 1 root root  8 May 28 09:50 4:15 -> ../tty15
lrwxrwxrwx 1 root root  8 May 28 09:50 4:16 -> ../tty16
lrwxrwxrwx 1 root root  8 May 28 09:50 4:17 -> ../tty17
lrwxrwxrwx 1 root root  8 May 28 09:50 4:18 -> ../tty18
lrwxrwxrwx 1 root root  8 May 28 09:50 4:19 -> ../tty19
lrwxrwxrwx 1 root root  7 May 28 09:50 4:2 -> ../tty2
lrwxrwxrwx 1 root root  8 May 28 09:50 4:20 -> ../tty20
lrwxrwxrwx 1 root root  8 May 28 09:50 4:21 -> ../tty21
lrwxrwxrwx 1 root root  8 May 28 09:50 4:22 -> ../tty22
lrwxrwxrwx 1 root root  8 May 28 09:50 4:23 -> ../tty23
lrwxrwxrwx 1 root root  8 May 28 09:50 4:24 -> ../tty24
lrwxrwxrwx 1 root root  8 May 28 09:50 4:25 -> ../tty25
lrwxrwxrwx 1 root root  8 May 28 09:50 4:26 -> ../tty26
lrwxrwxrwx 1 root root  8 May 28 09:50 4:27 -> ../tty27
lrwxrwxrwx 1 root root  8 May 28 09:50 4:28 -> ../tty28
lrwxrwxrwx 1 root root  8 May 28 09:50 4:29 -> ../tty29
lrwxrwxrwx 1 root root  7 May 28 09:50 4:3 -> ../tty3
lrwxrwxrwx 1 root root  8 May 28 09:50 4:30 -> ../tty30
lrwxrwxrwx 1 root root  8 May 28 09:50 4:31 -> ../tty31
lrwxrwxrwx 1 root root  8 May 28 09:50 4:32 -> ../tty32
lrwxrwxrwx 1 root root  8 May 28 09:50 4:33 -> ../tty33
lrwxrwxrwx 1 root root  8 May 28 09:50 4:34 -> ../tty34
lrwxrwxrwx 1 root root  8 May 28 09:50 4:35 -> ../tty35
lrwxrwxrwx 1 root root  8 May 28 09:50 4:36 -> ../tty36
lrwxrwxrwx 1 root root  8 May 28 09:50 4:37 -> ../tty37
lrwxrwxrwx 1 root root  8 May 28 09:50 4:38 -> ../tty38
lrwxrwxrwx 1 root root  8 May 28 09:50 4:39 -> ../tty39
lrwxrwxrwx 1 root root  7 May 28 09:50 4:4 -> ../tty4
lrwxrwxrwx 1 root root  8 May 28 09:50 4:40 -> ../tty40
lrwxrwxrwx 1 root root  8 May 28 09:50 4:41 -> ../tty41
lrwxrwxrwx 1 root root  8 May 28 09:50 4:42 -> ../tty42
lrwxrwxrwx 1 root root  8 May 28 09:50 4:43 -> ../tty43
lrwxrwxrwx 1 root root  8 May 28 09:50 4:44 -> ../tty44
lrwxrwxrwx 1 root root  8 May 28 09:50 4:45 -> ../tty45
lrwxrwxrwx 1 root root  8 May 28 09:50 4:46 -> ../tty46
lrwxrwxrwx 1 root root  8 May 28 09:50 4:47 -> ../tty47
lrwxrwxrwx 1 root root  8 May 28 09:50 4:48 -> ../tty48
lrwxrwxrwx 1 root root  8 May 28 09:50 4:49 -> ../tty49
lrwxrwxrwx 1 root root  7 May 28 09:50 4:5 -> ../tty5
lrwxrwxrwx 1 root root  8 May 28 09:50 4:50 -> ../tty50
lrwxrwxrwx 1 root root  8 May 28 09:50 4:51 -> ../tty51
lrwxrwxrwx 1 root root  8 May 28 09:50 4:52 -> ../tty52
lrwxrwxrwx 1 root root  8 May 28 09:50 4:53 -> ../tty53
lrwxrwxrwx 1 root root  8 May 28 09:50 4:54 -> ../tty54
lrwxrwxrwx 1 root root  8 May 28 09:50 4:55 -> ../tty55
lrwxrwxrwx 1 root root  8 May 28 09:50 4:56 -> ../tty56
lrwxrwxrwx 1 root root  8 May 28 09:50 4:57 -> ../tty57
lrwxrwxrwx 1 root root  8 May 28 09:50 4:58 -> ../tty58
lrwxrwxrwx 1 root root  8 May 28 09:50 4:59 -> ../tty59
lrwxrwxrwx 1 root root  7 May 28 09:50 4:6 -> ../tty6
lrwxrwxrwx 1 root root  8 May 28 09:50 4:60 -> ../tty60
lrwxrwxrwx 1 root root  8 May 28 09:50 4:61 -> ../tty61
lrwxrwxrwx 1 root root  8 May 28 09:50 4:62 -> ../tty62
lrwxrwxrwx 1 root root  8 May 28 09:50 4:63 -> ../tty63
lrwxrwxrwx 1 root root  8 May 28 09:50 4:64 -> ../ttyS0
lrwxrwxrwx 1 root root  8 May 28 09:50 4:65 -> ../ttyS1
lrwxrwxrwx 1 root root  8 May 28 09:50 4:66 -> ../ttyS2
lrwxrwxrwx 1 root root  8 May 28 09:50 4:67 -> ../ttyS3
lrwxrwxrwx 1 root root  7 May 28 09:50 4:7 -> ../tty7
lrwxrwxrwx 1 root root  7 May 28 09:50 4:8 -> ../tty8
lrwxrwxrwx 1 root root  7 May 28 09:50 4:9 -> ../tty9
lrwxrwxrwx 1 root root  6 May 28 09:50 5:0 -> ../tty
lrwxrwxrwx 1 root root 10 May 28 09:50 5:1 -> ../console
lrwxrwxrwx 1 root root  7 May 28 09:50 5:2 -> ../ptmx
lrwxrwxrwx 1 root root  6 May 28 09:50 7:0 -> ../vcs
lrwxrwxrwx 1 root root  7 May 28 09:50 7:1 -> ../vcs1
lrwxrwxrwx 1 root root  7 May 28 09:50 7:128 -> ../vcsa
lrwxrwxrwx 1 root root  8 May 28 09:50 7:129 -> ../vcsa1

/dev/cpu:
total 0
drwxr-xr-x 2 root root      80 May 28 09:50 0
crw------- 1 root root 10, 184 May 28 09:50 microcode

/dev/cpu/0:
total 0
crw------- 1 root root 203, 0 May 28 09:50 cpuid
crw------- 1 root root 202, 0 May 28 09:50 msr

/dev/disk:
total 0
drwxr-xr-x 2 root root 200 May 28 09:51 by-id
drwxr-xr-x 2 root root 120 May 28 09:50 by-path
drwxr-xr-x 2 root root 120 May 28 09:51 by-uuid

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 10 May 28 09:51 dm-name-vg_f15x32-lv_root -> ../../dm-1
lrwxrwxrwx 1 root root 10 May 28 09:51 dm-name-vg_f15x32-lv_swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 28 09:51 dm-uuid-LVM-ST2iMsY0NXQBVWACLd8JxNxTzx0RjGICJMhbP4lPQVWdedaqK4qbXmfMVYiTT5dv -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 28 09:51 dm-uuid-LVM-ST2iMsY0NXQBVWACLd8JxNxTzx0RjGICqXJJLP5pB7RvEgw88as4Mq7z6ejCYheh -> ../../dm-1
lrwxrwxrwx 1 root root  9 May 28 09:50 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb
lrwxrwxrwx 1 root root  9 May 28 09:50 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda
lrwxrwxrwx 1 root root 10 May 28 09:50 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 28 09:50 scsi-0QEMU_QEMU_HARDDISK_hd0-part2 -> ../../sda2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 May 28 09:50 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 May 28 09:50 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 28 09:50 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 May 28 09:50 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 May 28 09:51 32b5f839-1c85-47f4-9d12-f3e8884a1f6a -> ../../dm-0
lrwxrwxrwx 1 root root 10 May 28 09:51 9293385f-3200-4694-8f4b-e20bb8d73c37 -> ../../dm-1
lrwxrwxrwx 1 root root  9 May 28 09:50 b009e5a2-2da0-4f35-9fa2-3aba4571df43 -> ../../sdb
lrwxrwxrwx 1 root root 10 May 28 09:50 d2cd4319-f515-4be2-9a5c-fc8b57b53723 -> ../../sda1

/dev/input:
total 0
drwxr-xr-x 2 root root    100 May 28 09:50 by-path
crw------- 1 root root 13, 64 May 28 09:50 event0
crw-r----- 1 root root 13, 65 May 28 09:50 event1
crw------- 1 root root 13, 63 May 28 09:50 mice
crw-r----- 1 root root 13, 32 May 28 09:50 mouse0

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 May 28 09:50 platform-i8042-serio-0-event-kbd -> ../event0
lrwxrwxrwx 1 root root 9 May 28 09:50 platform-i8042-serio-1-event-mouse -> ../event1
lrwxrwxrwx 1 root root 9 May 28 09:50 platform-i8042-serio-1-mouse -> ../mouse0

/dev/mapper:
total 0
crw------- 1 root root 10, 236 May 28 09:50 control
lrwxrwxrwx 1 root root       7 May 28 09:51 vg_f15x32-lv_root -> ../dm-1
lrwxrwxrwx 1 root root       7 May 28 09:51 vg_f15x32-lv_swap -> ../dm-0

/dev/net:
total 0
crw-rw-rw- 1 root root 10, 200 May 28 09:50 tun

/dev/raw:
total 0
crw------- 1 root root 162, 0 May 28 09:50 rawctl

/dev/snd:
total 0
crw-rw---- 1 root audio 116,  1 May 28 09:50 seq
crw-rw---- 1 root audio 116, 33 May 28 09:50 timer

/dev/vg_f15x32:
total 0
lrwxrwxrwx 1 root root 7 May 28 09:51 lv_root -> ../dm-1
lrwxrwxrwx 1 root root 7 May 28 09:51 lv_swap -> ../dm-0

/dev/virtio-ports:
total 0
lrwxrwxrwx 1 root root 11 May 28 09:50 org.libguestfs.channel.0 -> ../vport1p1
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
/dev/root / ext2 rw,noatime 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=98244k,mode=755 0 0
/dev /dev devtmpfs rw,relatime,size=242844k,nr_inodes=60711,mode=755 0 0
  PV         VG        Fmt  Attr PSize PFree
  /dev/sda2  vg_f15x32 lvm2 a--  7.50g    0 
  VG        #PV #LV #SN Attr   VSize VFree
  vg_f15x32   1   2   0 wz--n- 7.50g    0 
  LV      VG        Attr      LSize Pool Origin Data%  Move Log Copy%  Convert
  lv_root vg_f15x32 -wi-a---- 5.56g                                           
  lv_swap vg_f15x32 -wi-a---- 1.94g                                           
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
Module                  Size  Used by
microcode              23448  0 
i2c_piix4              22106  0 
i2c_core               34096  1 i2c_piix4
virtio_net             27910  0 
virtio_scsi            18006  2 
virtio_blk             18325  0 
virtio_rng             13135  0 
virtio_balloon         13530  0 
virtio_mmio            13157  0 
sparse_keymap          13526  0 
rfkill                 21729  0 
sym53c8xx              76601  0 
scsi_transport_spi     30237  1 sym53c8xx
crc8                   12750  0 
crc_ccitt              12613  0 
crc32                  12714  0 
crc_itu_t              12613  0 
libcrc32c              12603  0 
Tue May 28 09:51:04 BST 2013
uptime: 21.74 0.81
verbose daemon enabled
linux commmand line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color

udevadm settle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [23559ms] appliance is up
libguestfs: trace: launch = 0
libguestfs: trace: list_partitions
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds
libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
libguestfs: trace: vfs_type = "ext4"
libguestfs: trace: vfs_type "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 1.38 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda2
libguestfs: trace: vfs_type = "LVM2_member"
libguestfs: trace: inspect_os
libguestfs: trace: umount_all
guestfsd: main_loop: proc 198 (vfs_type) took 0.61 seconds
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 47 (umount_all) took 0.00 seconds
libguestfs: trace: umount_all = 0
libguestfs: trace: list_filesystems
libguestfs: trace: list_devices
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 7 (list_devices) took 0.0libguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: list_partitions
0 seconds
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds
libguestfs: trace: list_partitions = ["/dev/sda1", "/dev/sda2"]
libguestfs: trace: list_md_devices
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds
libguestfs: trace: list_md_devices = []
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dlibguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_dev "/dev/sda2"
ev) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_devlibguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_partnum "/dev/sda1"
) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
guestfsd: malibguestfs: trace: part_to_partnum = 1
libguestfs: trace: part_to_dev "/dev/sda1"
in_loop: proc 293 (part_to_partnum) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) tooklibguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 1
 0.00 seconds
guestfsd: main_loop: new request, len 0x38
udevadm settle
sfdisk --print-id /dev/sda 1
udevadm settle
libguestfs: trace: part_get_mbr_id = 131
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 3.96 seconds
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
[   35.513735] sd 2:0:0:0: [sda]  
[   35.514346] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   35.514712] sd 2:0:0:0: [sda]  
[   35.514712] Sense Key : Aborted Command [current] 
[   35.514712] sd 2:0:0:0: [sda]  
[   35.514712] Add. Sense: I/O process terminated
[   35.514712] sd 2:0:0:0: [sda] CDB: 
[   35.514712] Read(10): 28 00 00 00 08 20 00 00 08 00
[   35.514712] end_request: I/O error, dev sda, sector 2080
[   35.514712] Buffer I/O error on device sda1, logical block 4
[   36.149893] sd 2:0:0:0: [sda]  
[   36.150871] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   36.150871] sd 2:0:0:0: [sda]  
[   36.150871] Sense Key : Aborted Command [current] 
[   36.150871] sd 2:0:0:0: [sda]  
[   36.150871] Add. Sense: I/O process terminated
[   36.150871] sd 2:0:0:0: [sda] CDB: 
[   36.150871] Read(10): 28 00 00 02 08 00 00 00 08 00
[   36.150871] end_request: I/O error, dev sda, sector 133120
[   36.150871] Buffer I/O error on device sda1, logical block 16384
[   36.923534] sd 2:0:0:0: [sda]  
[   36.924495] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   36.924495] sd 2:0:0:0: [sda]  
[   36.924495] Sense Key : Aborted Command [current] 
[   36.924495] sd 2:0:0:0: [sda]  
[   36.924495] Add. Sense: I/O process terminated
[   36.924495] sd 2:0:0:0: [sda] CDB: 
[   36.924495] Read(10): 28 00 00 02 08 00 00 00 08 00
[   36.924495] end_request: I/O error, dev sda, sector 133120
[   36.924495] Buffer I/O error on device sda1, logical block 16384
[   37.623287] sd 2:0:0:0: [sda]  
[   37.623983] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   37.624265] sd 2:0:0:0: [sda]  
[   37.624265] Sense Key : Aborted Command [current] 
[   37.624265] sd 2:0:0:0: [sda]  
[   37.624265] Add. Sense: I/O process terminated
[   37.624265] sd 2:0:0:0: [sda] CDB: 
[   37.624265] Read(10): 28 00 00 00 18 00 00 00 08 00
[   37.624265] end_request: I/O error, dev sda, sector 6144
[   37.624265] Buffer I/O error on device sda1, logical block 512
libguestfs: trace: vfs_type = "ext4"
libguestfs: trace: part_to_partnum "/dev/sda2"
guestfsd: main_loop: proc 198 (vfs_type) took 9.92 seconds
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
libguestfs: trace: part_to_partnum = 2
libguestfs: trace: part_to_dev "/dev/sda2"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 2
guestfsd: main_loop: new request, len 0x38
udevadm settle
sfdisk --print-id /dev/sda 2
udevadm settle
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.00 seconds
libguestfs: trace: part_get_mbr_id = 142
libguestfs: trace: vfs_type "/dev/sda2"
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda2
libguestfs: trace: vfs_type = "LVM2_member"
libguestfs: trace: feature_available "lvm2"
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds
libguestfs: trace: feature_available = 1
libguestfs: trace: lvs
guestfsd: main_loop: new request, len 0x28
lvm lvs -o vg_name,lv_name --noheadings --separator /
[   40.480315] sd 2:0:0:0: [sda]  
[   40.480782] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   40.481250] sd 2:0:0:0: [sda]  
[   40.481293] Sense Key : Aborted Command [current] 
[   40.481293] sd 2:0:0:0: [sda]  
[   40.481293] Add. Sense: I/O process terminated
[   40.481293] sd 2:0:0:0: [sda] CDB: 
[   40.481293] Read(10): 28 00 00 0f a7 f0 00 00 08 00
[   40.481293] end_request: I/O error, dev sda, sector 1026032
  /dev/sda1: read failed after 0 of 4096 at 524279808: Input/output error
[   41.094364] sd 2:0:0:0: [sda]  
[   41.095320] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   41.095320] sd 2:0:0:0: [sda]  
[   41.095320] Sense Key : Aborted Command [current] 
[   41.095320] sd 2:0:0:0: [sda]  
[   41.095320] Add. Sense: I/O process terminated
[   41.095320] sd 2:0:0:0: [sda] CDB: 
[   41.095320] Read(10): 28 00 00 ff af 80 00 00 08 00
[   41.095320] end_request: I/O error, dev sda, sector 16756608
  /dev/vg_f15x32/lv_root: read failed after 0 of 4096 at 5972623360: Input/output error
[   42.110214] sd 2:0:0:0: [sda]  
[   42.111170] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   42.111170] sd 2:0:0:0: [sda]  
[   42.111170] Sense Key : Aborted Command [current] 
[   42.111170] sd 2:0:0:0: [sda]  
[   42.111170] Add. Sense: I/O process terminated
[   42.111170] sd 2:0:0:0: [sda] CDB: 
[   42.111170] Read(10): 28 00 00 ff ff 80 00 00 08 00
[   42.111170] end_request: I/O error, dev sda, sector 16777088
  /dev/sda2: read failed after 0 of 4096 at 8064532480: Input/output error
libguestfs: trace: lvs = ["/dev/vg_f15x32/lv_root", "/dev/vg_f15x32/lv_swap"]
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_root"
guestfsd: main_loop: proc 11 (lvs) took 4.70 seconds
guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_root
[   48.689816] sd 2:0:0:0: [sda]  
[   48.690778] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   48.690778] sd 2:0:0:0: [sda]  
[   48.690778] Sense Key : Aborted Command [current] 
[   48.699126] sd 2:0:0:0: [sda]  
[   48.699830] Add. Sense: I/O process terminated
[   48.701944] sd 2:0:0:0: [sda] CDB: 
[   48.703657] Read(10): 28 00 00 4d c0 00 00 00 08 00
[   48.706563] end_request: I/O error, dev sda, sector 5095424
[   48.709455] Buffer I/O error on device dm-1, logical block 512
libguestfs: trace: vfs_type = "ext4"
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_swap"
guestfsd: main_loop: proc 198 (vfs_type) took 6.35 seconds
guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_swap
[   49.344942] sd 2:0:0:0: [sda]  
[   49.345906] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   49.345906] sd 2:0:0:0: [sda]  
[   49.345906] Sense Key : Aborted Command [current] 
[   49.345906] sd 2:0:0:0: [sda]  
[   49.345906] Add. Sense: I/O process terminated
[   49.345906] sd 2:0:0:0: [sda] CDB: 
[   49.345906] Read(10): 28 00 00 4d af 80 00 00 08 00
[   49.345906] end_request: I/O error, dev sda, sector 5091200
[   49.345906] Buffer I/O error on device dm-0, logical block 507888
[   49.889558] sd 2:0:0:0: [sda]  
[   49.890520] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   49.890520] sd 2:0:0:0: [sda]  
[   49.890520] Sense Key : Aborted Command [current] 
[   49.890520] sd 2:0:0:0: [sda]  
[   49.890520] Add. Sense: I/O process terminated
[   49.890520] sd 2:0:0:0: [sda] CDB: 
[   49.890520] Read(10): 28 00 00 4d af f0 00 00 08 00
[   49.890520] end_request: I/O error, dev sda, sector 5091312
[   49.890520] Buffer I/O error on device dm-0, logical block 507902
[   50.347087] sd 2:0:0:0: [sda]  
[   50.348022] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   50.348022] sd 2:0:0:0: [sda]  
[   50.348022] Sense Key : Aborted Command [current] 
[   50.348022] sd 2:0:0:0: [sda]  
[   50.348022] Add. Sense: I/O process terminated
[   50.348022] sd 2:0:0:0: [sda] CDB: 
[   50.348022] Read(10): 28 00 00 0f b0 00 00 00 08 00
[   50.348022] end_request: I/O error, dev sda, sector 1028096
[   50.348022] Buffer I/O error on device dm-0, logical block 0
[   50.832220] sd 2:0:0:0: [sda]  
[   50.833182] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   50.833182] sd 2:0:0:0: [sda]  
[   50.833182] Sense Key : Aborted Command [current] 
[   50.833182] sd 2:0:0:0: [sda]  
[   50.833182] Add. Sense: I/O process terminated
[   50.833182] sd 2:0:0:0: [sda] CDB: 
[   50.833182] Read(10): 28 00 00 4d ae f8 00 00 08 00
[   50.833182] end_request: I/O error, dev sda, sector 5091064
[   50.833182] Buffer I/O error on device dm-0, logical block 507871
[   51.521181] sd 2:0:0:0: [sda]  
[   51.522142] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   51.522142] sd 2:0:0:0: [sda]  
[   51.522142] Sense Key : Aborted Command [current] 
[   51.522142] sd 2:0:0:0: [sda]  
[   51.522142] Add. Sense: I/O process terminated
[   51.522142] sd 2:0:0:0: [sda] CDB: 
[   51.522142] Read(10): 28 00 00 4d ae 70 00 00 08 00
[   51.522142] end_request: I/O error, dev sda, sector 5090928
[   51.522142] Buffer I/O error on device dm-0, logical block 507854
[   54.970140] sd 2:0:0:0: [sda]  
[   54.970718] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   54.971107] sd 2:0:0:0: [sda]  
[   54.971107] Sense Key : Aborted Command [current] 
[   54.971107] sd 2:0:0:0: [sda]  
[   54.971107] Add. Sense: I/O process terminated
[   54.971107] sd 2:0:0:0: [sda] CDB: 
[   54.971107] Read(10): 28 00 00 0f b1 d0 00 00 08 00
[   54.971107] end_request: I/O error, dev sda, sector 1028560
[   54.971107] Buffer I/O error on device dm-0, logical block 58
[   55.812158] sd 2:0:0:0: [sda]  
[   55.813114] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   55.813114] sd 2:0:0:0: [sda]  
[   55.813114] Sense Key : Aborted Command [current] 
[   55.813114] sd 2:0:0:0: [sda]  
[   55.813114] Add. Sense: I/O process terminated
[   55.813114] sd 2:0:0:0: [sda] CDB: 
[   55.813114] Read(10): 28 00 00 0f b3 00 00 00 08 00
[   55.813114] end_request: I/O error, dev sda, sector 1028864
[   55.813114] Buffer I/O error on device dm-0, logical block 96
[   56.037247] sd 2:0:0:0: [sda]  
[   56.038208] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   56.038208] sd 2:0:0:0: [sda]  
[   56.038208] Sense Key : Aborted Command [current] 
[   56.038208] sd 2:0:0:0: [sda]  
[   56.038208] Add. Sense: I/O process terminated
[   56.038208] sd 2:0:0:0: [sda] CDB: 
[   56.038208] Read(10): 28 00 00 0f b3 00 00 00 08 00
[   56.038208] end_request: I/O error, dev sda, sector 1028864
[   56.038208] Buffer I/O error on device dm-0, logical block 96
[   56.519247] sd 2:0:0:0: [sda]  
[   56.520135] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   56.520229] sd 2:0:0:0: [sda]  
[   56.520229] Sense Key : Aborted Command [current] 
[   56.520229] sd 2:0:0:0: [sda]  
[   56.520229] Add. Sense: I/O process terminated
[   56.520229] sd 2:0:0:0: [sda] CDB: 
[   56.520229] Read(10): 28 00 00 0f b0 20 00 00 08 00
[   56.520229] end_request: I/O error, dev sda, sector 1028128
[   56.520229] Buffer I/O error on device dm-0, logical block 4
[   57.649994] sd 2:0:0:0: [sda]  
[   57.650957] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   57.650957] sd 2:0:0:0: [sda]  
[   57.650957] Sense Key : Aborted Command [current] 
[   57.650957] sd 2:0:0:0: [sda]  
[   57.650957] Add. Sense: I/O process terminated
[   57.650957] sd 2:0:0:0: [sda] CDB: 
[   57.650957] Read(10): 28 00 00 11 b0 00 00 00 08 00
[   57.650957] end_request: I/O error, dev sda, sector 1159168
[   57.650957] Buffer I/O error on device dm-0, logical block 16384
[   58.374007] sd 2:0:0:0: [sda]  
[   58.374969] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   58.374969] sd 2:0:0:0: [sda]  
[   58.374969] Sense Key : Aborted Command [current] 
[   58.374969] sd 2:0:0:0: [sda]  
[   58.374969] Add. Sense: I/O process terminated
[   58.374969] sd 2:0:0:0: [sda] CDB: 
[   58.374969] Read(10): 28 00 00 0f c0 00 00 00 08 00
[   58.374969] end_request: I/O error, dev sda, sector 1032192
[   58.374969] Buffer I/O error on device dm-0, logical block 512
[   58.618683] sd 2:0:0:0: [sda]  
[   58.619624] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   58.619657] sd 2:0:0:0: [sda]  
[   58.619657] Sense Key : Aborted Command [current] 
[   58.619657] sd 2:0:0:0: [sda]  
[   58.619657] Add. Sense: I/O process terminated
[   58.619657] sd 2:0:0:0: [sda] CDB: 
[   58.619657] Read(10): 28 00 00 0f c0 00 00 00 08 00
[   58.619657] end_request: I/O error, dev sda, sector 1032192
[   58.619657] Buffer I/O error on device dm-0, logical block 512
guestfsd: main_loop: proc 198 (vfs_type) took 9.69 seconds
libguestfs: trace: vfs_type = "swap"
libguestfs: trace: feature_available "ldm"
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 398 (feature_available) took 0.00 seconds
libguestfs: trace: feature_available = 1
libguestfs: trace: list_ldm_volumes
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 380 (list_ldm_volumes) took 0.00 seconds
libguestfs: trace: list_ldm_volumes = []
libguestfs: trace: list_ldm_partitions
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 381 (list_ldm_partitions) took 0.00 seconds
libguestfs: trace: list_ldm_partitions = []
libguestfs: trace: list_filesystems = ["/dev/sda1", "ext4", "/dev/vg_f15x32/lv_root", "ext4", "/dev/vg_f15x32/lv_swap", "swap"]
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
blkid -c /dev/null -o value -s TYPE /dev/sda1
[   59.003945] sd 2:0:0:0: [sda]  
[   59.004908] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   59.004908] sd 2:0:0:0: [sda]  
[   59.004908] Sense Key : Aborted Command [current] 
[   59.004908] sd 2:0:0:0: [sda]  
[   59.004908] Add. Sense: I/O process terminated
[   59.004908] sd 2:0:0:0: [sda] CDB: 
[   59.004908] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   59.004908] end_request: I/O error, dev sda, sector 1025920
[   59.004908] Buffer I/O error on device sda1, logical block 127984
[   59.345668] sd 2:0:0:0: [sda]  
[   59.346643] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   59.346643] sd 2:0:0:0: [sda]  
[   59.346643] Sense Key : Aborted Command [current] 
[   59.346643] sd 2:0:0:0: [sda]  
[   59.346643] Add. Sense: I/O process terminated
[   59.346643] sd 2:0:0:0: [sda] CDB: 
[   59.346643] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   59.346643] end_request: I/O error, dev sda, sector 1025920
[   59.346643] Buffer I/O error on device sda1, logical block 127984
[   59.681838] sd 2:0:0:0: [sda]  
[   59.682793] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   59.682793] sd 2:0:0:0: [sda]  
[   59.682793] Sense Key : Aborted Command [current] 
[   59.682793] sd 2:0:0:0: [sda]  
[   59.682793] Add. Sense: I/O process terminated
[   59.682793] sd 2:0:0:0: [sda] CDB: 
[   59.682793] Read(10): 28 00 00 0f a7 f0 00 00 08 00
[   59.682793] end_request: I/O error, dev sda, sector 1026032
[   59.682793] Buffer I/O error on device sda1, logical block 127998
[   60.250885] sd 2:0:0:0: [sda]  
[   60.251850] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   60.251850] sd 2:0:0:0: [sda]  
[   60.251850] Sense Key : Aborted Command [current] 
[   60.251850] sd 2:0:0:0: [sda]  
[   60.251850] Add. Sense: I/O process terminated
[   60.251850] sd 2:0:0:0: [sda] CDB: 
[   60.251850] Read(10): 28 00 00 00 08 00 00 00 08 00
[   60.486540] sd 2:0:0:0: [sda]  
[   60.487444] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   60.487517] sd 2:0:0:0: [sda]  
[   60.487517] Sense Key : Aborted Command [current] 
[   60.487517] sd 2:0:0:0: [sda]  
[   60.487517] Add. Sense: I/O process terminated
[   60.487517] sd 2:0:0:0: [sda] CDB: 
[   60.487517] Read(10): 28 00 00 00 08 00 00 00 08 00
[   60.741131] sd 2:0:0:0: [sda]  
[   60.741636] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   60.742095] sd 2:0:0:0: [sda]  
[   60.742109] Sense Key : Aborted Command [current] 
[   60.742109] sd 2:0:0:0: [sda]  
[   60.742109] Add. Sense: I/O process terminated
[   60.742109] sd 2:0:0:0: [sda] CDB: 
[   60.742109] Read(10): 28 00 00 00 08 08 00 00 08 00
[   61.227882] sd 2:0:0:0: [sda]  
[   61.228860] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   61.228860] sd 2:0:0:0: [sda]  
[   61.228860] Sense Key : Aborted Command [current] 
[   61.228860] sd 2:0:0:0: [sda]  
[   61.228860] Add. Sense: I/O process terminated
[   61.228860] sd 2:0:0:0: [sda] CDB: 
[   61.228860] Read(10): 28 00 00 0f a6 f8 00 00 08 00
[   61.228860] blk_update_request: 3 callbacks suppressed
[   61.228860] end_request: I/O error, dev sda, sector 1025784
[   61.228860] quiet_error: 3 callbacks suppressed
[   61.228860] Buffer I/O error on device sda1, logical block 127967
[   62.763581] sd 2:0:0:0: [sda]  
[   62.763980] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   62.764452] sd 2:0:0:0: [sda]  
[   62.764558] Sense Key : Aborted Command [current] 
[   62.764558] sd 2:0:0:0: [sda]  
[   62.764558] Add. Sense: I/O process terminated
[   62.764558] sd 2:0:0:0: [sda] CDB: 
[   62.764558] Read(10): 28 00 00 00 09 00 00 00 08 00
[   62.764558] end_request: I/O error, dev sda, sector 2304
[   62.764558] Buffer I/O error on device sda1, logical block 32
[   63.422172] sd 2:0:0:0: [sda]  
[   63.423149] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   63.423149] sd 2:0:0:0: [sda]  
[   63.423149] Sense Key : Aborted Command [current] 
[   63.423149] sd 2:0:0:0: [sda]  
[   63.423149] Add. Sense: I/O process terminated
[   63.423149] sd 2:0:0:0: [sda] CDB: 
[   63.423149] Read(10): 28 00 00 00 09 28 00 00 08 00
[   63.423149] end_request: I/O error, dev sda, sector 2344
[   63.423149] Buffer I/O error on device sda1, logical block 37
[   65.485621] sd 2:0:0:0: [sda]  
[   65.486596] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   65.486596] sd 2:0:0:0: [sda]  
[   65.486596] Sense Key : Aborted Command [current] 
[   65.486596] sd 2:0:0:0: [sda]  
[   65.486596] Add. Sense: I/O process terminated
[   65.486596] sd 2:0:0:0: [sda] CDB: 
[   65.486596] Read(10): 28 00 00 00 09 b0 00 00 08 00
[   65.486596] end_request: I/O error, dev sda, sector 2480
[   65.486596] Buffer I/O error on device sda1, logical block 54
[   65.986992] sd 2:0:0:0: [sda]  
[   65.987454] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   65.987891] sd 2:0:0:0: [sda]  
[   65.987970] Sense Key : Aborted Command [current] 
[   65.987970] sd 2:0:0:0: [sda]  
[   65.987970] Add. Sense: I/O process terminated
[   65.987970] sd 2:0:0:0: [sda] CDB: 
[   65.987970] Read(10): 28 00 00 00 09 d0 00 00 08 00
[   65.987970] end_request: I/O error, dev sda, sector 2512
[   65.987970] Buffer I/O error on device sda1, logical block 58
[   66.511057] sd 2:0:0:0: [sda]  
[   66.511809] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   66.512021] sd 2:0:0:0: [sda]  
[   66.512021] Sense Key : Aborted Command [current] 
[   66.512021] sd 2:0:0:0: [sda]  
[   66.512021] Add. Sense: I/O process terminated
[   66.512021] sd 2:0:0:0: [sda] CDB: 
[   66.512021] Read(10): 28 00 00 00 09 f8 00 00 08 00
[   66.512021] end_request: I/O error, dev sda, sector 2552
[   66.512021] Buffer I/O error on device sda1, logical block 63
[   67.199429] sd 2:0:0:0: [sda]  
[   67.200408] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   67.200408] sd 2:0:0:0: [sda]  
[   67.200408] Sense Key : Aborted Command [current] 
[   67.200408] sd 2:0:0:0: [sda]  
[   67.200408] Add. Sense: I/O process terminated
[   67.200408] sd 2:0:0:0: [sda] CDB: 
[   67.200408] Read(10): 28 00 00 00 0b 00 00 00 08 00
[   67.200408] end_request: I/O error, dev sda, sector 2816
[   67.200408] Buffer I/O error on device sda1, logical block 96
[   67.731477] sd 2:0:0:0: [sda]  
[   67.732435] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   67.732435] sd 2:0:0:0: [sda]  
[   67.732435] Sense Key : Aborted Command [current] 
[   67.732435] sd 2:0:0:0: [sda]  
[   67.732435] Add. Sense: I/O process terminated
[   67.732435] sd 2:0:0:0: [sda] CDB: 
[   67.732435] Read(10): 28 00 00 00 0b 00 00 00 08 00
[   67.732435] end_request: I/O error, dev sda, sector 2816
[   67.732435] Buffer I/O error on device sda1, logical block 96
[   68.132144] sd 2:0:0:0: [sda]  
[   68.133104] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   68.133104] sd 2:0:0:0: [sda]  
[   68.133104] Sense Key : Aborted Command [current] 
[   68.133104] sd 2:0:0:0: [sda]  
[   68.133104] Add. Sense: I/O process terminated
[   68.133104] sd 2:0:0:0: [sda] CDB: 
[   68.133104] Read(10): 28 00 00 00 08 20 00 00 08 00
[   68.133104] end_request: I/O error, dev sda, sector 2080
[   68.133104] Buffer I/O error on device sda1, logical block 4
[   68.366963] sd 2:0:0:0: [sda]  
[   68.367920] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   68.367920] sd 2:0:0:0: [sda]  
[   68.367920] Sense Key : Aborted Command [current] 
[   68.367920] sd 2:0:0:0: [sda]  
[   68.367920] Add. Sense: I/O process terminated
[   68.367920] sd 2:0:0:0: [sda] CDB: 
[   68.367920] Read(10): 28 00 00 02 08 00 00 00 08 00
[   68.367920] end_request: I/O error, dev sda, sector 133120
[   68.367920] Buffer I/O error on device sda1, logical block 16384
[   68.633903] sd 2:0:0:0: [sda]  
[   68.634864] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   68.634864] sd 2:0:0:0: [sda]  
[   68.634864] Sense Key : Aborted Command [current] 
[   68.634864] sd 2:0:0:0: [sda]  
[   68.634864] Add. Sense: I/O process terminated
[   68.634864] sd 2:0:0:0: [sda] CDB: 
[   68.634864] Read(10): 28 00 00 00 18 00 00 00 08 00
[   68.634864] end_request: I/O error, dev sda, sector 6144
[   68.634864] Buffer I/O error on device sda1, logical block 512
libguestfs: trace: vfs_type = "ext4"
libguestfs: check_for_filesystem_on: /dev/sda1 (ext4)
libguestfs: trace: internal_parse_mountable "/dev/sda1"
guestfsd: main_loop: proc 198 (vfs_type) took 10.00 seconds
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds
libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *>
libguestfs: trace: is_whole_device "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 395 (is_whole_device) took 0.00 seconds
libguestfs: trace: is_whole_device = 0
libguestfs: trace: mount_ro "/dev/sda1" "/"
guestfsd: main_loop: new request, len 0x40
mount -o ro /dev/sda1 /sysroot/
[   68.967558] sd 2:0:0:0: [sda]  
[   68.968515] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   68.968515] sd 2:0:0:0: [sda]  
[   68.968515] Sense Key : Aborted Command [current] 
[   68.968515] sd 2:0:0:0: [sda]  
[   68.968515] Add. Sense: I/O process terminated
[   68.968515] sd 2:0:0:0: [sda] CDB: 
[   68.968515] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   68.968515] end_request: I/O error, dev sda, sector 1025920
[   68.968515] Buffer I/O error on device sda1, logical block 127984
[   69.305086] sd 2:0:0:0: [sda]  
[   69.306043] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   69.306043] sd 2:0:0:0: [sda]  
[   69.306043] Sense Key : Aborted Command [current] 
[   69.306043] sd 2:0:0:0: [sda]  
[   69.306043] Add. Sense: I/O process terminated
[   69.306043] sd 2:0:0:0: [sda] CDB: 
[   69.306043] Read(10): 28 00 00 0f a7 80 00 00 08 00
[   69.306043] end_request: I/O error, dev sda, sector 1025920
[   69.306043] Buffer I/O error on device sda1, logical block 127984
[   69.621856] sd 2:0:0:0: [sda]  
[   69.622832] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   69.622832] sd 2:0:0:0: [sda]  
[   69.622832] Sense Key : Aborted Command [current] 
[   69.622832] sd 2:0:0:0: [sda]  
[   69.622832] Add. Sense: I/O process terminated
[   69.622832] sd 2:0:0:0: [sda] CDB: 
[   69.622832] Read(10): 28 00 00 0f a7 f0 00 00 08 00
[   69.622832] end_request: I/O error, dev sda, sector 1026032
[   69.622832] Buffer I/O error on device sda1, logical block 127998
[   69.877677] sd 2:0:0:0: [sda]  
[   69.878634] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   69.878634] sd 2:0:0:0: [sda]  
[   69.878634] Sense Key : Aborted Command [current] 
[   69.878634] sd 2:0:0:0: [sda]  
[   69.878634] Add. Sense: I/O process terminated
[   69.878634] sd 2:0:0:0: [sda] CDB: 
[   69.878634] Read(10): 28 00 00 0f a7 f0 00 00 08 00
[   69.878634] end_request: I/O error, dev sda, sector 1026032
[   69.878634] Buffer I/O error on device sda1, logical block 127998
[   70.132209] sd 2:0:0:0: [sda]  
[   70.132711] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   70.133189] sd 2:0:0:0: [sda]  
[   70.133189] Sense Key : Aborted Command [current] 
[   70.133189] sd 2:0:0:0: [sda]  
[   70.133189] Add. Sense: I/O process terminated
[   70.133189] sd 2:0:0:0: [sda] CDB: 
[   70.133189] Read(10): 28 00 00 00 08 00 00 00 08 00
[   70.133189] end_request: I/O error, dev sda, sector 2048
[   70.133189] Buffer I/O error on device sda1, logical block 0
[   70.290069] sd 2:0:0:0: [sda]  
[   70.290972] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   70.291045] sd 2:0:0:0: [sda]  
[   70.291045] Sense Key : Aborted Command [current] 
[   70.291045] sd 2:0:0:0: [sda]  
[   70.291045] Add. Sense: I/O process terminated
[   70.291045] sd 2:0:0:0: [sda] CDB: 
[   70.291045] Read(10): 28 00 00 00 08 00 00 00 08 00
[   70.291045] end_request: I/O error, dev sda, sector 2048
[   70.291045] Buffer I/O error on device sda1, logical block 0
[   70.476535] sd 2:0:0:0: [sda]  
[   70.477308] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   70.477511] sd 2:0:0:0: [sda]  
[   70.477511] Sense Key : Aborted Command [current] 
[   70.477511] sd 2:0:0:0: [sda]  
[   70.477511] Add. Sense: I/O process terminated
[   70.477511] sd 2:0:0:0: [sda] CDB: 
[   70.477511] Read(10): 28 00 00 00 08 08 00 00 08 00
[   70.477511] end_request: I/O error, dev sda, sector 2056
[   70.477511] Buffer I/O error on device sda1, logical block 1
[   70.730293] sd 2:0:0:0: [sda]  
[   70.730861] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   70.731269] sd 2:0:0:0: [sda]  
[   70.731269] Sense Key : Aborted Command [current] 
[   70.731269] sd 2:0:0:0: [sda]  
[   70.731269] Add. Sense: I/O process terminated
[   70.731269] sd 2:0:0:0: [sda] CDB: 
[   70.731269] Read(10): 28 00 00 0f a6 f8 00 00 08 00
[   71.120213] sd 2:0:0:0: [sda]  
[   71.121010] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   71.121190] sd 2:0:0:0: [sda]  
[   71.121190] Sense Key : Aborted Command [current] 
[   71.121190] sd 2:0:0:0: [sda]  
[   71.121190] Add. Sense: I/O process terminated
[   71.121190] sd 2:0:0:0: [sda] CDB: 
[   71.121190] Read(10): 28 00 00 00 10 00 00 00 08 00
[   71.481244] sd 2:0:0:0: [sda]  
[   71.482222] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   71.482222] sd 2:0:0:0: [sda]  
[   71.482222] Sense Key : Aborted Command [current] 
[   71.482222] sd 2:0:0:0: [sda]  
[   71.482222] Add. Sense: I/O process terminated
[   71.482222] sd 2:0:0:0: [sda] CDB: 
[   71.482222] Read(10): 28 00 00 00 09 00 00 00 08 00
[   71.968399] sd 2:0:0:0: [sda]  
[   71.969370] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   71.969370] sd 2:0:0:0: [sda]  
[   71.969370] Sense Key : Aborted Command [current] 
[   71.969370] sd 2:0:0:0: [sda]  
[   71.969370] Add. Sense: I/O process terminated
[   71.969370] sd 2:0:0:0: [sda] CDB: 
[   71.969370] Read(10): 28 00 00 04 48 02 00 00 02 00
[   71.969370] JBD2: IO error reading journal superblock
[   71.990422] EXT4-fs (sda1): error loading journal
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
guestfsd: error: /dev/sda1 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
guestfsd: main_loop: proc 73 (mount_ro) took 3.33 secondslibguestfs: trace: mount_ro = -1 (error)
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_root"

guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_root
[   72.565922] sd 2:0:0:0: [sda]  
[   72.566881] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   72.566881] sd 2:0:0:0: [sda]  
[   72.566881] Sense Key : Aborted Command [current] 
[   72.566881] sd 2:0:0:0: [sda]  
[   72.566881] Add. Sense: I/O process terminated
[   72.566881] sd 2:0:0:0: [sda] CDB: 
[   72.566881] Read(10): 28 00 00 ff af 80 00 00 08 00
[   73.217276] sd 2:0:0:0: [sda]  
[   73.218233] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   73.218233] sd 2:0:0:0: [sda]  
[   73.218233] Sense Key : Aborted Command [current] 
[   73.218233] sd 2:0:0:0: [sda]  
[   73.218233] Add. Sense: I/O process terminated
[   73.218233] sd 2:0:0:0: [sda] CDB: 
[   73.218233] Read(10): 28 00 00 ff af f0 00 00 08 00
[   73.411999] sd 2:0:0:0: [sda]  
[   73.412957] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   73.412957] sd 2:0:0:0: [sda]  
[   73.412957] Sense Key : Aborted Command [current] 
[   73.412957] sd 2:0:0:0: [sda]  
[   73.412957] Add. Sense: I/O process terminated
[   73.412957] sd 2:0:0:0: [sda] CDB: 
[   73.412957] Read(10): 28 00 00 ff af f0 00 00 08 00
[   73.412957] blk_update_request: 6 callbacks suppressed
[   73.412957] end_request: I/O error, dev sda, sector 16756720
[   73.412957] quiet_error: 5 callbacks suppressed
[   73.412957] Buffer I/O error on device dm-1, logical block 1458174
[   73.765228] sd 2:0:0:0: [sda]  
[   73.766102] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   73.766205] sd 2:0:0:0: [sda]  
[   73.766205] Sense Key : Aborted Command [current] 
[   73.766205] sd 2:0:0:0: [sda]  
[   73.766205] Add. Sense: I/O process terminated
[   73.766205] sd 2:0:0:0: [sda] CDB: 
[   73.766205] Read(10): 28 00 00 4d b0 00 00 00 08 00
[   73.766205] end_request: I/O error, dev sda, sector 5091328
[   73.766205] Buffer I/O error on device dm-1, logical block 0
[   74.096075] sd 2:0:0:0: [sda]  
[   74.096719] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   74.097033] sd 2:0:0:0: [sda]  
[   74.097033] Sense Key : Aborted Command [current] 
[   74.097033] sd 2:0:0:0: [sda]  
[   74.097033] Add. Sense: I/O process terminated
[   74.097033] sd 2:0:0:0: [sda] CDB: 
[   74.097033] Read(10): 28 00 00 4d b0 00 00 00 08 00
[   74.097033] end_request: I/O error, dev sda, sector 5091328
[   74.097033] Buffer I/O error on device dm-1, logical block 0
[   74.390353] sd 2:0:0:0: [sda]  
[   74.391319] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   74.391319] sd 2:0:0:0: [sda]  
[   74.391319] Sense Key : Aborted Command [current] 
[   74.391319] sd 2:0:0:0: [sda]  
[   74.391319] Add. Sense: I/O process terminated
[   74.391319] sd 2:0:0:0: [sda] CDB: 
[   74.391319] Read(10): 28 00 00 ff ae f8 00 00 08 00
[   74.391319] end_request: I/O error, dev sda, sector 16756472
[   74.391319] Buffer I/O error on device dm-1, logical block 1458143
[   74.753891] sd 2:0:0:0: [sda]  
[   74.754854] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   74.754854] sd 2:0:0:0: [sda]  
[   74.754854] Sense Key : Aborted Command [current] 
[   74.754854] sd 2:0:0:0: [sda]  
[   74.754854] Add. Sense: I/O process terminated
[   74.754854] sd 2:0:0:0: [sda] CDB: 
[   74.754854] Read(10): 28 00 00 ff ae f8 00 00 08 00
[   74.754854] end_request: I/O error, dev sda, sector 16756472
[   74.754854] Buffer I/O error on device dm-1, logical block 1458143
[   75.143576] sd 2:0:0:0: [sda]  
[   75.144554] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   75.144554] sd 2:0:0:0: [sda]  
[   75.144554] Sense Key : Aborted Command [current] 
[   75.144554] sd 2:0:0:0: [sda]  
[   75.144554] Add. Sense: I/O process terminated
[   75.144554] sd 2:0:0:0: [sda] CDB: 
[   75.144554] Read(10): 28 00 00 ff ae 70 00 00 08 00
[   75.144554] end_request: I/O error, dev sda, sector 16756336
[   75.144554] Buffer I/O error on device dm-1, logical block 1458126
[   75.335796] sd 2:0:0:0: [sda]  
[   75.336359] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   75.336771] sd 2:0:0:0: [sda]  
[   75.336771] Sense Key : Aborted Command [current] 
[   75.336771] sd 2:0:0:0: [sda]  
[   75.336771] Add. Sense: I/O process terminated
[   75.336771] sd 2:0:0:0: [sda] CDB: 
[   75.336771] Read(10): 28 00 00 4d b8 00 00 00 08 00
[   75.336771] end_request: I/O error, dev sda, sector 5093376
[   75.336771] Buffer I/O error on device dm-1, logical block 256
[   75.492379] sd 2:0:0:0: [sda]  
[   75.493338] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   75.493338] sd 2:0:0:0: [sda]  
[   75.493338] Sense Key : Aborted Command [current] 
[   75.493338] sd 2:0:0:0: [sda]  
[   75.493338] Add. Sense: I/O process terminated
[   75.493338] sd 2:0:0:0: [sda] CDB: 
[   75.493338] Read(10): 28 00 00 4d b0 78 00 00 08 00
[   75.493338] end_request: I/O error, dev sda, sector 5091448
[   75.493338] Buffer I/O error on device dm-1, logical block 15
[   75.979338] sd 2:0:0:0: [sda]  
[   75.979911] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   75.980316] sd 2:0:0:0: [sda]  
[   75.980316] Sense Key : Aborted Command [current] 
[   75.980316] sd 2:0:0:0: [sda]  
[   75.980316] Add. Sense: I/O process terminated
[   75.980316] sd 2:0:0:0: [sda] CDB: 
[   75.980316] Read(10): 28 00 00 4d b1 00 00 00 08 00
[   75.980316] end_request: I/O error, dev sda, sector 5091584
[   75.980316] Buffer I/O error on device dm-1, logical block 32
[   76.199731] sd 2:0:0:0: [sda]  
[   76.200647] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   76.200711] sd 2:0:0:0: [sda]  
[   76.200711] Sense Key : Aborted Command [current] 
[   76.200711] sd 2:0:0:0: [sda]  
[   76.200711] Add. Sense: I/O process terminated
[   76.200711] sd 2:0:0:0: [sda] CDB: 
[   76.200711] Read(10): 28 00 00 4d b2 00 00 00 08 00
[   76.200711] end_request: I/O error, dev sda, sector 5091840
[   76.200711] Buffer I/O error on device dm-1, logical block 64
[   76.627342] sd 2:0:0:0: [sda]  
[   76.628301] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   76.628301] sd 2:0:0:0: [sda]  
[   76.628301] Sense Key : Aborted Command [current] 
[   76.628301] sd 2:0:0:0: [sda]  
[   76.628301] Add. Sense: I/O process terminated
[   76.628301] sd 2:0:0:0: [sda] CDB: 
[   76.628301] Read(10): 28 00 00 4f b0 00 00 00 08 00
libguestfs: trace: vfs_type = "ext4"
libguestfs: check_for_filesystem_on: /dev/vg_f15x32/lv_root (ext4)
libguestfs: trace: internal_parse_mountable "/dev/vg_f15x32/lv_root"
guestfsd: main_loop: proc 198 (vfs_type) took 5.42 seconds
guestfsd: main_loop: new request, len 0x44
guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds
libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable *>
libguestfs: trace: is_whole_device "/dev/vg_f15x32/lv_root"
guestfsd: main_loop: new request, len 0x44
guestfsd: main_loop: proc 395 (is_whole_device) took 0.00 seconds
libguestfs: trace: is_whole_device = 0
libguestfs: trace: mount_ro "/dev/vg_f15x32/lv_root" "/"
guestfsd: main_loop: new request, len 0x4c
mount -o ro /dev/vg_f15x32/lv_root /sysroot/
[   78.395759] sd 2:0:0:0: [sda]  
[   78.396734] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   78.396734] sd 2:0:0:0: [sda]  
[   78.396734] Sense Key : Aborted Command [current] 
[   78.396734] sd 2:0:0:0: [sda]  
[   78.396734] Add. Sense: I/O process terminated
[   78.396734] sd 2:0:0:0: [sda] CDB: 
[   78.396734] Read(10): 28 00 00 4d b1 88 00 00 08 00
[   78.975641] sd 2:0:0:0: [sda]  
[   78.976615] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   78.976615] sd 2:0:0:0: [sda]  
[   78.976615] Sense Key : Aborted Command [current] 
[   78.976615] sd 2:0:0:0: [sda]  
[   78.976615] Add. Sense: I/O process terminated
[   78.976615] sd 2:0:0:0: [sda] CDB: 
[   78.976615] Read(10): 28 00 00 4d b1 b0 00 00 08 00
[   78.976615] blk_update_request: 2 callbacks suppressed
[   78.976615] end_request: I/O error, dev sda, sector 5091760
[   78.976615] quiet_error: 2 callbacks suppressed
[   78.976615] Buffer I/O error on device dm-1, logical block 54
[   79.267181] sd 2:0:0:0: [sda]  
[   79.267813] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   79.268158] sd 2:0:0:0: [sda]  
[   79.268158] Sense Key : Aborted Command [current] 
[   79.268158] sd 2:0:0:0: [sda]  
[   79.268158] Add. Sense: I/O process terminated
[   79.268158] sd 2:0:0:0: [sda] CDB: 
[   79.268158] Read(10): 28 00 00 4d b1 d0 00 00 08 00
[   79.268158] end_request: I/O error, dev sda, sector 5091792
[   79.268158] Buffer I/O error on device dm-1, logical block 58
[   79.747003] sd 2:0:0:0: [sda]  
[   79.747973] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   79.747973] sd 2:0:0:0: [sda]  
[   79.747973] Sense Key : Aborted Command [current] 
[   79.747973] sd 2:0:0:0: [sda]  
[   79.747973] Add. Sense: I/O process terminated
[   79.747973] sd 2:0:0:0: [sda] CDB: 
[   79.747973] Read(10): 28 00 00 4d b3 00 00 00 08 00
[   79.747973] end_request: I/O error, dev sda, sector 5092096
[   79.747973] Buffer I/O error on device dm-1, logical block 96
[   80.046947] sd 2:0:0:0: [sda]  
[   80.047905] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.047905] sd 2:0:0:0: [sda]  
[   80.047905] Sense Key : Aborted Command [current] 
[   80.047905] sd 2:0:0:0: [sda]  
[   80.047905] Add. Sense: I/O process terminated
[   80.047905] sd 2:0:0:0: [sda] CDB: 
[   80.047905] Read(10): 28 00 00 4d b3 00 00 00 08 00
[   80.047905] end_request: I/O error, dev sda, sector 5092096
[   80.047905] Buffer I/O error on device dm-1, logical block 96
[   80.227890] sd 2:0:0:0: [sda]  
[   80.228854] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.228854] sd 2:0:0:0: [sda]  
[   80.228854] Sense Key : Aborted Command [current] 
[   80.228854] sd 2:0:0:0: [sda]  
[   80.228854] Add. Sense: I/O process terminated
[   80.228854] sd 2:0:0:0: [sda] CDB: 
[   80.228854] Read(10): 28 00 00 4d b0 20 00 00 08 00
[   80.228854] end_request: I/O error, dev sda, sector 5091360
[   80.228854] Buffer I/O error on device dm-1, logical block 4
[   80.410533] sd 2:0:0:0: [sda]  
[   80.411495] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.411495] sd 2:0:0:0: [sda]  
[   80.411495] Sense Key : Aborted Command [current] 
[   80.411495] sd 2:0:0:0: [sda]  
[   80.411495] Add. Sense: I/O process terminated
[   80.411495] sd 2:0:0:0: [sda] CDB: 
[   80.411495] Read(10): 28 00 00 4d b0 20 00 00 08 00
[   80.411495] end_request: I/O error, dev sda, sector 5091360
[   80.411495] Buffer I/O error on device dm-1, logical block 4
[   80.670103] sd 2:0:0:0: [sda]  
[   80.671020] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   80.671020] sd 2:0:0:0: [sda]  
[   80.671020] Sense Key : Aborted Command [current] 
[   80.671020] sd 2:0:0:0: [sda]  
[   80.671020] Add. Sense: I/O process terminated
[   80.671020] sd 2:0:0:0: [sda] CDB: 
[   80.671020] Read(10): 28 00 00 4d b0 02 00 00 02 00
[   80.671020] end_request: I/O error, dev sda, sector 5091330
[   80.671020] EXT4-fs (dm-1): unable to read superblock
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_f15x32-lv_root,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
guestfsd: error: /dev/vg_f15x32/lv_root on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_f15x32-lv_root,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so
libguestfs: trace: mount_ro = -1 (error)
libguestfs: trace: vfs_type "/dev/vg_f15x32/lv_swap"
guestfsd: main_loop: proc 73 (mount_ro) took 3.25 seconds
guestfsd: main_loop: new request, len 0x44
blkid -c /dev/null -o value -s TYPE /dev/vg_f15x32/lv_swap
[   81.001770] sd 2:0:0:0: [sda]  
[   81.002734] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   81.002734] sd 2:0:0:0: [sda]  
[   81.002734] Sense Key : Aborted Command [current] 
[   81.002734] sd 2:0:0:0: [sda]  
[   81.002734] Add. Sense: I/O process terminated
[   81.002734] sd 2:0:0:0: [sda] CDB: 
[   81.002734] Read(10): 28 00 00 4d af 80 00 00 08 00
[   81.002734] end_request: I/O error, dev sda, sector 5091200
[   81.002734] Buffer I/O error on device dm-0, logical block 507888
[   81.353639] sd 2:0:0:0: [sda]  
[   81.354603] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   81.354603] sd 2:0:0:0: [sda]  
[   81.354603] Sense Key : Aborted Command [current] 
[   81.354603] sd 2:0:0:0: [sda]  
[   81.354603] Add. Sense: I/O process terminated
[   81.354603] sd 2:0:0:0: [sda] CDB: 
[   81.354603] Read(10): 28 00 00 4d af 80 00 00 08 00
[   81.354603] end_request: I/O error, dev sda, sector 5091200
[   81.354603] Buffer I/O error on device dm-0, logical block 507888
[   81.881638] sd 2:0:0:0: [sda]  
[   81.882610] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   81.882610] sd 2:0:0:0: [sda]  
[   81.882610] Sense Key : Aborted Command [current] 
[   81.882610] sd 2:0:0:0: [sda]  
[   81.882610] Add. Sense: I/O process terminated
[   81.882610] sd 2:0:0:0: [sda] CDB: 
[   81.882610] Read(10): 28 00 00 4d af f0 00 00 08 00
[   81.882610] end_request: I/O error, dev sda, sector 5091312
[   81.882610] Buffer I/O error on device dm-0, logical block 507902
[   82.656463] sd 2:0:0:0: [sda]  
[   82.657425] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   82.657425] sd 2:0:0:0: [sda]  
[   82.657425] Sense Key : Aborted Command [current] 
[   82.657425] sd 2:0:0:0: [sda]  
[   82.657425] Add. Sense: I/O process terminated
[   82.657425] sd 2:0:0:0: [sda] CDB: 
[   82.657425] Read(10): 28 00 00 0f b0 00 00 00 08 00
[   82.657425] Buffer I/O error on device dm-0, logical block 0
[   82.901969] sd 2:0:0:0: [sda]  
[   82.902931] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   82.902931] sd 2:0:0:0: [sda]  
[   82.902931] Sense Key : Aborted Command [current] 
[   82.902931] sd 2:0:0:0: [sda]  
[   82.902931] Add. Sense: I/O process terminated
[   82.902931] sd 2:0:0:0: [sda] CDB: 
[   82.902931] Read(10): 28 00 00 0f b0 00 00 00 08 00
[   83.169233] sd 2:0:0:0: [sda]  
[   83.169871] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   83.170213] sd 2:0:0:0: [sda]  
[   83.170213] Sense Key : Aborted Command [current] 
[   83.170213] sd 2:0:0:0: [sda]  
[   83.170213] Add. Sense: I/O process terminated
[   83.170213] sd 2:0:0:0: [sda] CDB: 
[   83.170213] Read(10): 28 00 00 0f b0 08 00 00 08 00
[   83.514107] sd 2:0:0:0: [sda]  
[   83.515014] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   83.515014] sd 2:0:0:0: [sda]  
[   83.515014] Sense Key : Aborted Command [current] 
[   83.515014] sd 2:0:0:0: [sda]  
[   83.515014] Add. Sense: I/O process terminated
[   83.515014] sd 2:0:0:0: [sda] CDB: 
[   83.515014] Read(10): 28 00 00 4d ae f8 00 00 08 00
[   83.746903] sd 2:0:0:0: [sda]  
[   83.747865] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   83.747865] sd 2:0:0:0: [sda]  
[   83.747865] Sense Key : Aborted Command [current] 
[   83.747865] sd 2:0:0:0: [sda]  
[   83.747865] Add. Sense: I/O process terminated
[   83.747865] sd 2:0:0:0: [sda] CDB: 
[   83.747865] Read(10): 28 00 00 4d ae f8 00 00 08 00
[   84.003492] sd 2:0:0:0: [sda]  
[   84.004456] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   84.004456] sd 2:0:0:0: [sda]  
[   84.004456] Sense Key : Aborted Command [current] 
[   84.004456] sd 2:0:0:0: [sda]  
[   84.004456] Add. Sense: I/O process terminated
[   84.004456] sd 2:0:0:0: [sda] CDB: 
[   84.004456] Read(10): 28 00 00 4d af 00 00 00 08 00
[   84.234763] sd 2:0:0:0: [sda]  
[   84.235500] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   84.235741] sd 2:0:0:0: [sda]  
[   84.235741] Sense Key : Aborted Command [current] 
[   84.235741] sd 2:0:0:0: [sda]  
[   84.235741] Add. Sense: I/O process terminated
[   84.235741] sd 2:0:0:0: [sda] CDB: 
[   84.235741] Read(10): 28 00 00 0f b8 00 00 00 08 00
[   84.532056] sd 2:0:0:0: [sda]  
[   84.532605] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   84.533008] sd 2:0:0:0: [sda]  
[   84.533008] Sense Key : Aborted Command [current] 
[   84.533008] sd 2:0:0:0: [sda]  
[   84.533008] Add. Sense: I/O process terminated
[   84.533008] sd 2:0:0:0: [sda] CDB: 
[   84.533008] Read(10): 28 00 00 0f b0 78 00 00 08 00
[   84.533008] blk_update_request: 7 callbacks suppressed
[   84.533008] end_request: I/O error, dev sda, sector 1028216
[   84.533008] quiet_error: 6 callbacks suppressed
[   84.533008] Buffer I/O error on device dm-0, logical block 15
[   84.780165] sd 2:0:0:0: [sda]  
[   84.780752] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   84.781116] sd 2:0:0:0: [sda]  
[   84.781116] Sense Key : Aborted Command [current] 
[   84.781116] sd 2:0:0:0: [sda]  
[   84.781116] Add. Sense: I/O process terminated
[   84.781116] sd 2:0:0:0: [sda] CDB: 
[   84.781116] Read(10): 28 00 00 0f b0 78 00 00 08 00
[   84.781116] end_request: I/O error, dev sda, sector 1028216
[   84.781116] Buffer I/O error on device dm-0, logical block 15
[   85.037200] sd 2:0:0:0: [sda]  
[   85.038164] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   85.038164] sd 2:0:0:0: [sda]  
[   85.038164] Sense Key : Aborted Command [current] 
[   85.038164] sd 2:0:0:0: [sda]  
[   85.038164] Add. Sense: I/O process terminated
[   85.038164] sd 2:0:0:0: [sda] CDB: 
[   85.038164] Read(10): 28 00 00 0f b0 78 00 00 08 00
[   85.038164] end_request: I/O error, dev sda, sector 1028216
[   85.038164] Buffer I/O error on device dm-0, logical block 15
[   85.365449] sd 2:0:0:0: [sda]  
[   85.366410] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   85.366410] sd 2:0:0:0: [sda]  
[   85.366410] Sense Key : Aborted Command [current] 
[   85.366410] sd 2:0:0:0: [sda]  
[   85.366410] Add. Sense: I/O process terminated
[   85.366410] sd 2:0:0:0: [sda] CDB: 
[   85.366410] Read(10): 28 00 00 0f b1 00 00 00 08 00
[   85.366410] end_request: I/O error, dev sda, sector 1028352
[   85.366410] Buffer I/O error on device dm-0, logical block 32
[   85.581515] sd 2:0:0:0: [sda]  
[   85.582472] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   85.582472] sd 2:0:0:0: [sda]  
[   85.582472] Sense Key : Aborted Command [current] 
[   85.582472] sd 2:0:0:0: [sda]  
[   85.582472] Add. Sense: I/O process terminated
[   85.582472] sd 2:0:0:0: [sda] CDB: 
[   85.582472] Read(10): 28 00 00 0f b2 00 00 00 08 00
[   85.582472] end_request: I/O error, dev sda, sector 1028608
[   85.582472] Buffer I/O error on device dm-0, logical block 64

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
                   ` (12 preceding siblings ...)
  2013-05-24  8:07 ` [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Richard W.M. Jones
@ 2013-05-28 10:35 ` Richard W.M. Jones
  2013-05-28 11:01   ` Richard W.M. Jones
  13 siblings, 1 reply; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-28 10:35 UTC (permalink / raw)
  To: Fam Zheng; +Cc: kwolf, jcody, qemu-devel, stefanha

After discussion off-list, I've gone back and retested versions 4, 5,
and 6 of this patch.

I'm using the test script previously attached.

I'm using libguestfs (ada94eb9) & curl (ba9a6666) & qemu (6a4e177114)
all the latest from git.

I'm using a 6 GB Windows XP guest.  The web server is remote, over
quite slow wifi, and is running Apache 2.2.15 on RHEL 6.

I ran each test 3 times.

v4:

  Buffer I/O errors reported inside the appliance on each run.
  No segfault in qemu.

v5:

  Buffer I/O errors reported inside the appliance on each run.
  No segfault in qemu.

v6:

  Buffer I/O errors reported inside the appliance on each run.
  No segfault in qemu.

no patch (curl driver in upstream qemu):

  No errors.  Everything works.

--

So I guess what has happened is NOT a regression from v5 -> v6, but
that something has changed in my environment which has stopped this
patch from working.

I'm continuing to investigate.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28 10:35 ` Richard W.M. Jones
@ 2013-05-28 11:01   ` Richard W.M. Jones
  2013-05-28 11:14     ` Fam Zheng
  2013-05-28 11:34     ` Stefan Hajnoczi
  0 siblings, 2 replies; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-28 11:01 UTC (permalink / raw)
  To: Fam Zheng; +Cc: kwolf, jcody, qemu-devel, stefanha

On Tue, May 28, 2013 at 11:35:20AM +0100, Richard W.M. Jones wrote:
> I'm continuing to investigate.

Some more data points:

v6 patch, with my laptop plugged directly into the gigabit ethernet
switch which is connected to the web server:

 - Worked perfectly 5 times in a row.

v6 patch, with my laptop next to the wifi aerial:

 - Bug is harder to reproduce, maybe only happens 50% of runs.

v6 patch, with my laptop about 100' from the wifi aerial:

 - Bug reproduces on every run.

So something to do with long latency links.

Question: Is there a place in the patch we could put a sleep in order
to simulate a long latency link?

I also checked the logs on the web server.  There are no errors, and
each access returned a 200 or 206.  So the problem doesn't appear to
be at the web server end.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28 11:01   ` Richard W.M. Jones
@ 2013-05-28 11:14     ` Fam Zheng
  2013-05-28 11:25       ` Richard W.M. Jones
  2013-05-28 11:34     ` Stefan Hajnoczi
  1 sibling, 1 reply; 29+ messages in thread
From: Fam Zheng @ 2013-05-28 11:14 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: kwolf, jcody, qemu-devel, stefanha

On Tue, 05/28 12:01, Richard W.M. Jones wrote:
> On Tue, May 28, 2013 at 11:35:20AM +0100, Richard W.M. Jones wrote:
> > I'm continuing to investigate.
> 
> Some more data points:
> 
> v6 patch, with my laptop plugged directly into the gigabit ethernet
> switch which is connected to the web server:
> 
>  - Worked perfectly 5 times in a row.
> 
> v6 patch, with my laptop next to the wifi aerial:
> 
>  - Bug is harder to reproduce, maybe only happens 50% of runs.
> 
> v6 patch, with my laptop about 100' from the wifi aerial:
> 
>  - Bug reproduces on every run.
> 
> So something to do with long latency links.
> 
> Question: Is there a place in the patch we could put a sleep in order
> to simulate a long latency link?
> 
> I also checked the logs on the web server.  There are no errors, and
> each access returned a 200 or 206.  So the problem doesn't appear to
> be at the web server end.
> 
> Rich.
> 

There seems no easy way to me to inject sleep to io reqs in curl.c.
Another option might be configure & compile qemu with
CFLAGS=-DDEBUG_CURL and grab the stdout, so that we can see how requests
are processed.

-- 
Fam

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28 11:14     ` Fam Zheng
@ 2013-05-28 11:25       ` Richard W.M. Jones
  2013-05-28 11:32         ` Richard W.M. Jones
  0 siblings, 1 reply; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-28 11:25 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng

[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]

[I chopped the CC list down]

On Tue, May 28, 2013 at 07:14:01PM +0800, Fam Zheng wrote:
> There seems no easy way to me to inject sleep to io reqs in curl.c.
> Another option might be configure & compile qemu with
> CFLAGS=-DDEBUG_CURL and grab the stdout, so that we can see how requests
> are processed.

No problems.

I started with v6 patch.  I did:

$ CFLAGS=-DDEBUG_CURL ./configure --enable-werror --target-list="i386-softmmu x86_64-softmmu"
$ make

Note there is a bug!

block/curl.c: In function ‘curl_complete_io’:
block/curl.c:211:5: error: too many arguments for format [-Werror=format-extra-args]
cc1: all warnings being treated as errors
make: *** [block/curl.o] Error 1

Please add the attached patch to your patch set.

After fixing that and continuing the build, I then ran:

$ /tmp/test.sh >& /tmp/curl-debug.log

This shows the error and produces an absolutely vast amount of
debugging (attached).  Note that I killed it after a while but there
should be enough to show the error.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

[-- Attachment #2: 0001-curl-Fix-format-string-in-debugging-statement.patch --]
[-- Type: text/plain, Size: 901 bytes --]

>From 9fdcf62e2e0a42c30fb8ff040ce4b147ca89996b Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 28 May 2013 12:21:34 +0100
Subject: [PATCH] curl: Fix format string in debugging statement.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
 block/curl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/curl.c b/block/curl.c
index 50c7188..3e330b6 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -208,7 +208,7 @@ static void curl_complete_io(BDRVCURLState *bs, CURLAIOCB *acb,
 
     qemu_iovec_from_buf(acb->qiov, 0, cache->data + off, aio_bytes);
     acb->common.cb(acb->common.opaque, 0);
-    DPRINTF("AIO Request OK: " PRId64 "%10zd\n", aio_base, aio_bytes);
+    DPRINTF("AIO Request OK: %" PRId64 "%10zd\n", aio_base, aio_bytes);
     qemu_aio_release(acb);
     acb = NULL;
     /* Move cache next in the list */
-- 
1.8.2.1


[-- Attachment #3: curl-debug.log.xz --]
[-- Type: application/x-xz, Size: 53236 bytes --]

^ permalink raw reply related	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28 11:25       ` Richard W.M. Jones
@ 2013-05-28 11:32         ` Richard W.M. Jones
  2013-05-29  1:07           ` Fam Zheng
  0 siblings, 1 reply; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-28 11:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]


This fixes the obvious bug.

I wonder if it should be even larger?  One use for curl is to install
guests using ISOs from websites without having to download the ISO,
and I imagine that even a 30 second timeout could be conservative for
that task.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top

[-- Attachment #2: 0001-curl-Increase-block-timeout.patch --]
[-- Type: text/plain, Size: 941 bytes --]

>From b53db35e299f1bf28daa82a322b999a3515a53b5 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 28 May 2013 12:30:07 +0100
Subject: [PATCH] curl: Increase block timeout.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
 block/curl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/curl.c b/block/curl.c
index 3e330b6..759f7cb 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -332,7 +332,7 @@ static CURLState *curl_init_state(BDRVCURLState *s)
         goto out;
     }
     curl_easy_setopt(state->curl, CURLOPT_URL, s->url);
-    curl_easy_setopt(state->curl, CURLOPT_TIMEOUT, 5);
+    curl_easy_setopt(state->curl, CURLOPT_TIMEOUT, 30);
     curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION, (void *)curl_read_cb);
     curl_easy_setopt(state->curl, CURLOPT_WRITEDATA, (void *)state);
     curl_easy_setopt(state->curl, CURLOPT_PRIVATE, (void *)state);
-- 
1.8.2.1


^ permalink raw reply related	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28 11:01   ` Richard W.M. Jones
  2013-05-28 11:14     ` Fam Zheng
@ 2013-05-28 11:34     ` Stefan Hajnoczi
  1 sibling, 0 replies; 29+ messages in thread
From: Stefan Hajnoczi @ 2013-05-28 11:34 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: kwolf, jcody, Fam Zheng, qemu-devel

On Tue, May 28, 2013 at 12:01:55PM +0100, Richard W.M. Jones wrote:
> On Tue, May 28, 2013 at 11:35:20AM +0100, Richard W.M. Jones wrote:
> > I'm continuing to investigate.
> 
> Some more data points:
> 
> v6 patch, with my laptop plugged directly into the gigabit ethernet
> switch which is connected to the web server:
> 
>  - Worked perfectly 5 times in a row.
> 
> v6 patch, with my laptop next to the wifi aerial:
> 
>  - Bug is harder to reproduce, maybe only happens 50% of runs.
> 
> v6 patch, with my laptop about 100' from the wifi aerial:
> 
>  - Bug reproduces on every run.
> 
> So something to do with long latency links.
> 
> Question: Is there a place in the patch we could put a sleep in order
> to simulate a long latency link?

Something like this?

tc qdisc add dev wlan0 root netem delay 200ms

Stefan

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-28 11:32         ` Richard W.M. Jones
@ 2013-05-29  1:07           ` Fam Zheng
  2013-05-29  9:25             ` Richard W.M. Jones
  0 siblings, 1 reply; 29+ messages in thread
From: Fam Zheng @ 2013-05-29  1:07 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: qemu-devel, Stefan Hajnoczi

On Tue, 05/28 12:32, Richard W.M. Jones wrote:
> 
> This fixes the obvious bug.

Thanks for figuring out this. Mainline had this 5s timeout so I kept it,
but you don't experience this bug, right? Since master doesn't setup a
timer to get curl notified about the timing, the option is just not
effective.

> I wonder if it should be even larger?  One use for curl is to install
> guests using ISOs from websites without having to download the ISO,
> and I imagine that even a 30 second timeout could be conservative for
> that task.
> 

Long latency network is common in practice, as well as low bandwidth,
the meaning of the timeout is to complete the request, in extreme cases
if it is a 1Kbps link, downloading 256k takes minutes. Anyway, I think
making it larger won't hurt.

-- 
Fam

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read
  2013-05-29  1:07           ` Fam Zheng
@ 2013-05-29  9:25             ` Richard W.M. Jones
  0 siblings, 0 replies; 29+ messages in thread
From: Richard W.M. Jones @ 2013-05-29  9:25 UTC (permalink / raw)
  To: qemu-devel

On Wed, May 29, 2013 at 09:07:25AM +0800, Fam Zheng wrote:
> On Tue, 05/28 12:32, Richard W.M. Jones wrote:
> > 
> > This fixes the obvious bug.
> 
> Thanks for figuring out this. Mainline had this 5s timeout so I kept it,
> but you don't experience this bug, right? Since master doesn't setup a
> timer to get curl notified about the timing, the option is just not
> effective.

Indeed, qemu master has:

    curl_easy_setopt(state->curl, CURLOPT_TIMEOUT, 5);

but I don't encounter the bug when using master, and I'm pretty
certain about that because I've tested it a lot.

It could be that qemu master manages to recover from / restart these
incomplete reads, and doesn't deliver EIO up to the guest.

> > I wonder if it should be even larger?  One use for curl is to install
> > guests using ISOs from websites without having to download the ISO,
> > and I imagine that even a 30 second timeout could be conservative for
> > that task.
> > 
> 
> Long latency network is common in practice, as well as low bandwidth,
> the meaning of the timeout is to complete the request, in extreme cases
> if it is a 1Kbps link, downloading 256k takes minutes. Anyway, I think
> making it larger won't hurt.

I tried playing around with timeouts yesterday.

Inside the guest there is a SCSI timeout (30 seconds default, see
[1]).  This has to be made larger if we make the qemu timeout larger
than 30 seconds.

With upstream qemu I can increase this timeout to 180 seconds and so
read ISOs from slow public websites.  (Try changing the test script so
the 'disk' variable points to an ISO such as [2]).

With the v6 patch, adjusting the SCSI timeout in the guest doesn't
have any effect -- the SCSI disk "aborts" after ~40 seconds whatever I
do.

Rich.

[1] http://kb.vmware.com/kb/1009465
[2] http://mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/releases/18/Live/x86_64/

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2013-05-29  9:25 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-24  5:36 [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Fam Zheng
2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 01/12] curl: introduce CURLSockInfo to BDRVCURLState Fam Zheng
2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 02/12] curl: change magic number to sizeof Fam Zheng
2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 03/12] curl: change curl_multi_do to curl_fd_handler Fam Zheng
2013-05-24  5:36 ` [Qemu-devel] [PATCH v6 04/12] curl: fix curl_open Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 05/12] curl: add timer to BDRVCURLState Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 06/12] curl: introduce CURLDataCache Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 07/12] curl: make use of CURLDataCache Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 08/12] curl: use list to store CURLState Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 09/12] curl: add cache quota Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 10/12] curl: introduce ssl_no_cert runtime option Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 11/12] block/curl.c: Refuse to open the handle for writes Fam Zheng
2013-05-24  5:37 ` [Qemu-devel] [PATCH v6 12/12] curl: set s->url to NULL after free Fam Zheng
2013-05-24  8:07 ` [Qemu-devel] [PATCH v6 00/12] curl: fix curl read Richard W.M. Jones
2013-05-27  2:25   ` Fam Zheng
2013-05-27 11:57     ` Richard W.M. Jones
2013-05-28  7:30       ` Fam Zheng
2013-05-28  7:47         ` Richard W.M. Jones
2013-05-28  8:46           ` Richard W.M. Jones
2013-05-28  8:52             ` Fam Zheng
2013-05-28  8:53             ` Richard W.M. Jones
2013-05-28 10:35 ` Richard W.M. Jones
2013-05-28 11:01   ` Richard W.M. Jones
2013-05-28 11:14     ` Fam Zheng
2013-05-28 11:25       ` Richard W.M. Jones
2013-05-28 11:32         ` Richard W.M. Jones
2013-05-29  1:07           ` Fam Zheng
2013-05-29  9:25             ` Richard W.M. Jones
2013-05-28 11:34     ` Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.