From 514a767c57f8194547e5b708ad2573ab9a0719c6 Mon Sep 17 00:00:00 2001 From: James Peach Date: Wed, 22 Mar 2006 23:49:09 +0000 Subject: r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-based HSM is interested in. Tested on both IRIX and SLES9. --- source/include/debug.h | 1 + source/include/smb.h | 3 ++- source/include/smb_macros.h | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'source/include') diff --git a/source/include/debug.h b/source/include/debug.h index b6fb50a9acb..2cf1ceaead0 100644 --- a/source/include/debug.h +++ b/source/include/debug.h @@ -102,6 +102,7 @@ extern int DEBUGLEVEL; #define DBGC_ACLS 15 #define DBGC_LOCKING 16 #define DBGC_MSDFS 17 +#define DBGC_DMAPI 18 /* So you can define DBGC_CLASS before including debug.h */ #ifndef DBGC_CLASS diff --git a/source/include/smb.h b/source/include/smb.h index 26b4b69266f..8faf3877ce9 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -1567,7 +1567,8 @@ minimum length == 18. */ enum smbd_capability { - KERNEL_OPLOCK_CAPABILITY + KERNEL_OPLOCK_CAPABILITY, + DMAPI_ACCESS_CAPABILITY }; /* if a kernel does support oplocks then a structure of the following diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h index 3ae8814cfd3..554dbbc0878 100644 --- a/source/include/smb_macros.h +++ b/source/include/smb_macros.h @@ -76,6 +76,10 @@ (DEBUG(0,("PANIC: assert failed at %s(%d)\n", __FILE__, __LINE__)))) #endif +#define SMB_WARN(condition, message) \ + ((condition) ? (void)0 : \ + DEBUG(0, ("WARNING: %s: %s\n", #condition, message))) + #define SMB_ASSERT_ARRAY(a,n) SMB_ASSERT((sizeof(a)/sizeof((a)[0])) >= (n)) /* these are useful macros for checking validity of handles */ -- cgit