Subject: ftruncate: ENOSPC?
To: None <tech-kern@NetBSD.org>
From: Paul Drynoff <pauldrynoff@gmail.com>
List: tech-kern
Date: 06/24/2006 22:04:51
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.

Is this a bug?