summaryrefslogtreecommitdiff
path: root/source/include/ntquotas.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/include/ntquotas.h')
-rw-r--r--source/include/ntquotas.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/include/ntquotas.h b/source/include/ntquotas.h
index ed503b3854..8fd54e8df9 100644
--- a/source/include/ntquotas.h
+++ b/source/include/ntquotas.h
@@ -88,4 +88,9 @@ typedef struct _SMB_NTQUOTA_HANDLE {
SMB_NTQUOTA_LIST *tmp_list;
} SMB_NTQUOTA_HANDLE;
+#define CHECK_NTQUOTA_HANDLE_OK(fsp,conn) (FNUM_OK(fsp,conn) &&\
+ (fsp)->fake_file_handle &&\
+ ((fsp)->fake_file_handle->type == FAKE_FILE_TYPE_QUOTA) &&\
+ (fsp)->fake_file_handle->pd)
+
#endif /*_NTQUOTAS_H */