public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 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; 4+ 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] 4+ messages in thread

* Re: losetuping files in tmpfs fails?
  2002-01-04 18:47 losetuping files in tmpfs fails? Ishan Oshadi Jayawardena
@ 2002-01-05 23:18 ` H. Peter Anvin
  2002-01-14 12:43   ` tmpfs accounting (was: losetuping files in tmpfs fails?) Christoph Rohland
  0 siblings, 1 reply; 4+ messages in thread
From: H. Peter Anvin @ 2002-01-05 23:18 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <3C35F8B2.98763627@sltnet.lk>
By author:    Ishan Oshadi Jayawardena <ioshadi@sltnet.lk>
In newsgroup: linux.dev.kernel
> 
> 	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.
> 

That was the original reason for it, when it was called "shmfs".  It
has become more than that, due to the fairly clever observation that
"shmfs" already supported virtually everything needed for a swappable
temporary-storage general filesystem.

	-hpa

P.S. On kernel.org, I was forced to hack tmpfs so that it returns a
nonzero size for directories; otherwise "make distclean" breaks for
older Linux kernels, and the incdiff robot that runs on kernel.org
relies on this operation working correctly.  It would be a good thing
if tmpfs could account for the amount of memory consumed by
directories, etc.
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>

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

* tmpfs accounting (was: losetuping files in tmpfs fails?)
  2002-01-05 23:18 ` H. Peter Anvin
@ 2002-01-14 12:43   ` Christoph Rohland
  2002-01-14 15:44     ` H. Peter Anvin
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Rohland @ 2002-01-14 12:43 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel

Hi Peter,

On 5 Jan 2002, H. Peter Anvin wrote:
> P.S. On kernel.org, I was forced to hack tmpfs so that it returns a
> nonzero size for directories; otherwise "make distclean" breaks for
> older Linux kernels, and the incdiff robot that runs on kernel.org
> relies on this operation working correctly.  It would be a good
> thing if tmpfs could account for the amount of memory consumed by
> directories, etc.

I would not like to add the real size without a bigger goal (I would
not see a problem with a fake size).

On the other side I could imagine that we make the directories tmpfs
files which hold the swap vectors of the real tmpfs files of this
directory. With this we would gain swappable meta data for tmpfs and
had a real size for the directories for free.

Greetings
		Christoph



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

* Re: tmpfs accounting (was: losetuping files in tmpfs fails?)
  2002-01-14 12:43   ` tmpfs accounting (was: losetuping files in tmpfs fails?) Christoph Rohland
@ 2002-01-14 15:44     ` H. Peter Anvin
  0 siblings, 0 replies; 4+ messages in thread
From: H. Peter Anvin @ 2002-01-14 15:44 UTC (permalink / raw)
  To: Christoph Rohland; +Cc: linux-kernel

Christoph Rohland wrote:

> 
> I would not like to add the real size without a bigger goal (I would
> not see a problem with a fake size).
> 


It defeats the filesystem size limit, and makes it possible to an 
unprivileged user to consume unlimited amounts of kernel memory.

	-hpa


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

end of thread, other threads:[~2002-01-14 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-04 18:47 losetuping files in tmpfs fails? Ishan Oshadi Jayawardena
2002-01-05 23:18 ` H. Peter Anvin
2002-01-14 12:43   ` tmpfs accounting (was: losetuping files in tmpfs fails?) Christoph Rohland
2002-01-14 15:44     ` H. Peter Anvin

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