PERFORCE change 153251 for review

Christian S.J. Peron csjp at FreeBSD.org
Wed Nov 19 15:38:54 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=153251

Change 153251 by csjp at 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);
 	/*


More information about the p4-projects mailing list