home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / kernel / fsrecov / fsrecovDirLog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-19  |  1.5 KB  |  40 lines

  1. /*
  2.  * fsrecovDirLog.h --
  3.  *
  4.  *    Declarations of dir log recovery from recovery box.
  5.  *
  6.  * Copyright 1991 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that this copyright
  10.  * notice appears in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /cdrom/src/kernel/Cvsroot/kernel/fsrecov/fsrecovDirLog.h,v 1.1 92/08/10 17:32:56 mgbaker Exp $ SPRITE (Berkeley)
  16.  */
  17.  
  18. #ifndef _FSRECOV_DIR_LOG
  19. #define _FSRECOV_DIR_LOG
  20.  
  21. /* constants */
  22. #define    FSRECOV_DIR_LOG_TYPE    1
  23. #define    FSRECOV_NUM_DIR_LOG_ENTRIES    100
  24.  
  25.  
  26. #define    FSRECOV_LOG_START_ENTRY FSDM_LOG_START_ENTRY
  27. #define    FSRECOV_LOG_END_ENTRY FSDM_LOG_END_ENTRY
  28.  
  29. typedef struct Fsrecov_DirLogEntry {
  30.     int                 logSeqNum;      /* Log sequence number of entry. */
  31.     int                 opFlags;        /* Directory operation, see fsdm.h */
  32.     int                 dirFileNumber;  /* Directory being operated on. */
  33.     int                 dirOffset;      /* Offset into directory of entry. */
  34.     int                 linkCount;      /* Link count of object before op. */
  35.     int            startTime;    /* For figuring first entry on recov. */
  36.     Fslcl_DirEntry      dirEntry;       /* Directory entry for op. */
  37. } Fsrecov_DirLogEntry;
  38.  
  39. #endif /* _FSRECOV_DIR_LOG */
  40.