login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
24
Re: jffs2: -ENOSPC when truncating file?!
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pavel Machek
Subject:
Re: jffs2: -ENOSPC when truncating file?!
Date: Sunday, February 24, 2008 - 12: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, 4:57 pm)
Re: jffs2: -ENOSPC when truncating file?!
, David Woodhouse
, (Sat Feb 23, 5:36 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Jörn
, (Sat Feb 23, 11:57 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Pavel Machek
, (Sun Feb 24, 12:24 am)
Re: jffs2: -ENOSPC when truncating file?!
, David Woodhouse
, (Sun Feb 24, 3:57 am)
Re: jffs2: -ENOSPC when truncating file?!
, Jörn
, (Sun Feb 24, 4:08 am)
Re: jffs2: -ENOSPC when truncating file?!
, Jamie Lokier
, (Sun Feb 24, 9:11 am)
Re: jffs2: -ENOSPC when truncating file?!
, Pavel Machek
, (Sun Feb 24, 12:02 pm)
Re: jffs2: -ENOSPC when truncating file?!
, Alexander Belyakov
, (Mon Feb 25, 12:48 am)
Re: jffs2: -ENOSPC when truncating file?!
, Pavel Machek
, (Mon Mar 3, 5:15 am)
Re: jffs2: -ENOSPC when truncating file?!
, Jörn
, (Mon Mar 3, 8:10 am)
Re: jffs2: -ENOSPC when truncating file?!
, Alexander Belyakov
, (Mon Mar 3, 9:09 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Pekka Enberg
Re: BUG in free_block (tainted)
Rafael J. Wysocki
[Bug #16136] Linux 2.6.34 causes system lockup on Compaq Presario 2200 Laptop
Joerg Roedel
Re: [patch] dma-debug: off by one issue
Tetsuo Handa
Re: [AppArmor #7 0/13] AppArmor security module
Jakub Narebski
Re: [PATCH] gitweb: Fix shortlog only showing HEAD revision.
git
:
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Henk
Announcement: Git Extensions stable (windows shell extensions)
Junio C Hamano
Re: [RFC] origin link for cherry-pick and revert
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Amit Kumar Salecha
[PATCH NEXT 10/10] qlcnic: add cksum flag
Julius Volz
[PATCH] IRDA: Fix genlmsg_put() return value check.
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
virtio_blk: implement naming for vda-vdz,vdaa-vdzz,vdaaa-vdzzz
Linux Kernel Mailing List
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
Linux Kernel Mailing List
[POWERPC] Use of_register_driver to implement of_register_platform_driver
openbsd-misc
:
Ryan McBride
Re: Packets Per Second Limit?
Stuart Henderson
Re: SquidGuard problem
Henning Brauer
Re: 3ware hardware raid support?
nixlists
Re: Openssl patch breaks Tor
Nick Guenther
Re: Encrypting home partition
Colocation donated by:
Syndicate