mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bernd Eckenfels <W1012@lina.inka.de>
To: linux-kernel@vger.kernel.org
Subject: Re: [BUG] tmpfs and loop
Date: Sat, 14 Apr 2001 10:45:20 +0200	[thread overview]
Message-ID: <E14oLgG-0007vf-00@sites.inka.de> (raw)
In-Reply-To: <01041321112600.23961@oscar>

In article <01041321112600.23961@oscar> you wrote:
> oscar% sudo mount /tmp/disk /snap -oloop -text2
> ioctl: LOOP_SET_FD: Invalid argument

are you sure you have a working loop device? Try to verify it in a non tmpfs
filesystem.

> stat64("/dev/loop0", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 0), ...}) = 0
> open("/dev/loop0", O_RDONLY|O_LARGEFILE) = 3
> ioctl(3, 0x4c03, 0xbffff7fc)            = -1 ENXIO (No such device or address)

otherwise try this by hand with losetup.

> close(3)                                = 0
> open("/tmp/disk", O_RDWR|O_LARGEFILE)   = 3
> open("/dev/loop0", O_RDWR|O_LARGEFILE)  = 4
> mlockall(MCL_CURRENT|MCL_FUTURE)        = 0
> ioctl(4, 0x4c00, 0x3)                   = -1 EINVAL (Invalid argument)
> write(2, "ioctl: LOOP_SET_FD: Invalid argu"..., 37ioctl: LOOP_SET_FD: Invalid argument

Greetings
Bernd

      reply	other threads:[~2001-04-14  8:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-14  1:11 Ed Tomlinson
2001-04-14  8:45 ` Bernd Eckenfels [this message]

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=E14oLgG-0007vf-00@sites.inka.de \
    --to=w1012@lina.inka.de \
    --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

all inboxes | Powered by JetHome®