From - Tue Feb 15 14:09:22 2000
Return-Path: <mail@redhat.com>
Received: from lacrosse.corp.redhat.com (root@lacrosse.corp.redhat.com [207.175.42.154])
	by devserv.devel.redhat.com (8.9.3/8.9.3) with ESMTP id BAA25469;
	Mon, 14 Feb 2000 01:28:01 -0500
Received: (from mail@localhost)
	by lacrosse.corp.redhat.com (8.9.3/8.9.3) id BAA15510
	for rhkernel-list-dist; Mon, 14 Feb 2000 01:28:01 -0500
Received: from redhat.com ([10.0.0.25])
	by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id BAA15505
	for <rhkernel-list@redhat.com>; Mon, 14 Feb 2000 01:28:00 -0500
Sender: dledford@redhat.com
Message-ID: <38A75AC0.8E885BA1@redhat.com>
Date: Sun, 13 Feb 2000 20:30:40 -0500
From: Doug Ledford <dledford@redhat.com>
Organization: Red Hat, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.14-1.1.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: rhkernel-list@redhat.com
Subject: [Fwd: increase # of loop devices?]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-to: rhkernel-list@redhat.com
X-loop: rhkernel-list@redhat.com
Status:   
X-Mozilla-Status: 8001
X-Mozilla-Status2: 00000000
X-UIDL: 3859a1f10000f24a


This actually makes some sense on our kernels for other reasons (our own ftp
sites comes to mind).  Anyone know of any problems with this?

-------- Original Message --------
From: Matt_Domsch@Dell.com
Subject: increase # of loop devices?
To: dledford@redhat.com, Mark_Rusk@Dell.com

Doug, would you consider increasing the number of loop devices availalble,
from 8 to 16?  Looks like it's a matter of increasing the value of MAX_LOOP
in loop.c, but there may be side-effects I'm not aware of.  I routinely
mount ISO images via loop, and hit the 8 limit rather quickly.  I suspect
people running mirror servers do the same thing.

Thanks,
Matt


 diff -burN drivers/block/loop.c.orig drivers/block/loop.c
--- drivers/block/loop.c.orig   Thu Feb 10 13:25:05 2000
+++ drivers/block/loop.c        Thu Feb 10 13:25:15 2000
@@ -61,7 +61,7 @@
 #define TIMEOUT_VALUE (6 * HZ)
 #include <linux/blk.h>
 
-#define MAX_LOOP 8
+#define MAX_LOOP 16
 static struct loop_device loop_dev[MAX_LOOP];
 static int loop_sizes[MAX_LOOP];
 static int loop_blksizes[MAX_LOOP];

