1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700)

FossilOrigin-Name: 5752d84d374205e011d49b0221d6237967fe0743
This commit is contained in:
danielk1977
2007-03-19 05:54:48 +00:00
parent 8d3921772f
commit b472117c11
12 changed files with 64 additions and 29 deletions

View File

@@ -478,6 +478,13 @@ int crashFileHandle(OsFile *id){
return 0;
}
/*
** Return the simulated file-system sector size.
*/
int crashSectorSize(OsFile *id){
return BLOCKSIZE;
}
/*
** This vector defines all the methods that can operate on an OsFile
** for the crash tester.
@@ -497,6 +504,7 @@ static const IoMethod crashIoMethod = {
crashUnlock,
crashLockState,
crashCheckReservedLock,
crashSectorSize,
};