linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Zero free bytes incorrectly reported by initramfs
@ 2007-11-26  3:41 Amos Waterland
  0 siblings, 0 replies; only message in thread
From: Amos Waterland @ 2007-11-26  3:41 UTC (permalink / raw)
  To: linux-fsdevel

Hi.  The initramfs filesystem reports zero bytes free when queried with
the statfs system call, even when there are 8 GB or more free memory.

This is a problem for me because I am building software appliances that
run entirely out of an initramfs.  I need to allow the user to install
a package with apt-get (of course, the install will not be persistent
across reboots).  The apt-get source checks the f_bfree field in the
statfs struct and bails out when it sees a zero.

I have submitted a patch[1] against apt-get to just blindly plow ahead if
the filesystem type is RAMFS, but I would prefer to get some input from
this list regarding the best way to proceed.  Why does initramfs report
zero bytes free?

--

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=448316


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-26  3:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-26  3:41 Zero free bytes incorrectly reported by initramfs Amos Waterland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).