[Stgt-devel] No LUN option in target.c

FUJITA Tomonori fujita.tomonori
Mon Nov 26 12:06:03 CET 2007


On Mon, 26 Nov 2007 09:53:38 +0100
Albert Pauw <apauw at inter.nl.net> wrote:

> Just reminded myself to compare apples with apples, not pears ;-)
> 
> So I ran the tests again, both type of targets (iet, tgt) with the same 
> settings
> (MaxBurstLength, DataSegmentLenghts, Digests).

Does this patch help on your configuration (target and initiator run
on the same machine)?


diff --git a/usr/log.c b/usr/log.c
index 414f9f4..b77b8c3 100644
--- a/usr/log.c
+++ b/usr/log.c
@@ -338,8 +338,8 @@ int log_init(char *program_name, int size, int daemon, int debug)
 		sigaction(SIGSEGV, &sa_new, &sa_old );
 
 		while(1) {
-			log_flush();
-			sleep(1);
+/* 			log_flush(); */
+			sleep(100);
 		}
 		exit(0);
 	}



More information about the stgt mailing list