From mboxrd@z Thu Jan 1 00:00:00 1970 From: jenn Subject: file system writes Date: Thu, 13 Jan 2005 10:35:44 -0800 Message-ID: <1105641344.2901.19.camel@ENERGY> References: <20050113165353.GB24377@lst.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from smtp819.mail.sc5.yahoo.com ([66.163.170.5]:59785 "HELO smtp819.mail.sc5.yahoo.com") by vger.kernel.org with SMTP id S261275AbVAMSfq (ORCPT ); Thu, 13 Jan 2005 13:35:46 -0500 To: linux-fsdevel@vger.kernel.org In-Reply-To: <20050113165353.GB24377@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello, I had a question I hoped someone could answer. I am modifying reiserfs code. I have added code to the fs that writes kernel data to a file on the same system. On mount, I make a file by creating a dentry, and then calling i_op->create. I then release the dentry. Everything appears to work fine I can see the file on the system and open it etc... I try to write data to this file after creating it like this: I make a file pointer I call filp_open with the name of the file I call set_fs (to tell it it is a kernel address) I call fp->f_op->write I call filp_close The write operation returns successfully but no data appears in the file. I open it and it is empty. It does work if I try to write to a file on another system though... like I can write to etc/ or /opt. Brahhhh... If anyone has some ideas thanks! Jenn