From owner-cvs-src@FreeBSD.ORG Thu Jun 1 10:00:05 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9051D16B690; Thu, 1 Jun 2006 10:00:05 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C492E43D7E; Thu, 1 Jun 2006 10:00:04 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.4/8.13.3) with ESMTP id k51A00Xm057895; Thu, 1 Jun 2006 14:00:00 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Thu, 1 Jun 2006 14:00:00 +0400 (MSD) From: Maxim Konovalov To: Ceri Davies In-Reply-To: <20060601094950.GU21998@submonkey.net> Message-ID: <20060601135855.I24680@mp2.macomnet.net> References: <200605311315.k4VDFUhD093628@repoman.freebsd.org> <20060601023523.GA80617@wantadilla.lemis.com> <20060601094950.GU21998@submonkey.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Greg 'groggy' Lehey , cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ufs/ufs ufs_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 10:00:10 -0000 On Thu, 1 Jun 2006, 10:49+0100, Ceri Davies wrote: > On Thu, Jun 01, 2006 at 12:05:23PM +0930, Greg 'groggy' Lehey wrote: > > On Wednesday, 31 May 2006 at 13:15:29 +0000, Maxim Konovalov wrote: > > > maxim 2006-05-31 13:15:29 UTC > > > > > > FreeBSD src repository > > > > > > Modified files: > > > sys/ufs/ufs ufs_vnops.c > > > Log: > > > o According to POSIX, the result of ftruncate(2) is unspecified > > > for file types other than VREG, VDIR and shared memory objects. > > > We already handle VREG, VLNK and VDIR cases. Silently ignore > > > > > > Revision Changes Path > > > 1.276 +22 -4 src/sys/ufs/ufs/ufs_vnops.c > > > > Is this worth a man page update? > > Undoubtedly. Does the attached look like enough? I'm not sure if we > want to add a STANDARDS section for this when it's valid behaviour. @@ -69,6 +69,10 @@ the file must be open for writing. .Sh RETURN VALUES .Rv -std +If the file to be modified is not a directory or +a regular file, the +.Fn truncate +call will return the value 0. .Sh ERRORS The .Fn truncate We need to mention truncate(2) does nothing for such files. -- Maxim Konovalov