[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] fs-backend: fix ioctl(BLKGETSIZE) call on 64bit



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1216141213 -3600
# Node ID ea6a9793928d2b5c58dc838368ffd57f3ebbfb50
# Parent  5f529c74a71250cdffd7cd97cb21f14691c00f69
fs-backend: fix ioctl(BLKGETSIZE) call on 64bit

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 tools/fs-back/fs-ops.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 5f529c74a712 -r ea6a9793928d tools/fs-back/fs-ops.c
--- a/tools/fs-back/fs-ops.c    Tue Jul 15 17:59:31 2008 +0100
+++ b/tools/fs-back/fs-ops.c    Tue Jul 15 18:00:13 2008 +0100
@@ -240,7 +240,7 @@ void dispatch_stat(struct mount *mount, 
     buf->stat_gid   = stat.st_gid;
 #ifdef BLKGETSIZE
     if (S_ISBLK(stat.st_mode)) {
-       int sectors;
+       unsigned long sectors;
        if (ioctl(fd, BLKGETSIZE, &sectors)) {
            perror("getting device size\n");
            buf->stat_size = 0;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.