[lkml]   [2008]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: jffs2: -ENOSPC when truncating file?!
On Sun, Feb 24, 2008 at 2:57 AM, Pavel Machek <> wrote:
> Hi!
> I'm trying to free space by truncating big file, and I get:
> root@fic-gta01:~# ls -al gps.nmea
> -rw-r--r-- 1 root root 2332070 Feb 19 22:13 gps.nmea
> root@fic-gta01:~# > gps.nmea
> -sh: cannot create gps.nmea: No space left on device
> root@fic-gta01:~# rm gps.nmea
> root@fic-gta01:~# > gps.nmea
> root@fic-gta01:~#
> :-(
> Kernel is not-so-ancient, on openmoko:


JFFS2 has known bug in GC leading to -ENOSPC upon file removal. Time
ago I've sent a patch with detailed explanations of what is going on.
Probably your case is the same.

Here is the patch
(though infradead mailing list archive is missing most of messages
from this thread)

And here are some details


 \ /
  Last update: 2008-02-25 08:51    [W:0.134 / U:3.396 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site