Debug logz
authorcah <cah@ableton.com>
Wed, 5 Aug 2020 21:38:31 +0000 (23:38 +0200)
committercah <cah@ableton.com>
Wed, 5 Aug 2020 21:38:31 +0000 (23:38 +0200)
blockdev/windows/file_windows.c
src/ext4_blockdev.c
src/ext4_mkfs.c

index 291fc114015956ceae94ede58040576ff388ef7f..b894f7a51a5990af9e764e5e746f0e7252ed19dc 100644 (file)
@@ -144,6 +144,7 @@ static int file_bwrite(struct ext4_blockdev *bdev, const void *buf,
        long hipart = blk_id >> (32 - 9);
        long lopart = blk_id << 9;
        long err;
+       printf("file_bwrite %d %d\n", blk_id, blk_cnt);
 
        SetLastError(0);
        lopart = SetFilePointer(dev_file, lopart, &hipart, FILE_BEGIN);
index d1bc14a992d082809e85595b6d43aad53f6ca1c6..c8f190ea718bbbda6716e8c69482be3d9f98739f 100644 (file)
@@ -297,6 +297,7 @@ int ext4_blocks_set_direct(struct ext4_blockdev *bdev, const void *buf,
 {
        uint64_t pba;
        uint32_t pb_cnt;
+       printf("ext4_blocks_set_direct %d %d\n", lba, cnt);
 
        ext4_assert(bdev && buf);
 
@@ -313,6 +314,7 @@ int ext4_block_writebytes(struct ext4_blockdev *bdev, uint64_t off,
        uint32_t blen;
        uint32_t unalg;
        int r = EOK;
+       printf("ext4_block_writebytes %d %d\n", off, len);
 
        const uint8_t *p = (void *)buf;
 
index 98d331d889ac94d4e7a929b28be8916006ce35ff..cef49a39c7926d007d7891fb8741d49064efb6ce 100644 (file)
@@ -809,7 +809,8 @@ int ext4_mkfs(struct ext4_fs *fs, struct ext4_blockdev *bd,
        memset(&bc, 0, sizeof(struct ext4_bcache));
        ext4_block_set_lb_size(bd, info->block_size);
 
-       r = ext4_bcache_init_dynamic(&bc, CONFIG_BLOCK_DEV_CACHE_SIZE,
+       printf("init bcache with 64\n");
+       r = ext4_bcache_init_dynamic(&bc, 64,
                                      info->block_size);
        if (r != EOK)
                goto block_fini;