diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-19 21:45:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-19 21:45:22 +0000 |
commit | f8d5049cb6d34e401255ea44b43e822212710404 (patch) | |
tree | 8e57e88475373db25b7dc483ef2533f4025f5282 /src/fs/gnunet-service-fs_indexing.c | |
parent | e41d947ebba0fb53fb06d0692aac54fd4b96540c (diff) | |
download | gnunet-f8d5049cb6d34e401255ea44b43e822212710404.tar.gz gnunet-f8d5049cb6d34e401255ea44b43e822212710404.zip |
breaking FS big time, no idea why
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.c')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index 6c44f8e2f..39999be75 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include "gnunet-service-fs_indexing.h" | 40 | #include "gnunet-service-fs_indexing.h" |
41 | #include "fs.h" | 41 | #include "fs.h" |
42 | 42 | ||
43 | #define DEBUG_FS GNUNET_NO | 43 | #define DEBUG_FS GNUNET_YES |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * In-memory information about indexed files (also available | 46 | * In-memory information about indexed files (also available |
@@ -367,6 +367,13 @@ GNUNET_FS_handle_index_start (void *cls, | |||
367 | ii->filename = (const char*) &ii[1]; | 367 | ii->filename = (const char*) &ii[1]; |
368 | memcpy (&ii[1], fn, slen); | 368 | memcpy (&ii[1], fn, slen); |
369 | ii->file_id = ism->file_id; | 369 | ii->file_id = ism->file_id; |
370 | #if DEBUG_FS | ||
371 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
372 | "Received `%s' message for file `%s'\n", | ||
373 | "START_INDEX", | ||
374 | ii->filename); | ||
375 | #endif | ||
376 | |||
370 | ii->tc = GNUNET_SERVER_transmit_context_create (client); | 377 | ii->tc = GNUNET_SERVER_transmit_context_create (client); |
371 | mydev = 0; | 378 | mydev = 0; |
372 | myino = 0; | 379 | myino = 0; |
@@ -610,8 +617,9 @@ GNUNET_FS_handle_on_demand_block (const GNUNET_HashCode * key, | |||
610 | sizeof (ndata)))) ) | 617 | sizeof (ndata)))) ) |
611 | { | 618 | { |
612 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 619 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
613 | _("Could not access indexed file `%s' at offset %llu: %s\n"), | 620 | _("Could not access indexed file `%s' (%s) at offset %llu: %s\n"), |
614 | GNUNET_h2s (&odb->file_id), | 621 | GNUNET_h2s (&odb->file_id), |
622 | fn, | ||
615 | (unsigned long long) off, | 623 | (unsigned long long) off, |
616 | STRERROR (errno)); | 624 | STRERROR (errno)); |
617 | if (fh != NULL) | 625 | if (fh != NULL) |