Browse Source

[修改]:修改代码错误。

SummerGift 8 years ago
parent
commit
1b3ed34f23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtthread_io_methods.c

+ 1 - 1
rtthread_io_methods.c

@@ -312,7 +312,7 @@ static int _rtthread_fcntl_size_hint(sqlite3_file *file_id, i64 nByte)
             ** This is a similar technique to that used by glibc on systems
             ** that do not have a real fallocate() call.
             */
-            int nBlk = buf.st_blksize;  /* File-system block size */
+            int nBlk = 512;  /* File-system block size */
             int nWrite = 0;             /* Number of bytes written by seekAndWrite */
             i64 iWrite;                 /* Next offset to write to */