public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Ornati <ornati@fastwebnet.it>
To: Matthew <jackdachef@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: /dev/loop* devices not appearing in /dev (at least since 2.6.22-rc3*)
Date: Thu, 14 Jun 2007 17:22:34 +0200	[thread overview]
Message-ID: <20070614172234.7f636307@localhost> (raw)
In-Reply-To: <e85b9d30706140710x5671fa12n5845172d4ce32a10@mail.gmail.com>

On Thu, 14 Jun 2007 16:10:44 +0200
Matthew <jackdachef@gmail.com> wrote:

> I just tried out
> 
> modprobe loop max_loop=32
> 
> output of dmesg is:
> 
> [  457.607575] loop: the max_loop option is obsolete and will be
> removed in March 2008
> [  457.607578] loop: module loaded
> 
> but there are NO loop devices in /dev:
> 
> ls -l /dev/ | grep loop
> still shows nothing, strange ...

it's not strange, with your kernel version "max_loop" will just limit
the max number of loop devices at most.

This is what happens with the mentioned patch (-rc5 and later):

+	/*
+	 * loop module now has a feature to instantiate underlying device
+	 * structure on-demand, provided that there is an access dev node.
+	 * However, this will not work well with user space tool that doesn't
+	 * know about such "feature".  In order to not break any existing
+	 * tool, we do the following:
+	 *
+	 * (1) if max_loop is specified, create that many upfront, and this
+	 *     also becomes a hard limit.
+	 * (2) if max_loop is not specified, create 8 loop device on module
+	 *     load, user can further extend loop device by create dev node
+	 *     themselves and have kernel automatically instantiate actual
+	 *     device on-demand.
+	 */


So with this patch "max_loop=32" will create 32 loop devices... but
then it doesn't allow more of them.

Without options it creates 8 and you (or some userspace tool) can add
more dynamically.

-- 
	Paolo Ornati
	Linux 2.6.22-rc4-cfs-v16-g47932c49 on x86_64

  reply	other threads:[~2007-06-14 15:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-14 11:37 /dev/loop* devices not appearing in /dev (at least since 2.6.22-rc3*) Matthew
2007-06-14 12:52 ` Paolo Ornati
2007-06-14 14:10   ` Matthew
2007-06-14 15:22     ` Paolo Ornati [this message]
2007-06-14 15:44       ` markus reichelt
2007-06-14 16:32         ` Matthias Schniedermeyer
2007-06-15  9:00           ` Jan Engelhardt
2007-06-14 12:52 ` markus reichelt
2007-06-15  9:01   ` Jan Engelhardt
2007-06-15 11:19     ` Simon Arlott
2007-06-15 17:19       ` Paolo Ornati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070614172234.7f636307@localhost \
    --to=ornati@fastwebnet.it \
    --cc=jackdachef@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox