aboutsummaryrefslogtreecommitdiff
path: root/src/test_quota.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-12-14 18:28:18 +0000
committerdrh <drh@noemail.net>2011-12-14 18:28:18 +0000
commit0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb (patch)
treeba23ebb1b6eaca6ab90ac982ba96de63acc183f1 /src/test_quota.c
parent43a6d4bd4434ef62572c98264aaaf4d01b71c4ac (diff)
parentde60fc2d87a9483cfc1e60ca04381dc07079920b (diff)
downloadsqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.tar.gz
sqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.zip
Merge the VFSNAME file-control addition into the nx-devkit branch.
FossilOrigin-Name: 08c1dc517c1340737a55ad9012b7b06f72899c6f
Diffstat (limited to 'src/test_quota.c')
-rw-r--r--src/test_quota.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test_quota.c b/src/test_quota.c
index 74d1a6d3b..9aad4967b 100644
--- a/src/test_quota.c
+++ b/src/test_quota.c
@@ -589,7 +589,11 @@ static int quotaCheckReservedLock(sqlite3_file *pConn, int *pResOut){
*/
static int quotaFileControl(sqlite3_file *pConn, int op, void *pArg){
sqlite3_file *pSubOpen = quotaSubOpen(pConn);
- return pSubOpen->pMethods->xFileControl(pSubOpen, op, pArg);
+ int rc = pSubOpen->pMethods->xFileControl(pSubOpen, op, pArg);
+ if( op==SQLITE_FCNTL_VFSNAME && rc==SQLITE_OK ){
+ *(char**)pArg = sqlite3_mprintf("quota/%z", *(char**)pArg);
+ }
+ return rc;
}
/* Pass xSectorSize requests through to the original VFS unchanged.