Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. diskinfo.h
  5. Abstract:
  6. SIS Groveler disk information include file
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef _INC_DISKINFO
  14. #define _INC_DISKINFO
  15. struct ReadDiskInformation
  16. {
  17. ReadDiskInformation(
  18. const _TCHAR *drive_name);
  19. int min_file_size;
  20. int min_file_age;
  21. bool enable_groveling;
  22. bool error_retry_log_extraction;
  23. bool error_retry_groveling;
  24. bool allow_compressed_files;
  25. bool allow_encrypted_files;
  26. bool allow_hidden_files;
  27. bool allow_offline_files;
  28. bool allow_temporary_files;
  29. __int64 base_usn_log_size;
  30. __int64 max_usn_log_size;
  31. private:
  32. enum {registry_entry_count = 12};
  33. };
  34. struct WriteDiskInformation
  35. {
  36. WriteDiskInformation(
  37. const _TCHAR *drive_name,
  38. int backup_interval);
  39. ~WriteDiskInformation();
  40. void flush();
  41. double partition_hash_read_time_estimate;
  42. double partition_compare_read_time_estimate;
  43. double mean_file_size;
  44. double read_time_confidence;
  45. int volume_serial_number;
  46. int grovelAllPathsState;
  47. private:
  48. enum {registry_entry_count = 6};
  49. static void backup(
  50. void *context);
  51. int backup_interval;
  52. EntrySpec registry_entries[registry_entry_count];
  53. _TCHAR *ini_file_partition_path;
  54. };
  55. #endif /* _INC_DISKINFO */