From 73a3990f44b9aefe9281fae6ab69523a069b4adb Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 27 Apr 2010 13:22:37 -0400 Subject: [PATCH] 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 Tested-by: Derrick Brashear --- src/afs/VNOPS/afs_vnop_create.c | 1 + src/afs/VNOPS/afs_vnop_remove.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/afs/VNOPS/afs_vnop_create.c b/src/afs/VNOPS/afs_vnop_create.c index 39c9dbf4e4..bb25cad6e3 100644 --- a/src/afs/VNOPS/afs_vnop_create.c +++ b/src/afs/VNOPS/afs_vnop_create.c @@ -492,6 +492,7 @@ afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs, afs_AddMarinerName(aname, *avcp); /* return the new status in vattr */ afs_CopyOutAttrs(*avcp, attrs); + afs_MarinerLog("store$Creating", *avcp); } afs_PutFakeStat(&fakestate); diff --git a/src/afs/VNOPS/afs_vnop_remove.c b/src/afs/VNOPS/afs_vnop_remove.c index 0a45f10b09..bd3be23d9a 100644 --- a/src/afs/VNOPS/afs_vnop_remove.c +++ b/src/afs/VNOPS/afs_vnop_remove.c @@ -123,6 +123,7 @@ afsremove(register struct vcache *adp, register struct dcache *tdc, * call FindVCache instead of GetVCache since if the file's really * gone, we won't be able to fetch the status info anyway. */ if (tvc) { + afs_MarinerLog("store$Removing", tvc); #ifdef AFS_BOZONLOCK_ENV afs_BozonLock(&tvc->pvnLock, tvc); /* Since afs_TryToSmush will do a pvn_vptrunc */