From mboxrd@z Thu Jan 1 00:00:00 1970 From: viro@parcelfarce.linux.theplanet.co.uk Subject: Re: What calls setattr? Date: Tue, 11 Nov 2003 01:57:33 +0000 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20031111015733.GH7665@parcelfarce.linux.theplanet.co.uk> References: <20031031132024.GS25237@parcelfarce.linux.theplanet.co.uk> <20031111014458.1F5D84855@blood.actrix.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:5295 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S263298AbTKKB5f (ORCPT ); Mon, 10 Nov 2003 20:57:35 -0500 To: Charles Manning Content-Disposition: inline In-Reply-To: <20031111014458.1F5D84855@blood.actrix.co.nz> List-Id: linux-fsdevel.vger.kernel.org On Tue, Nov 11, 2003 at 02:51:30PM +1300, Charles Manning wrote: > I'm trying to test a change to setattr in YAFFS. In particular, I'm trying to > test the use of ATTR_SIZE when the size of the file is reduced > > I can't find the process-space system call that causes this to be called.(eg. > file is 2kB and I want to cut it back to 1kB). > > Help me plz. man truncate (plus a bunch of related syscalls, plus truncation-to-zero when you do open() with O_TRUNC, plus nfsd handling corresponding requests...)