public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: losetuping files in tmpfs fails?
@ 2002-01-05 21:51 Frédéric L. W. Meunier
  2002-01-05 23:20 ` H. Peter Anvin
  2002-01-06  0:15 ` Guest section DW
  0 siblings, 2 replies; 10+ messages in thread
From: Frédéric L. W. Meunier @ 2002-01-05 21:51 UTC (permalink / raw)
  To: Linux Kernel

On a side note, why do I need to use losetup -d after umount
when /etc/mtab is a symlink to /proc/mounts ?

mount or loop "feature" ?

-- 
0@pervalidus.{net, {dyndns.}org} Tel: 55-21-2717-2399 (Niterói-RJ BR)

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: losetuping files in tmpfs fails?
@ 2002-01-04 18:47 Ishan Oshadi Jayawardena
  2002-01-05 23:18 ` H. Peter Anvin
  0 siblings, 1 reply; 10+ messages in thread
From: Ishan Oshadi Jayawardena @ 2002-01-04 18:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

Greetings.

Andrew Morton wrote:

> Yup, tmpfs doesn't provide some of the facilities which the
<snip>
> It's not obvious that there's a burning need to support loop-on-tmpfs
> though, is there?

	No, there isn't. I noticed this myself a few months back, but didn't
complain because, well, the purpose of tmpfs is to provide support for
POSIX shared memory, right? (At least according to Configure.help).
{If,/ Because} tmpfs does that correctly, it's not broken.
	The only app I've encountered that breaks with this is mkinitrd and
associates, but it should at least attempt to fallback to the user's
home directory IMHO (without complaining "you're all out of loop
devices" - an old Redhat mkinitrd).

Cheerio!

	 - ioj

^ permalink raw reply	[flat|nested] 10+ messages in thread
* losetuping files in tmpfs fails?
@ 2001-12-30 12:39 Andy Gaynor
  2002-01-03 23:10 ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: Andy Gaynor @ 2001-12-30 12:39 UTC (permalink / raw)
  To: linux-kernel

Whilst trying to figure out why my dang stripes won't persist (a separate
but worrisome issue), I wrote a dittie which creates a couple junk files in
/tmp (tmpfs), associates loop devices with them, whoops, losetup craps out.

  /home/root# losetup -d /dev/loop/5 2>/dev/null # Free /dev/loop/5

  /home/root# cd /home/root             # Go home
  /home/root# mount | grep /home        # Filesystem is ...
  /dev/md/8 on /home type reiserfs (rw) #   reiserfs
  /home/root# echo foo > foo            # Create file foo
  /home/root# losetup /dev/loop/5 foo   # Give foo to /dev/loop/5
  /home/root# losetup -d /dev/loop/5    # Free /dev/loop/5
  /home/root# rm foo                    # Remove foo

  /home/root# cd /tmp                   # Go to /tmp
  /tmp# mount | grep tmp                # Filesystem is ...
  tmpfs on /tmp type tmpfs (rw)         #   tmpfs
  /tmp# echo foo > foo                  # Create file foo
  /tmp# losetup /dev/loop/5 foo         # Give foo to /dev/loop/5
  ioctl: LOOP_SET_FD: Invalid argument  #   DISCO!!!                <o >  <o >
  /tmp# rm foo                          # Remove foo

    Version information:

  Distribution: Debian Woody, up-to-date as of a week ago
  Kernel: Linux 2.4.17

    I don't subscribe to linux-kernel@vger.kernel.org.  If you want me to
see a message, please mail it to me.  If my site is down, send to
stupid_email_tricks@mailandnews.com.  And bonk my administrator with a
wiffle bat.

Regards, [Ag]   Andy Gaynor   silver@silver.unix-fu.org

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-01-06  0:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-05 21:51 losetuping files in tmpfs fails? Frédéric L. W. Meunier
2002-01-05 23:20 ` H. Peter Anvin
2002-01-06  0:15 ` Guest section DW
  -- strict thread matches above, loose matches on Subject: below --
2002-01-04 18:47 Ishan Oshadi Jayawardena
2002-01-05 23:18 ` H. Peter Anvin
2001-12-30 12:39 Andy Gaynor
2002-01-03 23:10 ` Andrew Morton
2002-01-03 23:42   ` David Golden
2002-01-03 23:42   ` Andreas Dilger
2002-01-04 10:38   ` Andy Gaynor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox