Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 1997 17:22:11 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        toor@dyson.iquest.net (John S. Dyson)
Cc:        terry@lambert.org, mtaylor@cybernet.com, hackers@freebsd.org, bugs@freebsd.org
Subject:   Re: vnode as filesystem (crash!)
Message-ID:  <199704150022.RAA20030@phaeton.artisoft.com>
In-Reply-To: <199704142256.RAA02060@dyson.iquest.net> from "John S. Dyson" at Apr 14, 97 05:56:56 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > There is also a FreeBSD ftruncate() case where if the indirect blocks
> > are not zero, FreeBSD will we itself (NetBSD fixed this too).
>
> I didn't know about that.

While we're in the neighborhood... should ftruncate() to a file size
larger than the larget filesize supported return EFBIG, not EINVAL?
It seems the test for the length should be delayed until further into
the function?

Also, the NetBSD code has a bug, where it will call the setsize() before
it tests the length in this particular case...


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704150022.RAA20030>