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:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user