lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <d66e87630701310634s385db5adwa82e2194188efa81@mail.gmail.com>
Date:	Wed, 31 Jan 2007 09:34:54 -0500
From:	"Eddie Pettis" <pettis.eddie@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: How to locate struct file * from a bio?

Short question:  Is it possible to locate the struct file * associated
with a bio?  If so, how?

Longer version:  I am working on a project that requires measuring the
popularity of each file in a filesystem.  I have made several attempts
to locate all the file reads by grepping for ->readpage() and
->readpages() calls, but I am still missing several file reads.  I
have not yet looked for file writes.

I *have* been able to catch every bio access, which leads to my
question.   Is it possible to locate the struct file * associated with
a bio?  If so, how?  Efficiency is not my primary issue right now.
I'm mainly concerned with it "just working."

Thanks in advance!

--

Eddie Pettis
Electrical and Computering Engineering
Purdue University
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ