75 lines
3.1 KiB
C
75 lines
3.1 KiB
C
/****************************************************************************
|
|
|
|
|
| (C) Copyright 2004 Novell, Inc.
|
|
| All Rights Reserved.
|
|
|
|
|
| This program is free software; you can redistribute it and/or
|
|
| modify it under the terms of version 2 of the GNU General Public
|
|
| License as published by the Free Software Foundation.
|
|
|
|
|
| This program is distributed in the hope that it will be useful,
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| GNU General Public License for more details.
|
|
|
|
|
| You should have received a copy of the GNU General Public License
|
|
| along with this program; if not, contact Novell, Inc.
|
|
|
|
|
| To contact Novell about this file by physical or electronic mail,
|
|
| you may find current contact information at www.novell.com
|
|
|
|
|
|***************************************************************************
|
|
|
|
|
| Shared structures between kernel engine and user interface
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
|
| $Author: taysom $
|
|
| $Date: 2004-12-31 01:10:58 +0530 (Fri, 31 Dec 2004) $
|
|
|
|
|
| $RCSfile$
|
|
| $Revision: 465 $
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
| This module is used to:
|
|
|
|
|
| Shared structures between kernel engine and user interface
|
|
|
|
|
+-------------------------------------------------------------------------*/
|
|
#ifndef _REPAIRUSER_H_1236812F3bE
|
|
#define _REPAIRUSER_H_1236812F3bE
|
|
|
|
#if zLINUX
|
|
#define RAV_MEDIA_STRUCTURE() __attribute__((packed))
|
|
#define RAV_MEDIA_UNION() __attribute__((packed))
|
|
#endif
|
|
|
|
#if zNETWARE
|
|
#define RAV_MEDIA_STRUCTURE()
|
|
#define RAV_MEDIA_UNION()
|
|
#endif
|
|
|
|
// Legal values for <debugLevel> tag OR ZS_DebugLevel field of zPOOL_RAV_SET_WITH_KEY
|
|
#define ZRP_DEBUG_LOG_ALL 0x00000001 /* Single bit to turn on full debug into log */
|
|
#define ZRP_DEBUG_LOG_IO_CACHE_HITS 0x00000002
|
|
#define ZRP_DEBUG_LOG_IO_WRITES 0x00000004
|
|
#define ZRP_DEBUG_LOG_IO_READS 0x00000008
|
|
#define ZRP_DEBUG_LOG_IO (ZRP_DEBUG_LOG_IO_READS|ZRP_DEBUG_LOG_IO_WRITES|ZRP_DEBUG_LOG_IO_CACHE_HITS)
|
|
#define ZRP_DEBUG_LOG_GENERAL_INFO 0x00000010 // General Information
|
|
#define ZRP_DEBUG_LOG_GENERAL_WARNING 0x00000020
|
|
#define ZRP_DEBUG_LOG_GENERAL_ERROR 0x00000040
|
|
#define ZRP_DEBUG_LOG_GENERAL (ZRP_DEBUG_LOG_GENERAL_INFO|ZRP_DEBUG_LOG_GENERAL_WARNING|ZRP_DEBUG_LOG_GENERAL_ERROR)
|
|
|
|
typedef struct ZSR_LossLimits_s
|
|
{
|
|
BOOL ZLL_PruneIV; // Default should be FALSE. Pruning IV you cause multiple Volumes to be destroyed!!!
|
|
BOOL ZLL_PruneUnknownLosses; // Default should be FALSE. It is best to get user input as unknown files may be destroyed!!!
|
|
//g QUAD ZLL_BlockLossMax; // Currently not used as Rebuild does not track. At prune decission time we
|
|
// have not counted NT blocks (and other trees we rebuld) therefore we really
|
|
// do not know how many blocks we have lost.
|
|
QUAD ZLL_FileLossMax; // Maximum number of files to lose per VOLUME. If rebuild detects that more files
|
|
// than this will be lost then rebuild ABORTS.
|
|
} RAV_MEDIA_STRUCTURE() ZSR_LossLimits_s;
|
|
|
|
#endif
|