Subject: Re: ftruncate: ENOSPC?
To: Paul Drynoff <pauldrynoff@gmail.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 06/26/2006 11:11:17
On Jun 24, 2006, at 11:04 AM, Paul Drynoff wrote:

> Hello.
>
> Accoring to truncate(2) ftruncate should not return
> ENOSPC, but if looking at FFS implementation,
> it can return ENOSPC if can not allocate space for last byte.
> And I can easily reproduce this on my NetBSD 2.x box.

Well, if it can't allocate the space, what else would you expect it  
to do?

>
> Is this a bug?

-- thorpej