afs_PutVolume(volp, READ_LOCK);
if (code == 0) {
- afs_AddMarinerName(aname, *avcp);
+ if (afs_mariner)
+ afs_AddMarinerName(aname, *avcp);
/* return the new status in vattr */
afs_CopyOutAttrs(*avcp, attrs);
- afs_MarinerLog("store$Creating", *avcp);
+ if (afs_mariner)
+ afs_MarinerLog("store$Creating", *avcp);
}
afs_PutFakeStat(&fakestate);
int pass = 0, hit = 0;
int force_eval = afs_fakestat_enable ? 0 : 1;
long dirCookie;
- extern afs_int32 afs_mariner; /*Writing activity to log? */
afs_hyper_t versionNo;
int no_read_access = 0;
struct sysname_info sysState; /* used only for @sys checking */
* 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);
+ if (afs_mariner)
+ afs_MarinerLog("store$Removing", tvc);
#ifdef AFS_BOZONLOCK_ENV
afs_BozonLock(&tvc->pvnLock, tvc);
/* Since afs_TryToSmush will do a pvn_vptrunc */
/* mariner log the warning */
snprintf(buf, sizeof(buf), "warn$");
vsnprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), fmt, ap);
- afs_MarinerLog(buf, NULL);
+ if (afs_mariner)
+ afs_MarinerLog(buf, NULL);
va_end(ap);
va_start(ap, fmt);
vprintf(fmt, ap);