From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Jambor Subject: Re: Access content of file via inodes Date: Sat, 28 May 2005 23:44:22 +0200 Message-ID: <8e70aacf050528144424ce78ab@mail.gmail.com> References: <4252E09B.9020606@suse.com> <1112948279.28245.4.camel@imp.csi.cam.ac.uk> <8e70aacf0505271213a6834ee@mail.gmail.com> Reply-To: Martin Jambor Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from zproxy.gmail.com ([64.233.162.199]:15785 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S261183AbVE1VoX convert rfc822-to-8bit (ORCPT ); Sat, 28 May 2005 17:44:23 -0400 Received: by zproxy.gmail.com with SMTP id 18so1821304nzp for ; Sat, 28 May 2005 14:44:22 -0700 (PDT) To: Anton Altaparmakov In-Reply-To: Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hi Anton, On 5/28/05, Anton Altaparmakov wrote: > > What do I have to do to when I need to append something to a file? > > BTW, if that matters, I'll be implementing the adress_space_operations > > of that file as well... > > That depends on where you want to do that from and what that file is. The file is a file system internal file that is used to translate inode numbers to addresses of inodes on the disk. It cannot be written to from userspace. When I need one more inode than I currently have, I also need to create a new mapping info. I implemented it usng the same approach which ext2 uses to modify its directories and believe that is the corect way (by calling aops prepare and commit methods). The only thing that puzzles me is that ext2 does not call flush_dcache_page that you suggested. Since it seems to be an architecture specific function, I have no clue what so ever whether I need to call it or not. Thanks for your email and for any clarification, Martin