public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Rohland <cr@sap.com>
To: Gregor Jasny <gjasny@wh8.tu-dresden.de>
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Bug in swapfs (2.4.0-ac9)
Date: 16 Jan 2001 09:50:09 +0100	[thread overview]
Message-ID: <qwwn1crhoe6.fsf@sap.com> (raw)
In-Reply-To: <01011523192600.00565@backfire>
In-Reply-To: <01011523192600.00565@backfire>

Hi Gregor,

On Mon, 15 Jan 2001, Gregor Jasny wrote:
> I think I've found a bug in swapfs:
> 
> fstab:
> swapfs          /dev/shm        swapfs  defaults 0 0
> swapfs         /tmp    swapfs  defaults 0 0
> 
> When I hit <enter> on a tar.gz file in Midnight Commander nothing
> happens. If I do a umonut /tmp and hit <enter> again it works as It
> should (I see the archived files).  Nearly the same Problem with the
> Acrobat Reader pluin for Netscape. It shows only a blank page when
> /tmp is swapfs.

Yep, Alan introduced a maxbytes field to the superblock which is not
set in swapfs. So the vfs will always fail with EFBIG. 
I will send out a patch soon.

> I've noticed that it's possible to mount /tmp more than once. mount
> shows then
> [snip]
> swapfs on /dev/shm type swapfs (rw)
> swapfs on /tmp type swapfs (rw)
> swapfs on /tmp type swapfs (rw)
> swapfs on /tmp type swapfs (rw)
> swapfs on /tmp type swapfs (rw)

The vfs allows multiple mount with 2.4, and for swapfs you always get
a fresh instance with its own resource limits. Think anout chroot with
its own swapfs instance. AFAIK the new util-linux will give you some
checking.

> The permissions for /tmp are rwxrwxrwt, and even -omode=777,exec
> didn't help.

Your bootup script sets the mode after mounting? The mode parameter is
functional for me and the default is 777. 1777 has to be done in user
space.

Greetings
		Christoph

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2001-01-16  8:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-15 22:19 Bug in swapfs (2.4.0-ac9) Gregor Jasny
2001-01-16  8:50 ` Christoph Rohland [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=qwwn1crhoe6.fsf@sap.com \
    --to=cr@sap.com \
    --cc=gjasny@wh8.tu-dresden.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