Lines Matching refs:disk

982 #define SQLITE_IOERR       10   /* Some kind of disk I/O error occurred */
983 #define SQLITE_CORRUPT 11 /* The database disk image is malformed */
1121 ** information is written to disk in the same order as calls
1282 ** information is written to disk in the same order as calls
1369 ** retry counts and intervals for certain disk I/O operations for the
3232 ** on-disk database will be created. ^This private database will be
3254 ** ^SQLite uses the path component of the URI as the name of the disk file
3270 ** be used to access the database file on disk. ^If this option is set to
3287 ** or writes from disk is used. ^It is an error to specify a value for
3736 ** changes to the content of the database files on disk.
6104 ** out to disk and so if any I/O errors occur, they will likely occur
6798 ** been written to disk. Specifically, the number of pages written to the
6802 ** If an IO or other error occurs while writing a page to disk, the effect
6968 ** database page on disk. The value passed into szExtra depends
6971 ** created will be used to cache database pages of a file stored on disk, or
7025 ** pinned pages to disk and synching the operating system disk cache.
7288 ** that the application must guarantee that the disk file being
9262 #define PAGER_ACQUIRE_NOCONTENT 0x01 /* Do not load data from disk */
9434 #define PGHDR_DONT_WRITE 0x020 /* Do not write content to disk */
9657 ** The default size of a disk sector
9921 u8 safety_level; /* How aggressive at syncing data to disk */
10860 ** is a disk table or the "old.*" pseudo-table, then pTab points to the
23330 ** of code will give us the ability to simulate a disk I/O error. This
25237 ** lock state. No need to mess with the file on disk.
26476 ** to disk, not the inode. We only set dataOnly if the file size is
26564 ** are flushed to disk. Such fsyncs are not needed on newer
26597 ** Make sure all writes to a particular file are committed to disk.
27816 ** requested size is the size of the file on disk. The actual size of the
30691 ** of code will give us the ability to simulate a disk I/O error. This
33093 ** Make sure all writes to a particular file are committed to disk.
34346 ** requested size is the size of the file on disk. The actual size of the
38207 ** The pager is used to access a database disk file. It implements
38572 ** start of it. The database file on disk has not been modified.
38577 ** to it, but the header has not been synced to disk.
38590 ** and synced to disk.
38592 ** written to disk).
38614 ** The ERROR state is entered when an IO or disk-full error (including
38636 ** is reloaded from disk (and, if necessary, hot-journal rollback peformed)
38799 ** For a real on-disk database, the current lock held on the database file -
38833 ** journal file before it is synced to disk.
38908 ** the file on disk in pages. It is set to a copy of dbSize when the
38910 ** to write or truncate the database file on disk.
38917 ** to measure the database file on disk, and then truncates it if required.
39089 ** size as a single disk sector. See also setSectorSize().
39373 ** All values are stored on disk as big-endian.
39585 /* If the checksum doesn't add up, then one or more of the disk sectors
39941 i64 jrnlSize; /* Size of journal file on disk */
39962 /* If in full-sync mode, advance to the next disk sector before writing
40331 ** mode if the database file on disk is larger than the database image.
40680 /* Decode the page just read from disk */
40828 ** If the file on disk is currently larger than nPage pages, then use the VFS
40831 ** Or, it might might be the case that the file on disk is smaller than
40957 ** the extra entries had not yet made it safely to disk. In such a case,
41006 ** present on disk, then the journal is not hot and does not need to be
41058 ** synced to disk. Compute the number of pages based on the remaining
41756 ** single disk sector is atomic, then this mode provides
42140 ** function does not actually modify the database file on disk. It
42168 ** syncs the journal file to disk, then sets pPager->journalHdr to the
42172 ** Syncing a hot-journal to disk before attempting to roll it back ensures
42352 ** disk and can be restored in the event of a hot-journal rollback.
42444 ** all data has really hit the disk before nRec is updated to mark
42804 ** all information is held in cache. It is never written to disk.
43018 ** disk and uses an in-memory rollback journal.
43319 /* If it is not already open and the file exists on disk, open the
43510 ** actual disk read occurs. In this case the memory image of the
43535 ** in memory, this routine goes to disk to read it in whereas Lookup()
43537 ** has to go to disk, and could also playback an old journal if necessary.
43538 ** Since Lookup() never goes to disk, it never has to deal with locks
43696 ** not read the page from disk. Return a pointer to the page,
43700 ** and sqlite3PagerGet() is that _get() will go to the disk and read
43702 ** returns NULL if the page is not in cache or if a disk I/O error
44052 ** fit on a single disk sector. In this case all co-resident pages
44163 ** write the information on page pPg back to the disk, even though
44170 ** that it does not get written to disk.
44284 ** Sync the database file to disk. This is a no-op for in-memory databases
44484 /* If the file on disk is smaller than the database image, use
44488 ** last page is never written out to disk, leaving the database file
44516 ** synced to disk. The journal file still exists in the file-system
47217 /* Sync the WAL to disk */
47360 ** leave a corrupt WAL file on disk. */
48624 ** This file implements a external (disk-based) database using BTrees.
48645 ** disk where M is the number of entries in the tree.
48863 ** first byte of on-disk image of every BTree page.
48902 u8 *aData; /* Pointer to disk image of the page data */
48910 ** The in-memory image of a disk page has the auxiliary information appended
49065 ** based on information extract from the raw disk page.
49559 ** This file implements a external (disk-based) database using BTrees.
50948 ** Initialize the auxiliary information for a disk block.
51120 ** the content of the page at this time. So do not go to the disk
51123 ** means we have started to be concerned about content and the disk
51265 ** be exclusively in memory, or it might use a disk-based memory cache.
51674 ** to insure data is written to the disk surface before
51706 ** Change the way data is synced to disk in order to increase or decrease
51732 ** words, return TRUE if no sync() occurs on the disk files.
52264 ** pBt->pageSize to the page-size of the file on disk.
52773 ** the disk. After the journal is safely on oxide, the changes to the
52776 ** disk and we are still holding all locks, so the transaction has not
52788 ** created, populated with this journal pointer and synced to disk.
52861 ** routine did all the work of writing information out to disk and flushing the
52862 ** contents so that they are written onto the disk platter. All this
54729 ** from trying to read the pages content from disk. However, if the
54738 ** file on disk. So the effects of disabling the no-content optimization
55991 ** keep entries in the disk file in order so that a scan
55994 ** from the disk more rapidly.
58525 ** journal synced to disk. So at this point we may safely modify
58564 /* Sync the database file to disk. */
59686 ** to read from the disk) then the pMem is left in an inconsistent state.
65073 ** an integer representation is more space efficient on disk.
67780 ** bogus content rather than reading content from disk. NULL works
70342 ** schema consistent with what is on disk.
70354 ** schema consistent with what is on disk.
70366 ** schema consistent with what is on disk.
72201 ** As keys are added to the sorter, they are written to disk in a series
72205 ** all PMAs currently stored on disk must be merged together. This comment
72365 int nRead; /* Bytes to read from disk */
72840 ** Flush any buffered data to disk and clean up the file-writer object.
73027 /* If no data has been written to disk, then do not do so now. Instead,
73059 FileWriter writer; /* Object used to write to disk */
73231 ** actual on disk file is created lazily. When the file is created,
73234 ** on disk is not created or populated until either:
73260 ** If it does not already exists, create and populate the on-disk file
73454 ** JournalFile, and the underlying file on disk has not yet been opened,
73463 ** pVfs to create the underlying on-disk files.
82708 ** Table. No changes are made to disk by this routine.
83667 ** An entry for the table is made in the master table on disk, unless
83727 ** "sqlite_master" or "sqlite_temp_master" table on the disk.
83728 ** So do not write to the disk again. Extract the root page number
84153 ** Write VDBE code to erase table pTab and all associated indices on disk.
84394 ** on disk.
85020 /* If the db->init.busy is 0 then create the index on disk. This
85027 ** the latter case the index already exists on disk, which is why
94165 ** the local value does not make changes to the disk file and the default
94323 ** the local value does not make changes to the disk file and the
95217 ** from disk.
100666 ** does, then we can assume that it consumes less space on disk and
102283 ** command. If the latter, then the row-records in the table btree on disk
107509 ** CPU and disk I/O needed to process the requested result.
115949 /* SQLITE_IOERR */ "disk I/O error",
115950 /* SQLITE_CORRUPT */ "database disk image is malformed",
115952 /* SQLITE_FULL */ "database or disk is full",
118699 ** merge traverses the underlying sqlite disk structures efficiently.
119258 ** tables are flushed to disk. Variable iPrevDocid is the docid of the most
119266 int nMaxPendingData; /* Max pending data before flush to disk */
119386 ** "Length" field found in doclists stored on disk is omitted from this
120921 ** Even if the data structure on disk is corrupted, this (reading two
122758 ** Flush the contents of the pending-terms table to disk.
128662 ** When full-text index nodes are loaded from disk, the buffer that they
129168 ** in the %_segdir table on disk. This function is used to convert three
130095 ** position. The exception is if this node is being loaded from disk
130320 ** callback as is used when flushing terms to disk.
132181 ** node is finished and written to disk. The key (zTerm/nTerm) is guaranteed
132186 ** The block id of the leaf node just written to disk may be found in
132244 /* Otherwise, flush the current node of layer iLayer to disk.
132415 ** all outstanding node buffers held by pWriter to disk.
132418 ** is made to write any data to disk. Instead, this function serves only
132422 ** flushing buffers to disk, *pRc is set to an SQLite error code before
132479 /* Flush all currently outstanding nodes to disk. */
134020 ** Flush any data in the pending-terms hash table to disk. If successful,