Changes to sector alignment policies and behavior when restoring a

backup fails
This commit is contained in:
srs5694
2010-03-19 14:21:59 -04:00
parent 55d926192a
commit a8582cfe6c
14 changed files with 122 additions and 34 deletions

View File

@@ -35,10 +35,6 @@
using namespace std;
// Below constant corresponds to an 800GB disk -- a somewhat arbitrary
// cutoff
#define SMALLEST_ADVANCED_FORMAT UINT64_C(1677721600)
/***************************************
* *
* DiskIO class and related structures *
@@ -71,7 +67,7 @@ class DiskIO {
int Write(void* buffer, int numBytes);
void DiskSync(void); // resync disk caches to use new partitions
int GetBlockSize(void);
int FindAlignment(void);
uint32_t FindAlignment(void);
int FindAlignment(const string & filename);
int IsOpen(void) {return isOpen;}
int IsOpenForWrite(void) {return openForWrite;}