Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755564AbYASUGT (ORCPT ); Sat, 19 Jan 2008 15:06:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751334AbYASUGJ (ORCPT ); Sat, 19 Jan 2008 15:06:09 -0500 Received: from pat.uio.no ([129.240.10.15]:59119 "EHLO pat.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbYASUGI (ORCPT ); Sat, 19 Jan 2008 15:06:08 -0500 Subject: Re: Where's the create() pointer? From: Trond Myklebust To: Justin Banks Cc: linux-kernel@vger.kernel.org In-Reply-To: <20080119190249.GA4383@bleen.domain.actdsltmp> References: <20080119150718.GA14765@bleen.domain.actdsltmp> <1200759175.8028.6.camel@heimdal.trondhjem.org> <20080119190249.GA4383@bleen.domain.actdsltmp> Content-Type: text/plain Date: Sat, 19 Jan 2008 15:06:02 -0500 Message-Id: <1200773162.9095.11.camel@heimdal.trondhjem.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-UiO-Resend: resent X-UiO-ClamAV-Virus: No X-UiO-Spam-info: not spam, SpamAssassin (score=0.0, required=5.0, autolearn=disabled, none) X-UiO-Scanned: FA7736E125E8300ED3934A2286FD77A340B94A67 X-UiO-SPAM-Test: remote_host: 129.240.10.9 spam_score: 0 maxlevel 200 minaction 2 bait 0 mail/h: 45 total 6345505 max/h 8345 blacklist 0 greylist 0 ratelimit 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 33 On Sat, 2008-01-19 at 12:02 -0700, Justin Banks wrote: > Trond Myklebust wrote > > > > On Sat, 2008-01-19 at 08:07 -0700, Justin Banks wrote: > > > It's probably been this way for a long time, and I'm just noticing, but > > > I can't seem to find the create() (among others) pointer for NFS filesystems. > > > > > > Specifically, If I look at sb->s_root->d_inode->i_op there's no create > > > there. How do I find it? I'm guessing that the ability to share mount > > > structures between multiple NFS mounts resulted in some kind of fake > > > superblock, but I just can't figure out where to find the functions. > > > > Why would you want to do this in the first place? > > I'm just looking at trapping new creates on NFS, and so I need to find > the pointer. What is your purpose in trapping creates on the client? Is this for accounting purposes? If so, why wouldn't inotify, or even a systemtap script suffice? Anyhow, the simplest way to find the pointer is to grep for nfs_create in /proc/kallsyms. Trond -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/