On 4/6/15, Nicholas Lovell <nlovell at tivo.com> wrote:
> I have my own VFS layer, and recently started trying to get the default
> page size to actually match the real device erase block size depending
> on the actual device the database is running on.
>
> What I've found is that the xSectorSize method in the VFS is *not*
> called unless I unset the device characteristic of
> SQLITE_IOCAP_POWERSAFE_OVERWRITE

OK.  We have your enhancement request.


> (which is ironic since the device is
> power safe overwrite, but only if its the erase block size).
> This ends up meaning that the page_size always returns
> SQLITE_DEFAULT_PAGE_SIZE regardless of sector size.
>
> Obviously I could get around this by running pragma page_size prior to
> making the database in the first place, but that seems unnecessary
> considering that I already have a VFS layer in place.
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>


-- 
D. Richard Hipp
drh at sqlite.org

Reply via email to