9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] truncation via wstat on ken's fs
@ 2004-10-17 11:05 geoff
  2004-10-17 11:18 ` Brantley Coile
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: geoff @ 2004-10-17 11:05 UTC (permalink / raw)
  To: 9fans

Changing the length is easy, but giving back the no-longer-needed
blocks is messy, involving a recursive walk of the indirect blocks.
I'm tempted to just change the length, which gives the desired
user-visible effect, unless the side-effect of freeing the
unneeded storage is important to someone.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [9fans] truncation via wstat on ken's fs
@ 2004-10-17 13:19 Aharon Robbins
  0 siblings, 0 replies; 10+ messages in thread
From: Aharon Robbins @ 2004-10-17 13:19 UTC (permalink / raw)
  To: 9fans

> > Changing the length is easy, but giving back the no-longer-needed
> > blocks is messy, involving a recursive walk of the indirect blocks.
> > I'm tempted to just change the length, which gives the desired
> > user-visible effect, unless the side-effect of freeing the
> > unneeded storage is important to someone.
>
> Leaving the blocks there was the first thing I thought of.
> They will get reclaimed when the file is deleted anyway.
> Seems like a good idea to me.

Who says the file will ever get deleted?

Arnold


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-10-18  8:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-17 11:05 [9fans] truncation via wstat on ken's fs geoff
2004-10-17 11:18 ` Brantley Coile
2004-10-17 17:01 ` Russ Cox
2004-10-18  0:43   ` geoff
2004-10-18  8:03     ` Charles Forsyth
2004-10-18  8:24       ` geoff
2004-10-18  8:36         ` Charles Forsyth
2004-10-18  8:38           ` geoff
2004-10-17 17:35 ` boyd, rounin
2004-10-17 13:19 Aharon Robbins

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).