direct-io.hg

changeset 13982:31e65c4ba739

Fix 64-bit build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Sat Feb 17 09:59:00 2007 +0000 (2007-02-17)
parents 3c827d68fa87
children c5ff7671b9f2
files tools/blktap/drivers/tapdisk.c
line diff
     1.1 --- a/tools/blktap/drivers/tapdisk.c	Fri Feb 16 20:31:27 2007 -0800
     1.2 +++ b/tools/blktap/drivers/tapdisk.c	Sat Feb 17 09:59:00 2007 +0000
     1.3 @@ -508,7 +508,7 @@ int send_responses(struct disk_driver *d
     1.4  	int responses_queued = 0;
     1.5  	struct td_state *s = dd->td_state;
     1.6  	blkif_t *blkif = s->blkif;
     1.7 -	int sidx = (int)private, secs_done = nr_secs;
     1.8 +	int sidx = (int)(long)private, secs_done = nr_secs;
     1.9  
    1.10  	if ( (idx > MAX_REQUESTS-1) )
    1.11  	{
    1.12 @@ -580,7 +580,7 @@ int do_cow_read(struct disk_driver *dd, 
    1.13  	/* reissue request to backing file */
    1.14  	ret = parent->drv->td_queue_read(parent, sector, nr_secs,
    1.15  					 page, send_responses, 
    1.16 -					 req->id, (void *)sidx);
    1.17 +					 req->id, (void *)(long)sidx);
    1.18  	if (ret > 0)
    1.19  		parent->early += ret;
    1.20  
    1.21 @@ -668,7 +668,7 @@ static void get_io_request(struct td_sta
    1.22  				ret = drv->td_queue_write(dd, sector_nr,
    1.23  							  nsects, page, 
    1.24  							  send_responses,
    1.25 -							  idx, (void *)i);
    1.26 +							  idx, (void *)(long)i);
    1.27  				if (ret > 0) dd->early += ret;
    1.28  				else if (ret == -EBUSY) {
    1.29  					/* put req back on queue */
    1.30 @@ -682,7 +682,7 @@ static void get_io_request(struct td_sta
    1.31  				ret = drv->td_queue_read(dd, sector_nr,
    1.32  							 nsects, page, 
    1.33  							 send_responses,
    1.34 -							 idx, (void *)i);
    1.35 +							 idx, (void *)(long)i);
    1.36  				if (ret > 0) dd->early += ret;
    1.37  				else if (ret == -EBUSY) {
    1.38  					/* put req back on queue */