From: Jose R. Santos <jrs@xxxxxxxxxx> Add 64-bit IO manager operations to struct_io_manager. In order to provide 64-bit block support for IO managers an maintain ABI compatibility with the old API, some new functions need to be added to struct_io_manger. Luckily, strcut_io_manager has some reserved space that we can use to add these new functions. Signed-off-by: Jose R. Santos <jrs@xxxxxxxxxx> -- lib/ext2fs/ext2_io.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/lib/ext2fs/ext2_io.h b/lib/ext2fs/ext2_io.h index 864d1f9..e3b0b1e 100644 --- a/lib/ext2fs/ext2_io.h +++ b/lib/ext2fs/ext2_io.h @@ -79,7 +79,11 @@ struct struct_io_manager { errcode_t (*set_option)(io_channel channel, const char *option, const char *arg); errcode_t (*get_stats)(io_channel channel, io_stats *io_stats); - int reserved[14]; + errcode_t (*read_blk64)(io_channel channel, unsigned long long block, + int count, void *data); + errcode_t (*write_blk64)(io_channel channel, unsigned long long block, + int count, const void *data); + int reserved[12]; }; #define IO_FLAG_RW 0x0001 @@ -91,7 +95,9 @@ struct struct_io_manager { #define io_channel_close(c) ((c)->manager->close((c))) #define io_channel_set_blksize(c,s) ((c)->manager->set_blksize((c),s)) #define io_channel_read_blk(c,b,n,d) ((c)->manager->read_blk((c),b,n,d)) +#define io_channel_read_blk64(c,b,n,d) ((c)->manager->read_blk64((c),b,n,d)) #define io_channel_write_blk(c,b,n,d) ((c)->manager->write_blk((c),b,n,d)) +#define io_channel_write_blk64(c,b,n,d) ((c)->manager->write_blk64((c),b,n,d)) #define io_channel_flush(c) ((c)->manager->flush((c))) #define io_channel_bumpcount(c) ((c)->refcount++) -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html