mariner log messages for creating and removing files

give a hint to event listeners that files are being created and removed

Change-Id: I6202184424607e97b7d103a6e7033f950c203cce
Reviewed-on: http://gerrit.openafs.org/1852
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Derrick Brashear 2010-04-27 13:22:37 -04:00
parent c39aee89c0
commit 73a3990f44
2 changed files with 2 additions and 0 deletions

View File

@ -492,6 +492,7 @@ afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
afs_AddMarinerName(aname, *avcp); afs_AddMarinerName(aname, *avcp);
/* return the new status in vattr */ /* return the new status in vattr */
afs_CopyOutAttrs(*avcp, attrs); afs_CopyOutAttrs(*avcp, attrs);
afs_MarinerLog("store$Creating", *avcp);
} }
afs_PutFakeStat(&fakestate); afs_PutFakeStat(&fakestate);

View File

@ -123,6 +123,7 @@ afsremove(register struct vcache *adp, register struct dcache *tdc,
* call FindVCache instead of GetVCache since if the file's really * call FindVCache instead of GetVCache since if the file's really
* gone, we won't be able to fetch the status info anyway. */ * gone, we won't be able to fetch the status info anyway. */
if (tvc) { if (tvc) {
afs_MarinerLog("store$Removing", tvc);
#ifdef AFS_BOZONLOCK_ENV #ifdef AFS_BOZONLOCK_ENV
afs_BozonLock(&tvc->pvnLock, tvc); afs_BozonLock(&tvc->pvnLock, tvc);
/* Since afs_TryToSmush will do a pvn_vptrunc */ /* Since afs_TryToSmush will do a pvn_vptrunc */