lkml.org 
[lkml]   [2008]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: jffs2: -ENOSPC when truncating file?!
From
Date

On Sun, 2008-02-24 at 00:57 +0100, 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:~#

You need to write a log entry indicating the new length of the file.
There is no space for new log entries.

There is a special case for removal -- 'rm gps.nmea' would work. Perhaps
we should add a special case for truncation too, so that it can also use
the extra pool of free space.

--
dwmw2



\
 
 \ /
  Last update: 2008-02-24 01:39    [W:0.075 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site