mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
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:
parent
c39aee89c0
commit
73a3990f44
@ -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);
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user