Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2008 23:38:54 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 153251 for review
Message-ID:  <200811192338.mAJNcsah087923@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=153251

Change 153251 by csjp@hvm02 on 2008/11/19 23:38:42

	Annotate why we keep/check the cache.

Affected files ...

.. //depot/projects/trustedbsd/bsmtrace/bsm.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/bsmtrace/bsm.c#4 (text+ko) ====

@@ -130,6 +130,11 @@
 	ap = &bm->bm_objects;
 	if (ap->a_cnt == 0)
 		return (1);
+	/*
+	 * For BSM records which reference a file but do not contain a path
+	 * (i.e. fstat(2), fchmod(2) et al), scan the pathname cache for it's
+	 * device and see if we can pullup the pathname.
+	 */
 	if (bd->br_dev != 0 && bd->br_inode != 0 && bd->br_path == NULL)
 		bd->br_path = fcache_search(bd->br_dev, bd->br_inode);
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811192338.mAJNcsah087923>