ia64/xen-unstable

changeset 18066:ea6a9793928d

fs-backend: fix ioctl(BLKGETSIZE) call on 64bit

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jul 15 18:00:13 2008 +0100 (2008-07-15)
parents 5f529c74a712
children 45787d746db4
files tools/fs-back/fs-ops.c
line diff
     1.1 --- a/tools/fs-back/fs-ops.c	Tue Jul 15 17:59:31 2008 +0100
     1.2 +++ b/tools/fs-back/fs-ops.c	Tue Jul 15 18:00:13 2008 +0100
     1.3 @@ -240,7 +240,7 @@ void dispatch_stat(struct mount *mount, 
     1.4      buf->stat_gid   = stat.st_gid;
     1.5  #ifdef BLKGETSIZE
     1.6      if (S_ISBLK(stat.st_mode)) {
     1.7 -	int sectors;
     1.8 +	unsigned long sectors;
     1.9  	if (ioctl(fd, BLKGETSIZE, &sectors)) {
    1.10  	    perror("getting device size\n");
    1.11  	    buf->stat_size = 0;