diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2009-01-31 17:07:08 +0100 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2009-01-31 17:07:08 +0100 |
commit | 56d98fd7a229c8839a364a8a194c89c8fa650fff (patch) | |
tree | fabc87d58b2ea35831496d5f9762f6b64b481072 /src/xfs.c | |
parent | 9970a484b6983cbf5659ebf17335b4192065025e (diff) |
Use pread() and pwrite() argument style for internal I/O
Diffstat (limited to 'src/xfs.c')
-rw-r--r-- | src/xfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ static int test_xfs(const disk_t *disk_car, const struct xfs_sb *sb,partition_t int check_xfs(disk_t *disk_car,partition_t *partition,const int verbose) { unsigned char *buffer=(unsigned char*)MALLOC(XFS_SUPERBLOCK_SIZE); - if(disk_car->read(disk_car,XFS_SUPERBLOCK_SIZE, buffer, partition->part_offset)!=0) + if(disk_car->pread(disk_car, buffer, XFS_SUPERBLOCK_SIZE, partition->part_offset) != XFS_SUPERBLOCK_SIZE) { free(buffer); return 1; |