login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
24
Re: jffs2: -ENOSPC when truncating file?!
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Pavel Machek <pavel@...>
To: David Woodhouse <dwmw2@...>
Cc: Jörn <joern@...>, <linux-mtd@...>, kernel list <linux-kernel@...>
Subject:
Re: jffs2: -ENOSPC when truncating file?!
Date: Sunday, February 24, 2008 - 3:02 pm
On Sun 2008-02-24 18:57:32, David Woodhouse wrote:
quoted text
> > On Sun, 2008-02-24 at 07:57 +0100, Jörn Engel wrote: > > Could a na??ve implementation of this get exploited by doing a large > > number of truncates that just shave single bytes off various files? > > Yeah, which is why _my_ na??ve implementation would do it for > truncate-to-zero instead of just _any_ truncate (which could even be > truncate-to-larger). > > A more complex version might allow _any_ transaction to eat into the > ALLOC_DELETION pool if it is ultimately going to reduce the amount of > space taken on the file system -- even overwriting 'real' data with > zeroes which compress better. That's going to be hard to calculate in > the general case though. > > If allowing only truncate-to-zero isn't good enough, perhaps we could > allow truncation to use the ALLOC_DELETION pool when it's going to > obsolete at least one full data node. That's not so hard to check.
I believe truncate-to-zero is good enough. -- (english)
http://www.livejournal.com/~pavelmachek
(cesky, pictures)
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
jffs2: -ENOSPC when truncating file?!
, Pavel Machek
, (Sat Feb 23, 7:57 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Alexander Belyakov
, (Mon Feb 25, 3:48 am)
Re: jffs2: -ENOSPC when truncating file?!
, Pavel Machek
, (Mon Mar 3, 8:15 am)
Re: jffs2: -ENOSPC when truncating file?!
, Alexander Belyakov
, (Mon Mar 3, 12:09 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Jörn
, (Mon Mar 3, 11:10 am)
Re: jffs2: -ENOSPC when truncating file?!
, David Woodhouse
, (Sat Feb 23, 8:36 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Pavel Machek
, (Sun Feb 24, 3:24 am)
Re: jffs2: -ENOSPC when truncating file?!
, Jamie Lokier
, (Sun Feb 24, 12:11 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Jörn
, (Sun Feb 24, 2:57 am)
Re: jffs2: -ENOSPC when truncating file?!
, David Woodhouse
, (Sun Feb 24, 6:57 am)
Re: jffs2: -ENOSPC when truncating file?!
, Pavel Machek
, (Sun Feb 24, 3:02 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Jörn
, (Sun Feb 24, 7:08 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Martin Michlmayr
Network slowdown due to CFS
Ingo Molnar
Re: containers (was Re: -mm merge plans for 2.6.23)
Ingo Molnar
Re: x86 arch updates also broke s390
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH iproute2 v2] Re: HTB accuracy for high speed
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
859 guests
online.
Online users
muebcas98
enbuscadorto
flashtraininpml
Syndicate