libext2fs: fileio should use 64bit io routines

When reading or writing file blocks, use the IO manager routines that
can handle 64bit block numbers.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian-1.42.9
Darrick J. Wong 2013-12-12 12:50:04 -05:00 committed by Theodore Ts'o
parent fe56188b07
commit 56fa488796
1 changed files with 4 additions and 5 deletions

View File

@ -142,8 +142,7 @@ errcode_t ext2fs_file_flush(ext2_file_t file)
return retval;
}
retval = io_channel_write_blk(fs->io, file->physblock,
1, file->buf);
retval = io_channel_write_blk64(fs->io, file->physblock, 1, file->buf);
if (retval)
return retval;
@ -194,9 +193,9 @@ static errcode_t load_buffer(ext2_file_t file, int dontfill)
return retval;
if (!dontfill) {
if (file->physblock) {
retval = io_channel_read_blk(fs->io,
file->physblock,
1, file->buf);
retval = io_channel_read_blk64(fs->io,
file->physblock,
1, file->buf);
if (retval)
return retval;
} else