From: Andy Gaynor <silver@silver.unix-fu.org>
To: linux-kernel@vger.kernel.org
Subject: losetuping files in tmpfs fails?
Date: Sun, 30 Dec 2001 07:39:10 -0500 [thread overview]
Message-ID: <3C2F0AEE.ACABAAFA@silver.unix-fu.org> (raw)
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
next reply other threads:[~2002-01-03 18:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-30 12:39 Andy Gaynor [this message]
2002-01-03 23:10 ` losetuping files in tmpfs fails? Andrew Morton
2002-01-03 23:42 ` David Golden
2002-01-03 23:42 ` Andreas Dilger
2002-01-04 10:38 ` Andy Gaynor
-- 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
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
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=3C2F0AEE.ACABAAFA@silver.unix-fu.org \
--to=silver@silver.unix-fu.org \
--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