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

[Xen-devel] [PATCH] fs-backend: fix ioctl(BLKGETSIZE) call on 64bit



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

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>

diff -r 064c96848e2f tools/fs-back/fs-ops.c
--- a/tools/fs-back/fs-ops.c    Mon Jul 14 16:48:24 2008 +0100
+++ b/tools/fs-back/fs-ops.c    Tue Jul 15 17:16:24 2008 +0100
@@ -240,7 +240,7 @@
     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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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